; assembly | /* r2dec pseudo code output */ | /* balxml_formatter.t/none @ 0x424220 */ | #include | ; (fcn) method.std::__1::basic_ostream_char__std::__1::char_traits_char____BloombergLP::balxml::TypesPrintUtil::print_BloombergLP::bdlt.Datetime__std::__1::basic_ostream_char__std::__1::char_traits_char_____BloombergLP::bdlt::Datetime_const__int__BloombergLP: () | int64_t method_std::_1::basic_ostream_char_std::_1::char_traits_char_BloombergLP::balxml::TypesPrintUtil::print_BloombergLP::bdlt_Datetime_std::_1::basic_ostream_char_std::_1::char_traits_char_BloombergLP::bdlt::Datetime_const_int_BloombergLP_ (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::Datetime const&, int, BloombergLP::balxml::EncoderOptions const*) */ 0x00424220 push r15 | 0x00424222 push r14 | 0x00424224 push r12 | 0x00424226 push rbx | 0x00424227 sub rsp, 0x38 | 0x0042422b mov rbx, rdi | rbx = rdi; 0x0042422e test edx, 0x100000 | | if ((edx & 0x100000) == 0) { 0x00424234 jne 0x424245 | 0x00424236 and edx, 7 | edx &= 7; 0x00424239 cmp edx, 4 | | if (edx > 4) { 0x0042423c ja 0x424245 | goto label_0; | } | /* switch table (5 cases) at 0x493eb8 */ 0x0042423e jmp qword [rdx*8 + 0x493eb8] | | } | label_0: 0x00424245 mov rax, qword [rbx] | rax = *(rbx); 0x00424248 mov rax, qword [rax - 0x18] | rax = *((rax - 0x18)); 0x0042424c lea rdi, [rbx + rax] | rdi = rbx + rax; 0x00424250 mov esi, dword [rbx + rax + 0x20] | esi = *((rbx + rax + 0x20)); 0x00424254 or esi, 4 | esi |= 4; 0x00424257 call 0x403c40 | std::_1::ios_base::clear(unsignedint) (); | do { 0x0042425c mov rax, rbx | rax = rbx; 0x0042425f add rsp, 0x38 | 0x00424263 pop rbx | 0x00424264 pop r12 | 0x00424266 pop r14 | 0x00424268 pop r15 | 0x0042426a ret | return rax; 0x0042426b mov r15, rcx | r15 = rcx; 0x0042426e mov r14, rsi | r14 = rsi; 0x00424271 mov dword [rsp + 8], 3 | *((rsp + 8)) = 3; 0x00424279 test rcx, rcx | | if (rcx != 0) { 0x0042427c je 0x42429c | 0x0042427e mov esi, dword [r15 + 0xa0] | 0x00424285 lea rdi, [rsp + 8] | 0x0042428a call 0x432e90 | BloombergLP::bdlt::Iso8601UtilConfiguration::setFractionalSecondPrecision(int) (rsp + 8, *((r15 + 0xa0))); 0x0042428f cmp byte [r15 + 0xc3], 0 | 0x00424297 setne al | al = (*((r15 + 0xc3)) != 0) ? 1 : 0; 0x0042429a jmp 0x4242ad | | } else { 0x0042429c lea rdi, [rsp + 8] | 0x004242a1 mov esi, 6 | 0x004242a6 call 0x432e90 | eax = BloombergLP::bdlt::Iso8601UtilConfiguration::setFractionalSecondPrecision(int) (rsp + 8, 6); 0x004242ab xor eax, eax | eax = 0; | } 0x004242ad movzx esi, al | esi = (int32_t) al; 0x004242b0 lea r15, [rsp + 8] | r15 = rsp + 8; 0x004242b5 mov rdi, r15 | 0x004242b8 call 0x432eb0 | BloombergLP::bdlt::Iso8601UtilConfiguration::setUseZAbbreviationForUtc(bool) (r15, rsi); 0x004242bd lea r12, [rsp + 0x10] | r12 = rsp + 0x10; 0x004242c2 mov rdi, r12 | 0x004242c5 mov esi, 0x1a | 0x004242ca mov rdx, r14 | 0x004242cd mov rcx, r15 | 0x004242d0 call 0x4300f0 | eax = BloombergLP::bdlt::Iso8601Util::generate(char*,int,BloombergLP::bdlt::Datetimeconst&,BloombergLP::bdlt::Iso8601UtilConfigurationconst&) (r12, 0x1a, r14, r15); 0x004242d5 movsxd rdx, eax | rdx = (int64_t) eax; 0x004242d8 mov rdi, rbx | rdi = rbx; 0x004242db mov rsi, r12 | rsi = r12; 0x004242de call 0x403cb0 | rax = std::_1::basic_ostream>::write(char const*,long) (); 0x004242e3 mov rbx, rax | rbx = rax; 0x004242e6 jmp 0x42425c | | } while (1); | }