; assembly | /* r2dec pseudo code output */ | /* baltzo_localtimeoffsetutil.t/none @ 0x412b30 */ | #include | ; (fcn) method.BloombergLP::baltzo::TimeZoneUtil.convertLocalToLocalTime_BloombergLP::baltzo::LocalDatetime__char_const__BloombergLP::bdlt::Datetime_const__char_const__BloombergLP::baltzo::DstPolicy::Enum_ () | int64_t method_BloombergLP::baltzo::TimeZoneUtil_convertLocalToLocalTime_BloombergLP::baltzo::LocalDatetime_char_const_BloombergLP::bdlt::Datetime_const_char_const_BloombergLP::baltzo::DstPolicy::Enum_ (int64_t arg5, int64_t arg4, 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; | r8 = arg5; | rcx = arg4; | rdx = arg3; | rsi = arg2; | rdi = arg1; | /* BloombergLP::baltzo::TimeZoneUtil::convertLocalToLocalTime(BloombergLP::baltzo::LocalDatetime*, char const*, BloombergLP::bdlt::Datetime const&, char const*, BloombergLP::baltzo::DstPolicy::Enum) */ 0x00412b30 push rbp | 0x00412b31 push r14 | 0x00412b33 push rbx | 0x00412b34 sub rsp, 0x40 | 0x00412b38 mov r14, rsi | r14 = rsi; 0x00412b3b mov rbx, rdi | rbx = rdi; 0x00412b3e movabs rax, 0x800000141dd76000 | rax = 0x800000141dd76000; 0x00412b48 mov qword [rsp + 8], rax | *((rsp + 8)) = rax; 0x00412b4d mov dword [rsp + 0x10], 0 | *((rsp + 0x10)) = 0; 0x00412b55 lea rdi, [rsp + 8] | 0x00412b5a call 0x412c10 | eax = BloombergLP::baltzo::TimeZoneUtil::convertLocalToLocalTime(BloombergLP::bdlt::DatetimeTz*,char const*,BloombergLP::bdlt::Datetimeconst&,char const*,BloombergLP::baltzo::DstPolicy::Enum) (rsp + 8, rsi, rdx, rcx, r8); 0x00412b5f mov ebp, eax | 0x00412b61 test eax, eax | | if (eax != 0) { 0x00412b63 jne 0x412b87 | goto label_0; | } 0x00412b65 mov rax, qword [rsp + 8] | rax = *((rsp + 8)); 0x00412b6a mov qword [rbx], rax | *(rbx) = rax; 0x00412b6d test rax, rax | 0x00412b70 jns 0x412b92 | | while (1) { 0x00412b72 mov qword [rbx], rax | *(rbx) = rax; 0x00412b75 mov eax, dword [rsp + 0x10] | eax = *((rsp + 0x10)); 0x00412b79 mov dword [rbx + 8], eax | *((rbx + 8)) = eax; 0x00412b7c mov rdi, rbx | 0x00412b7f mov rsi, r14 | 0x00412b82 call 0x4135e0 | BloombergLP::baltzo::LocalDatetime::setTimeZoneId(char const*) (rbx, r14); | label_0: 0x00412b87 mov eax, ebp | eax = ebp; 0x00412b89 add rsp, 0x40 | 0x00412b8d pop rbx | 0x00412b8e pop r14 | 0x00412b90 pop rbp | 0x00412b91 ret | return rax; 0x00412b92 mov edi, 0x695844 | 0x00412b97 call 0x432b20 | eax = BloombergLP::bsls::Review::updateCount(BloombergLP::bsls::Atomic_TypeTraits::Int*) (method.BloombergLP::bdlt::Datetime.validateAndTraceLogRepresentation___const::lambda__1::operator_____const::count); 0x00412b9c mov qword [rsp + 0x18], 0x45a109 | *((rsp + 0x18)) = "detected invalid 'bdlt::Datetime'; see TEAM 579660115"; 0x00412ba5 mov qword [rsp + 0x20], 0x45a13f | *((rsp + 0x20)) = "/home/parsa/experiments/assumptions/crush/ccm-none/groups/bdl/bdlt/bdlt_datetime.h"; 0x00412bae mov dword [rsp + 0x28], 0x466 | *((rsp + 0x28)) = 0x466; 0x00412bb6 mov qword [rsp + 0x30], 0x475a8a | *((rsp + 0x30)) = "R-INV"; 0x00412bbf mov dword [rsp + 0x38], eax | *((rsp + 0x38)) = eax; 0x00412bc3 lea rdi, [rsp + 0x18] | rdi = rsp + 0x18; 0x00412bc8 call 0x432b40 | BloombergLP::bsls::Review::invokeHandler(BloombergLP::bsls::ReviewViolationconst&) (); 0x00412bcd mov rax, qword [rbx] | rax = *(rbx); 0x00412bd0 mov rcx, rax | rcx = *(rbx); 0x00412bd3 shr rcx, 0x20 | rcx >>= 0x20; 0x00412bd7 shl rax, 0x25 | rax <<= 0x25; 0x00412bdb movabs rdx, 0x7fffffe000000000 | rdx = 0x7fffffe000000000; 0x00412be5 add rdx, rax | rdx += rax; 0x00412be8 imul rcx, rcx, 0x3e8 | rcx *= 0x3e8; 0x00412bef movabs rax, 0x8000000000000000 | rax = 0x8000000000000000; 0x00412bf9 or rax, rdx | rax |= rdx; 0x00412bfc or rax, rcx | rax |= rcx; 0x00412bff jmp 0x412b72 | | } | }