; assembly | /* r2dec pseudo code output */ | /* baltzo_localtimeoffsetutil.t/none @ 0x412a40 */ | #include | ; (fcn) method.BloombergLP::baltzo::TimeZoneUtil.convertUtcToLocalTime_BloombergLP::baltzo::LocalDatetime__char_const__BloombergLP::bdlt::Datetime_const_ () | int64_t method_BloombergLP::baltzo::TimeZoneUtil_convertUtcToLocalTime_BloombergLP::baltzo::LocalDatetime_char_const_BloombergLP::bdlt::Datetime_const_ (int64_t arg3, int64_t arg2, int64_t arg1) { | int64_t var_8h; | int64_t var_10h; | char * var_18h; | char * var_20h; | int64_t var_28h; | char * var_30h; | int64_t var_38h; | rdx = arg3; | rsi = arg2; | rdi = arg1; | /* BloombergLP::baltzo::TimeZoneUtil::convertUtcToLocalTime(BloombergLP::baltzo::LocalDatetime*, char const*, BloombergLP::bdlt::Datetime const&) */ 0x00412a40 push rbp | 0x00412a41 push r14 | 0x00412a43 push rbx | 0x00412a44 sub rsp, 0x40 | 0x00412a48 mov rbp, rdx | 0x00412a4b mov r14, rsi | r14 = rsi; 0x00412a4e mov rbx, rdi | rbx = rdi; 0x00412a51 movabs rax, 0x800000141dd76000 | rax = 0x800000141dd76000; 0x00412a5b mov qword [rsp + 8], rax | *((rsp + 8)) = rax; 0x00412a60 mov dword [rsp + 0x10], 0 | *((rsp + 0x10)) = 0; 0x00412a68 call 0x40f1e0 | rax = BloombergLP::baltzo::DefaultZoneinfoCache::instance() (); 0x00412a6d lea rdi, [rsp + 8] | 0x00412a72 mov rsi, r14 | 0x00412a75 mov rdx, rbp | 0x00412a78 mov rcx, rax | 0x00412a7b call 0x4136b0 | eax = BloombergLP::baltzo::TimeZoneUtilImp::convertUtcToLocalTime(BloombergLP::bdlt::DatetimeTz*,char const*,BloombergLP::bdlt::Datetimeconst&,BloombergLP::baltzo::ZoneinfoCache*) (rsp + 8, r14, rbp, rax); 0x00412a80 mov ebp, eax | 0x00412a82 test eax, eax | | if (eax != 0) { 0x00412a84 jne 0x412aa8 | goto label_0; | } 0x00412a86 mov rax, qword [rsp + 8] | rax = *((rsp + 8)); 0x00412a8b mov qword [rbx], rax | *(rbx) = rax; 0x00412a8e test rax, rax | 0x00412a91 jns 0x412ab3 | | while (1) { 0x00412a93 mov qword [rbx], rax | *(rbx) = rax; 0x00412a96 mov eax, dword [rsp + 0x10] | eax = *((rsp + 0x10)); 0x00412a9a mov dword [rbx + 8], eax | *((rbx + 8)) = eax; 0x00412a9d mov rdi, rbx | 0x00412aa0 mov rsi, r14 | 0x00412aa3 call 0x4135e0 | BloombergLP::baltzo::LocalDatetime::setTimeZoneId(char const*) (rbx, r14); | label_0: 0x00412aa8 mov eax, ebp | eax = ebp; 0x00412aaa add rsp, 0x40 | 0x00412aae pop rbx | 0x00412aaf pop r14 | 0x00412ab1 pop rbp | 0x00412ab2 ret | return rax; 0x00412ab3 mov edi, 0x695844 | 0x00412ab8 call 0x432b20 | eax = BloombergLP::bsls::Review::updateCount(BloombergLP::bsls::Atomic_TypeTraits::Int*) (method.BloombergLP::bdlt::Datetime.validateAndTraceLogRepresentation___const::lambda__1::operator_____const::count); 0x00412abd mov qword [rsp + 0x18], 0x45a109 | *((rsp + 0x18)) = "detected invalid 'bdlt::Datetime'; see TEAM 579660115"; 0x00412ac6 mov qword [rsp + 0x20], 0x45a13f | *((rsp + 0x20)) = "/home/parsa/experiments/assumptions/crush/ccm-none/groups/bdl/bdlt/bdlt_datetime.h"; 0x00412acf mov dword [rsp + 0x28], 0x466 | *((rsp + 0x28)) = 0x466; 0x00412ad7 mov qword [rsp + 0x30], 0x475a8a | *((rsp + 0x30)) = "R-INV"; 0x00412ae0 mov dword [rsp + 0x38], eax | *((rsp + 0x38)) = eax; 0x00412ae4 lea rdi, [rsp + 0x18] | rdi = rsp + 0x18; 0x00412ae9 call 0x432b40 | BloombergLP::bsls::Review::invokeHandler(BloombergLP::bsls::ReviewViolationconst&) (); 0x00412aee mov rax, qword [rbx] | rax = *(rbx); 0x00412af1 mov rcx, rax | rcx = *(rbx); 0x00412af4 shr rcx, 0x20 | rcx >>= 0x20; 0x00412af8 shl rax, 0x25 | rax <<= 0x25; 0x00412afc movabs rdx, 0x7fffffe000000000 | rdx = 0x7fffffe000000000; 0x00412b06 add rdx, rax | rdx += rax; 0x00412b09 imul rcx, rcx, 0x3e8 | rcx *= 0x3e8; 0x00412b10 movabs rax, 0x8000000000000000 | rax = 0x8000000000000000; 0x00412b1a or rax, rdx | rax |= rdx; 0x00412b1d or rax, rcx | rax |= rcx; 0x00412b20 jmp 0x412a93 | | } | }