; assembly | /* r2dec pseudo code output */ | /* baljsn_encoder.t/none @ 0x483580 */ | #include | ; (fcn) method.int_BloombergLP::baljsn::Encoder_ValueDispatcher.operator___BloombergLP::bdlt::Datetime__BloombergLP::bdlt::Datetime_const__BloombergLP::bdlat_TypeCategory::Simple_ () | int64_t method_int_BloombergLP::baljsn::Encoder_ValueDispatcher_operator_BloombergLP::bdlt::Datetime_BloombergLP::bdlt::Datetime_const_BloombergLP::bdlat_TypeCategory::Simple_ (int64_t arg2, int64_t arg1) { | int64_t var_8h; | int64_t var_10h; | size_t var_18h; | int64_t var_20h; | rsi = arg2; | rdi = arg1; | /* int BloombergLP::baljsn::Encoder_ValueDispatcher::operator()(BloombergLP::bdlt::Datetime const&, BloombergLP::bdlat_TypeCategory::Simple) */ 0x00483580 push r15 | 0x00483582 push r14 | 0x00483584 push r12 | 0x00483586 push rbx | 0x00483587 sub rsp, 0x48 | 0x0048358b mov r14, rsi | r14 = rsi; 0x0048358e mov byte [rdi], 0 | *(rdi) = 0; 0x00483591 mov rbx, qword [rdi + 8] | rbx = *((rdi + 8)); 0x00483595 mov r12, qword [rdi + 0x20] | r12 = *((rdi + 0x20)); 0x00483599 cmp byte [rbx + 8], 0 | | if (*((rbx + 8)) != 0) { 0x0048359d je 0x4835c9 | 0x0048359f mov rax, qword [rbx + 0x18] | rax = *((rbx + 0x18)); 0x004835a3 mov rcx, qword [rbx + 0x38] | rcx = *((rbx + 0x38)); 0x004835a7 dec rcx | rcx--; 0x004835aa mov rdx, rcx | rdx = rcx; 0x004835ad shr rdx, 6 | rdx >>= 6; 0x004835b1 mov rax, qword [rax + rdx*8] | rax = *((rax + rdx*8)); 0x004835b5 bt rax, rcx | | if (((rax >> rcx) & 1) >= 0) { 0x004835b9 jae 0x4835c9 | goto label_0; | } 0x004835bb mov rdi, qword [rbx] | 0x004835be mov esi, dword [rbx + 0xc] | 0x004835c1 mov edx, dword [rbx + 0x10] | edx = *((rbx + 0x10)); 0x004835c4 call 0x4d7f10 | BloombergLP::bdlb::Print::indent(std::_1::basic_ostream>&,int,int) (*(rbx), *((rbx + 0xc))); | } | label_0: 0x004835c9 mov r15, qword [rbx] | r15 = *(rbx); 0x004835cc mov dword [rsp + 8], 3 | *((rsp + 8)) = 3; 0x004835d4 test r12, r12 | | if (r12 != 0) { 0x004835d7 je 0x4835e0 | 0x004835d9 mov esi, dword [r12 + 8] | esi = *((r12 + 8)); 0x004835de jmp 0x4835e5 | | } else { 0x004835e0 mov esi, 3 | | } 0x004835e5 lea r12, [rsp + 8] | r12 = rsp + 8; 0x004835ea mov rdi, r12 | 0x004835ed call 0x4ea050 | BloombergLP::bdlt::Iso8601UtilConfiguration::setFractionalSecondPrecision(int) (r12, 3); 0x004835f2 lea rbx, [rsp + 0x20] | rbx = rsp + 0x20; 0x004835f7 mov rdi, rbx | 0x004835fa mov esi, 0x27 | 0x004835ff mov rdx, r14 | 0x00483602 mov rcx, r12 | 0x00483605 call 0x4e72b0 | BloombergLP::bdlt::Iso8601Util::generate(char*,int,BloombergLP::bdlt::Datetimeconst&,BloombergLP::bdlt::Iso8601UtilConfigurationconst&) (rbx, 0x27, r14, r12); 0x0048360a mov qword [rsp + 0x10], rbx | *((rsp + 0x10)) = rbx; 0x0048360f mov rdi, rbx | 0x00483612 call 0x405610 | rax = strlen (rbx); 0x00483617 mov qword [rsp + 0x18], rax | *((rsp + 0x18)) = rax; 0x0048361c lea rsi, [rsp + 0x10] | 0x00483621 mov rdi, r15 | 0x00483624 call 0x48ca40 | BloombergLP::baljsn::PrintUtil::printString(std::_1::basic_ostream>&,std::_1::basic_string_view>const&) (r15, rsp + 0x10); 0x00483629 add rsp, 0x48 | 0x0048362d pop rbx | 0x0048362e pop r12 | 0x00483630 pop r14 | 0x00483632 pop r15 | 0x00483634 ret | return rax; | }