; assembly | /* r2dec pseudo code output */ | /* balxml_formatter.t/none @ 0x424490 */ | #include | ; (fcn) method.std::__1::basic_ostream_char__std::__1::char_traits_char____BloombergLP::balxml::TypesPrintUtil::print_BloombergLP::bdlt.Time__std::__1::basic_ostream_char__std::__1::char_traits_char_____BloombergLP::bdlt::Time_const__int__BloombergLP::balxml: () | int64_t method_std::_1::basic_ostream_char_std::_1::char_traits_char_BloombergLP::balxml::TypesPrintUtil::print_BloombergLP::bdlt_Time_std::_1::basic_ostream_char_std::_1::char_traits_char_BloombergLP::bdlt::Time_const_int_BloombergLP::balxml_ (int64_t arg4, uint32_t arg3, int64_t arg2, int64_t arg1) { | int64_t var_8h; | int64_t var_10h; | rcx = arg4; | rdx = arg3; | rsi = arg2; | rdi = arg1; | /* std::__1::basic_ostream >& BloombergLP::balxml::TypesPrintUtil::print(std::__1::basic_ostream >&, BloombergLP::bdlt::Time const&, int, BloombergLP::balxml::EncoderOptions const*) */ 0x00424490 push r15 | 0x00424492 push r14 | 0x00424494 push r12 | 0x00424496 push rbx | 0x00424497 sub rsp, 0x28 | 0x0042449b mov rbx, rdi | rbx = rdi; 0x0042449e test edx, 0x100000 | | if ((edx & 0x100000) == 0) { 0x004244a4 jne 0x4244b5 | 0x004244a6 and edx, 7 | edx &= 7; 0x004244a9 cmp edx, 4 | | if (edx > 4) { 0x004244ac ja 0x4244b5 | goto label_0; | } | /* switch table (5 cases) at 0x493f30 */ 0x004244ae jmp qword [rdx*8 + 0x493f30] | | } | label_0: 0x004244b5 mov rax, qword [rbx] | rax = *(rbx); 0x004244b8 mov rax, qword [rax - 0x18] | rax = *((rax - 0x18)); 0x004244bc lea rdi, [rbx + rax] | rdi = rbx + rax; 0x004244c0 mov esi, dword [rbx + rax + 0x20] | esi = *((rbx + rax + 0x20)); 0x004244c4 or esi, 4 | esi |= 4; 0x004244c7 call 0x403c40 | std::_1::ios_base::clear(unsignedint) (); | do { 0x004244cc mov rax, rbx | rax = rbx; 0x004244cf add rsp, 0x28 | 0x004244d3 pop rbx | 0x004244d4 pop r12 | 0x004244d6 pop r14 | 0x004244d8 pop r15 | 0x004244da ret | return rax; 0x004244db mov r15, rcx | r15 = rcx; 0x004244de mov r14, rsi | r14 = rsi; 0x004244e1 mov dword [rsp + 8], 3 | *((rsp + 8)) = 3; 0x004244e9 test rcx, rcx | | if (rcx != 0) { 0x004244ec je 0x42450c | 0x004244ee mov esi, dword [r15 + 0xa0] | 0x004244f5 lea rdi, [rsp + 8] | 0x004244fa call 0x432e90 | BloombergLP::bdlt::Iso8601UtilConfiguration::setFractionalSecondPrecision(int) (rsp + 8, *((r15 + 0xa0))); 0x004244ff cmp byte [r15 + 0xc3], 0 | 0x00424507 setne al | al = (*((r15 + 0xc3)) != 0) ? 1 : 0; 0x0042450a jmp 0x42451d | | } else { 0x0042450c lea rdi, [rsp + 8] | 0x00424511 mov esi, 6 | 0x00424516 call 0x432e90 | eax = BloombergLP::bdlt::Iso8601UtilConfiguration::setFractionalSecondPrecision(int) (rsp + 8, 6); 0x0042451b xor eax, eax | eax = 0; | } 0x0042451d movzx esi, al | esi = (int32_t) al; 0x00424520 lea r15, [rsp + 8] | r15 = rsp + 8; 0x00424525 mov rdi, r15 | 0x00424528 call 0x432eb0 | BloombergLP::bdlt::Iso8601UtilConfiguration::setUseZAbbreviationForUtc(bool) (r15, rsi); 0x0042452d lea r12, [rsp + 0x10] | r12 = rsp + 0x10; 0x00424532 mov rdi, r12 | 0x00424535 mov esi, 0xf | 0x0042453a mov rdx, r14 | 0x0042453d mov rcx, r15 | 0x00424540 call 0x42fa50 | eax = BloombergLP::bdlt::Iso8601Util::generate(char*,int,BloombergLP::bdlt::Timeconst&,BloombergLP::bdlt::Iso8601UtilConfigurationconst&) (r12, 0xf, r14, r15); 0x00424545 movsxd rdx, eax | rdx = (int64_t) eax; 0x00424548 mov rdi, rbx | rdi = rbx; 0x0042454b mov rsi, r12 | rsi = r12; 0x0042454e call 0x403cb0 | rax = std::_1::basic_ostream>::write(char const*,long) (); 0x00424553 mov rbx, rax | rbx = rax; 0x00424556 jmp 0x4244cc | | } while (1); | }