; assembly | /* r2dec pseudo code output */ | /* balxml_configschema.t/none @ 0x410a60 */ | #include | ; (fcn) method.int_BloombergLP::balxml::Decoder_ParseObject::executeImp_BloombergLP::s_baltst.BasicSchemaChoice__BloombergLP::s_baltst::BasicSchemaChoice__int__BloombergLP::bdlat_TypeCategory::Choice_ () | int64_t method_int_BloombergLP::balxml::Decoder_ParseObject::executeImp_BloombergLP::s_baltst_BasicSchemaChoice_BloombergLP::s_baltst::BasicSchemaChoice_int_BloombergLP::bdlat_TypeCategory::Choice_ (int64_t arg3, int64_t arg2, int64_t arg1) { | int64_t var_8h; | int64_t var_10h; | int64_t var_18h; | int64_t var_20h; | int64_t var_28h; | int64_t var_38h; | int64_t var_40h; | uint32_t var_48h; | int64_t var_50h; | int64_t var_f0h; | int64_t var_f8h; | rdx = arg3; | rsi = arg2; | rdi = arg1; | /* int BloombergLP::balxml::Decoder_ParseObject::executeImp(BloombergLP::s_baltst::BasicSchemaChoice*, int, BloombergLP::bdlat_TypeCategory::Choice) */ 0x00410a60 push rbp | 0x00410a61 push r14 | 0x00410a63 push rbx | 0x00410a64 sub rsp, 0x100 | 0x00410a6b mov r14, rsi | r14 = rsi; 0x00410a6e mov rbx, rdi | rbx = rdi; 0x00410a71 test edx, 0x10000 | | if ((edx & 0x10000) == 0) { 0x00410a77 jne 0x410ac5 | 0x00410a79 mov qword [rsp + 8], 0x49cbd0 | *((rsp + 8)) = vtable.BloombergLP::balxml::Decoder_ChoiceContext_BloombergLP::s_baltst::BasicSchemaChoice_.0; 0x00410a82 mov byte [rsp + 0x10], 0 | *((rsp + 0x10)) = 0; 0x00410a87 mov qword [rsp + 0x18], r14 | *((rsp + 0x18)) = r14; 0x00410a8c mov byte [rsp + 0x20], 0 | *((rsp + 0x20)) = 0; 0x00410a91 mov qword [rsp + 0x28], 0 | *((rsp + 0x28)) = 0; 0x00410a9a movaps xmm0, xmmword [rip + 0x8936f] | xmm0 = .comment; 0x00410aa1 movups xmmword [rsp + 0x40], xmm0 | __asm ("movups xmmword [rsp + 0x40], xmm0"); 0x00410aa6 mov rax, qword [rip + 0x2cf653] | rax = BloombergLP::bslma::Default::s_defaultAllocator; 0x00410aad test rax, rax | | if (rax != 0) { 0x00410ab0 je 0x410ba6 | 0x00410ab6 mov qword [rsp + 0x50], rax | *((rsp + 0x50)) = rax; 0x00410abb lea rcx, [rsp + 0x28] | rcx = rsp + 0x28; 0x00410ac0 jmp 0x410c2b | | } else { 0x00410ac5 mov rax, qword [rbx] | rax = *(rbx); 0x00410ac8 mov rax, qword [rax] | rax = *(rax); 0x00410acb cmp byte [rax + 8], 0 | | if (*((rax + 8)) != 0) { 0x00410acf je 0x410ae6 | 0x00410ad1 mov rdi, qword [rbx + 8] | 0x00410ad5 mov esi, dword [rbx + 0x10] | 0x00410ad8 call 0x43a6e0 | rax = BloombergLP::s_baltst::BasicSchemaChoice::lookupSelectionInfo(char const*,int) (*((rbx + 8)), *((rbx + 0x10))); 0x00410add test rax, rax | | if (rax == 0) { 0x00410ae0 je 0x410c01 | goto label_0; | } | } 0x00410ae6 mov rsi, qword [rbx + 8] | 0x00410aea mov edx, dword [rbx + 0x10] | 0x00410aed mov rdi, r14 | 0x00410af0 call 0x43b370 | eax = BloombergLP::s_baltst::BasicSchemaChoice::makeSelection(char const*,int) (r14, *((rbx + 8)), *((rbx + 0x10))); 0x00410af5 test eax, eax | | if (eax == 0) { 0x00410af7 je 0x410bbf | goto label_1; | } 0x00410afd mov rbp, qword [rbx] | rbp = *(rbx); 0x00410b00 mov rsi, qword [rbp + 0x2d0] | 0x00410b07 lea r14, [rsp + 8] | r14 = rsp + 8; 0x00410b0c mov rdi, r14 | 0x00410b0f call 0x40ee30 | BloombergLP::balxml::Decoder::MemOutStream::MemOutStream(BloombergLP::bslma::Allocator*) (r14, *((rbp + 0x2d0))); 0x00410b14 mov dword [rsp + 0xf0], 2 | *((rsp + 0xf0)) = 2; 0x00410b1f mov qword [rsp + 0xf8], rbp | *((rsp + 0xf8)) = rbp; 0x00410b27 mov esi, 0x49aa63 | 0x00410b2c mov edx, 0x1b | 0x00410b31 mov rdi, r14 | 0x00410b34 call 0x40db40 | rax = std::_1::basic_ostream>&std::_1::_put_character_sequence>(std::_1::basic_ostream>&,char const*,unsigned long) (r14, "Unable to make selection: \", 0x1b); 0x00410b39 mov rbp, rax | 0x00410b3c mov rbx, qword [rbx + 8] | rbx = *((rbx + 8)); 0x00410b40 mov rdi, rbx | 0x00410b43 call 0x404780 | rax = strlen (*((rbx + 8))); 0x00410b48 mov rdi, rbp | 0x00410b4b mov rsi, rbx | 0x00410b4e mov rdx, rax | 0x00410b51 call 0x40db40 | rax = std::_1::basic_ostream>&std::_1::_put_character_sequence>(std::_1::basic_ostream>&,char const*,unsigned long) (rbp, rbx, rax); 0x00410b56 mov esi, 0x49a969 | 0x00410b5b mov edx, 2 | 0x00410b60 mov rdi, rax | 0x00410b63 call 0x40db40 | rax = std::_1::basic_ostream>&std::_1::_put_character_sequence>(std::_1::basic_ostream>&,char const*,unsigned long) (rax, 0x49a969, 2); 0x00410b68 mov rdi, rax | rdi = rax; 0x00410b6b call 0x4049f0 | std::_1::basic_ostream>::flush() (); 0x00410b70 mov rdi, qword [rsp + 0xf8] | 0x00410b78 mov esi, dword [rsp + 0xf0] | 0x00410b7f mov rdx, qword [rsp + 0x38] | 0x00410b84 mov eax, dword [rsp + 0x40] | eax = *((rsp + 0x40)); 0x00410b88 sub eax, edx | eax -= edx; 0x00410b8a movsxd rcx, eax | rcx = (int64_t) eax; 0x00410b8d call 0x421a30 | BloombergLP::balxml::Decoder::setDecoderError(BloombergLP::balxml::ErrorInfo::Severity,std::_1::basic_string_view>) (*((rsp + 0xf8)), *((rsp + 0xf0)), *((rsp + 0x38)), rcx); 0x00410b92 lea rdi, [rsp + 8] | 0x00410b97 call 0x420ff0 | BloombergLP::balxml::Decoder::MemOutStream::~MemOutStream() (rsp + 8); 0x00410b9c mov ebp, 0xffffffff | 0x00410ba1 jmp 0x410c71 | goto label_2; | } 0x00410ba6 call 0x474360 | rax = BloombergLP::bslma::Default::determineAndReturnDefaultAllocator() (); 0x00410bab cmp qword [rsp + 0x48], 0x17 | 0x00410bb1 mov qword [rsp + 0x50], rax | *((rsp + 0x50)) = rax; | if (*((rsp + 0x48)) == 0x17) { 0x00410bb6 jne 0x410c26 | 0x00410bb8 lea rcx, [rsp + 0x28] | rcx = rsp + 0x28; 0x00410bbd jmp 0x410c2b | goto label_3; | label_1: 0x00410bbf mov eax, dword [r14 + 0xa0] | eax = *((r14 + 0xa0)); 0x00410bc6 cmp eax, 2 | | if (eax == 2) { 0x00410bc9 je 0x410c7f | goto label_4; | } 0x00410bcf cmp eax, 1 | | if (eax == 1) { 0x00410bd2 je 0x410c9b | goto label_5; | } 0x00410bd8 mov ebp, 0xffffffff | 0x00410bdd test eax, eax | | if (eax != 0) { 0x00410bdf jne 0x410c71 | goto label_2; | } 0x00410be5 mov edx, dword [rip + 0x91645] | edx = .comment; 0x00410beb mov rdi, rbx | rdi = rbx; 0x00410bee mov rsi, r14 | rsi = r14; 0x00410bf1 add rsp, 0x100 | 0x00410bf8 pop rbx | 0x00410bf9 pop r14 | 0x00410bfb pop rbp | 0x00410bfc jmp 0x410db0 | void (*0x410db0)() (); | label_0: 0x00410c01 mov rax, qword [rbx] | rax = *(rbx); 0x00410c04 inc dword [rax + 0x410] | *((rax + 0x410))++; 0x00410c0a lea rbp, [rsp + 8] | rbp = rsp + 8; 0x00410c0f mov rdi, rbp | rdi = rbp; 0x00410c12 call 0x421e30 | BloombergLP::balxml::Decoder_UnknownElementContext::Decoder_UnknownElementContext() (); 0x00410c17 mov rsi, qword [rbx] | 0x00410c1a mov rdi, rbp | 0x00410c1d call 0x420960 | eax = BloombergLP::balxml::Decoder_ElementContext::beginParse(BloombergLP::balxml::Decoder*) (rbp, *(rbx)); 0x00410c22 mov ebp, eax | 0x00410c24 jmp 0x410c67 | goto label_6; | } 0x00410c26 mov rcx, qword [rsp + 0x28] | rcx = *((rsp + 0x28)); | } | label_3: 0x00410c2b mov byte [rcx], 0 | *(rcx) = 0; 0x00410c2e mov rsi, qword [rbx] | 0x00410c31 lea rdi, [rsp + 8] | 0x00410c36 call 0x420960 | eax = BloombergLP::balxml::Decoder_ElementContext::beginParse(BloombergLP::balxml::Decoder*) (rsp + 8, *(rbx)); 0x00410c3b mov ebp, eax | 0x00410c3d mov qword [rsp + 8], 0x49cbd0 | *((rsp + 8)) = vtable.BloombergLP::balxml::Decoder_ChoiceContext_BloombergLP::s_baltst::BasicSchemaChoice_.0; 0x00410c46 cmp qword [rsp + 0x48], 0x17 | | if (*((rsp + 0x48)) != 0x17) { 0x00410c4c je 0x410c5e | 0x00410c4e mov rsi, qword [rsp + 0x28] | rsi = *((rsp + 0x28)); 0x00410c53 mov rdi, qword [rsp + 0x50] | rdi = *((rsp + 0x50)); 0x00410c58 mov rax, qword [rdi] | rax = *(rdi); 0x00410c5b call qword [rax + 0x18] | uint64_t (*rax + 0x18)() (); | } 0x00410c5e mov qword [rsp + 0x40], 0xffffffffffffffff | *((rsp + 0x40)) = 0xffffffffffffffff; | label_6: 0x00410c67 lea rdi, [rsp + 8] | rdi = rsp + 8; 0x00410c6c call 0x422260 | BloombergLP::balxml::Decoder_ElementContext::~Decoder_ElementContext() (); | label_2: 0x00410c71 mov eax, ebp | eax = ebp; 0x00410c73 add rsp, 0x100 | 0x00410c7a pop rbx | 0x00410c7b pop r14 | 0x00410c7d pop rbp | 0x00410c7e ret | return rax; | label_4: 0x00410c7f mov rsi, qword [r14] | rsi = *(r14); 0x00410c82 mov edx, dword [rip + 0x915f8] | edx = .comment; 0x00410c88 mov rdi, rbx | rdi = rbx; 0x00410c8b add rsp, 0x100 | 0x00410c92 pop rbx | 0x00410c93 pop r14 | 0x00410c95 pop rbp | 0x00410c96 jmp 0x4175e0 | void (*0x4175e0)() (); | label_5: 0x00410c9b mov edx, dword [rip + 0x915b7] | edx = .comment; 0x00410ca1 mov rdi, rbx | rdi = rbx; 0x00410ca4 mov rsi, r14 | rsi = r14; 0x00410ca7 add rsp, 0x100 | 0x00410cae pop rbx | 0x00410caf pop r14 | 0x00410cb1 pop rbp | 0x00410cb2 jmp 0x4112b0 | return void (*0x4112b0)() (); | }