; assembly | /* r2dec pseudo code output */ | /* balxml_formatter.t/assume @ 0x424290 */ | #include | ; (fcn) method.std::__1::basic_ostream_char__std::__1::char_traits_char____BloombergLP::balxml::TypesPrintUtil::print_BloombergLP::bdlt.DatetimeTz__std::__1::basic_ostream_char__std::__1::char_traits_char_____BloombergLP::bdlt::DatetimeTz_const__int__Bloomber () | int64_t method_std::_1::basic_ostream_char_std::_1::char_traits_char_BloombergLP::balxml::TypesPrintUtil::print_BloombergLP::bdlt_DatetimeTz_std::_1::basic_ostream_char_std::_1::char_traits_char_BloombergLP::bdlt::DatetimeTz_const_int_Bloomber (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::DatetimeTz const&, int, BloombergLP::balxml::EncoderOptions const*) */ 0x00424290 push r15 | 0x00424292 push r14 | 0x00424294 push rbx | 0x00424295 sub rsp, 0x40 | 0x00424299 mov rbx, rdi | rbx = rdi; 0x0042429c test edx, 0x100000 | | if ((edx & 0x100000) == 0) { 0x004242a2 jne 0x4242b3 | 0x004242a4 and edx, 7 | edx &= 7; 0x004242a7 cmp edx, 4 | | if (edx > 4) { 0x004242aa ja 0x4242b3 | goto label_0; | } | /* switch table (5 cases) at 0x493840 */ 0x004242ac jmp qword [rdx*8 + 0x493840] | | } | label_0: 0x004242b3 mov rax, qword [rbx] | rax = *(rbx); 0x004242b6 mov rax, qword [rax - 0x18] | rax = *((rax - 0x18)); 0x004242ba lea rdi, [rbx + rax] | rdi = rbx + rax; 0x004242be mov esi, dword [rbx + rax + 0x20] | esi = *((rbx + rax + 0x20)); 0x004242c2 or esi, 4 | esi |= 4; 0x004242c5 call 0x403c40 | std::_1::ios_base::clear(unsignedint) (); | do { 0x004242ca mov rax, rbx | rax = rbx; 0x004242cd add rsp, 0x40 | 0x004242d1 pop rbx | 0x004242d2 pop r14 | 0x004242d4 pop r15 | 0x004242d6 ret | return rax; 0x004242d7 mov r15, rcx | r15 = rcx; 0x004242da mov r14, rsi | r14 = rsi; 0x004242dd mov dword [rsp + 8], 3 | *((rsp + 8)) = 3; 0x004242e5 test rcx, rcx | | if (rcx != 0) { 0x004242e8 je 0x42430f | 0x004242ea mov esi, dword [r15 + 0xa0] | 0x004242f1 lea rdi, [rsp + 8] | 0x004242f6 call 0x432a20 | BloombergLP::bdlt::Iso8601UtilConfiguration::setFractionalSecondPrecision(int) (rsp + 8, *((r15 + 0xa0))); 0x004242fb movzx esi, byte [r15 + 0xc3] | esi = *((r15 + 0xc3)); 0x00424303 lea rdi, [rsp + 8] | 0x00424308 call 0x432a40 | BloombergLP::bdlt::Iso8601UtilConfiguration::setUseZAbbreviationForUtc(bool) (rsp + 8, rsi); 0x0042430d jmp 0x42432a | | } else { 0x0042430f lea rdi, [rsp + 8] | 0x00424314 mov esi, 6 | 0x00424319 call 0x432a20 | BloombergLP::bdlt::Iso8601UtilConfiguration::setFractionalSecondPrecision(int) (rsp + 8, 6); 0x0042431e lea rdi, [rsp + 8] | 0x00424323 xor esi, esi | 0x00424325 call 0x432a40 | BloombergLP::bdlt::Iso8601UtilConfiguration::setUseZAbbreviationForUtc(bool) (rsp + 8, 0); | } 0x0042432a lea rdi, [rsp + 0x10] | 0x0042432f lea rcx, [rsp + 8] | 0x00424334 mov esi, 0x20 | 0x00424339 mov rdx, r14 | 0x0042433c call 0x430b40 | eax = BloombergLP::bdlt::Iso8601Util::generate(char*,int,BloombergLP::bdlt::DatetimeTzconst&,BloombergLP::bdlt::Iso8601UtilConfigurationconst&) (rsp + 0x10, 0x20, r14, rsp + 8); 0x00424341 movsxd rdx, eax | rdx = (int64_t) eax; 0x00424344 lea rsi, [rsp + 0x10] | rsi = rsp + 0x10; 0x00424349 mov rdi, rbx | rdi = rbx; 0x0042434c call 0x403cb0 | rax = std::_1::basic_ostream>::write(char const*,long) (); 0x00424351 mov rbx, rax | rbx = rax; 0x00424354 jmp 0x4242ca | | } while (1); | }