; assembly | /* r2dec pseudo code output */ | /* balxml_configschema.t/assume @ 0x417bc0 */ | #include | ; (fcn) method.int_BloombergLP::balxml::Decoder_ParseObject::executeImp_BloombergLP::s_baltst.BasicSchemaComplexTypeElementChoice__BloombergLP::s_baltst::BasicSchemaComplexTypeElementChoice__int__BloombergLP::bdlat_TypeCategory::Choice_ () | int64_t method_int_BloombergLP::balxml::Decoder_ParseObject::executeImp_BloombergLP::s_baltst_BasicSchemaComplexTypeElementChoice_BloombergLP::s_baltst::BasicSchemaComplexTypeElementChoice_int_BloombergLP::bdlat_TypeCategory::Choice_ (int64_t arg3, int64_t arg2, int64_t arg1) { | int64_t var_8h_3; | int64_t var_10h_2; | int64_t var_18h; | int64_t var_20h; | int64_t var_28h_2; | int64_t var_38h; | int64_t var_40h; | uint32_t var_48h; | int64_t var_50h; | int64_t var_28h; | int64_t var_30h; | rdx = arg3; | rsi = arg2; | rdi = arg1; | /* int BloombergLP::balxml::Decoder_ParseObject::executeImp(BloombergLP::s_baltst::BasicSchemaComplexTypeElementChoice*, int, BloombergLP::bdlat_TypeCategory::Choice) */ 0x00417bc0 push r15 | 0x00417bc2 push r14 | 0x00417bc4 push rbx | 0x00417bc5 sub rsp, 0x100 | 0x00417bcc mov r14, rsi | r14 = rsi; 0x00417bcf mov rbx, rdi | rbx = rdi; 0x00417bd2 test edx, 0x10000 | | if ((edx & 0x10000) == 0) { 0x00417bd8 jne 0x417c26 | 0x00417bda mov qword [rsp + 8], 0x49c480 | *((rsp + 8)) = vtable.BloombergLP::balxml::Decoder_ChoiceContext_BloombergLP::s_baltst::BasicSchemaComplexTypeElementChoice_.0; 0x00417be3 mov byte [rsp + 0x10], 0 | *((rsp + 0x10)) = 0; 0x00417be8 mov qword [rsp + 0x18], r14 | *((rsp + 0x18)) = r14; 0x00417bed mov byte [rsp + 0x20], 0 | *((rsp + 0x20)) = 0; 0x00417bf2 mov qword [rsp + 0x28], 0 | *((rsp + 0x28)) = 0; 0x00417bfb movaps xmm0, xmmword [rip + 0x81e8e] | xmm0 = .comment; 0x00417c02 movups xmmword [rsp + 0x40], xmm0 | __asm ("movups xmmword [rsp + 0x40], xmm0"); 0x00417c07 mov rax, qword [rip + 0x2c84f2] | rax = BloombergLP::bslma::Default::s_defaultAllocator; 0x00417c0e test rax, rax | | if (rax == 0) { 0x00417c11 je 0x417d07 | goto label_0; | } 0x00417c17 mov qword [rsp + 0x50], rax | *((rsp + 0x50)) = rax; 0x00417c1c lea rcx, [rsp + 0x28] | rcx = rsp + 0x28; 0x00417c21 jmp 0x417d81 | goto label_1; | } 0x00417c26 mov rax, qword [rbx] | rax = *(rbx); 0x00417c29 mov rax, qword [rax] | rax = *(rax); 0x00417c2c cmp byte [rax + 8], 0 | | if (*((rax + 8)) != 0) { 0x00417c30 je 0x417c47 | 0x00417c32 mov rdi, qword [rbx + 8] | 0x00417c36 mov esi, dword [rbx + 0x10] | 0x00417c39 call 0x435460 | rax = BloombergLP::s_baltst::BasicSchemaComplexTypeElementChoice::lookupSelectionInfo(char const*,int) (*((rbx + 8)), *((rbx + 0x10))); 0x00417c3e test rax, rax | | if (rax == 0) { 0x00417c41 je 0x417d57 | goto label_2; | } | } 0x00417c47 mov rsi, qword [rbx + 8] | 0x00417c4b mov edx, dword [rbx + 0x10] | edx = *((rbx + 0x10)); 0x00417c4e mov rdi, r14 | 0x00417c51 call 0x436350 | eax = BloombergLP::s_baltst::BasicSchemaComplexTypeElementChoice::makeSelection(char const*,int) (r14, *((rbx + 8))); 0x00417c56 test eax, eax | | if (eax == 0) { 0x00417c58 je 0x417d20 | goto label_3; | } 0x00417c5e mov r15, qword [rbx] | r15 = *(rbx); 0x00417c61 mov rsi, qword [r15 + 0x2d0] | 0x00417c68 lea r14, [rsp + 8] | r14 = rsp + 8; 0x00417c6d mov rdi, r14 | 0x00417c70 call 0x40edc0 | BloombergLP::balxml::Decoder::MemOutStream::MemOutStream(BloombergLP::bslma::Allocator*) (r14, *((r15 + 0x2d0))); 0x00417c75 mov dword [rsp + 0xf0], 2 | *((rsp + 0xf0)) = 2; 0x00417c80 mov qword [rsp + 0xf8], r15 | *((rsp + 0xf8)) = r15; 0x00417c88 mov esi, 0x49a6e9 | 0x00417c8d mov edx, 0x1b | 0x00417c92 mov rdi, r14 | 0x00417c95 call 0x40daf0 | rax = std::_1::basic_ostream>&std::_1::_put_character_sequence>(std::_1::basic_ostream>&,char const*,unsigned long) (r14, "Unable to make selection: \", 0x1b); 0x00417c9a mov r14, rax | r14 = rax; 0x00417c9d mov rbx, qword [rbx + 8] | rbx = *((rbx + 8)); 0x00417ca1 mov rdi, rbx | 0x00417ca4 call 0x404740 | rax = strlen (*((rbx + 8))); 0x00417ca9 mov rdi, r14 | 0x00417cac mov rsi, rbx | 0x00417caf mov rdx, rax | 0x00417cb2 call 0x40daf0 | rax = std::_1::basic_ostream>&std::_1::_put_character_sequence>(std::_1::basic_ostream>&,char const*,unsigned long) (r14, rbx, rax); 0x00417cb7 mov esi, 0x49a5ef | 0x00417cbc mov edx, 2 | 0x00417cc1 mov rdi, rax | 0x00417cc4 call 0x40daf0 | rax = std::_1::basic_ostream>&std::_1::_put_character_sequence>(std::_1::basic_ostream>&,char const*,unsigned long) (rax, 0x49a5ef, 2); 0x00417cc9 mov rdi, rax | rdi = rax; 0x00417ccc call 0x4049b0 | std::_1::basic_ostream>::flush() (); 0x00417cd1 mov rdi, qword [rsp + 0xf8] | 0x00417cd9 mov esi, dword [rsp + 0xf0] | 0x00417ce0 mov rdx, qword [rsp + 0x38] | 0x00417ce5 mov eax, dword [rsp + 0x40] | eax = *((rsp + 0x40)); 0x00417ce9 sub eax, edx | eax -= edx; 0x00417ceb movsxd rcx, eax | rcx = (int64_t) eax; 0x00417cee call 0x421940 | BloombergLP::balxml::Decoder::setDecoderError(BloombergLP::balxml::ErrorInfo::Severity,std::_1::basic_string_view>) (*((rsp + 0xf8)), *((rsp + 0xf0)), *((rsp + 0x38)), rcx); 0x00417cf3 lea rdi, [rsp + 8] | 0x00417cf8 call 0x420f00 | BloombergLP::balxml::Decoder::MemOutStream::~MemOutStream() (rsp + 8); | do { 0x00417cfd mov ebx, 0xffffffff | ebx = 0xffffffff; 0x00417d02 jmp 0x417dc7 | goto label_4; | label_0: 0x00417d07 call 0x474010 | rax = BloombergLP::bslma::Default::determineAndReturnDefaultAllocator() (); 0x00417d0c cmp qword [rsp + 0x48], 0x17 | 0x00417d12 mov qword [rsp + 0x50], rax | *((rsp + 0x50)) = rax; | if (*((rsp + 0x48)) != 0x17) { 0x00417d17 jne 0x417d7c | goto label_5; | } 0x00417d19 lea rcx, [rsp + 0x28] | rcx = rsp + 0x28; 0x00417d1e jmp 0x417d81 | goto label_1; | label_3: 0x00417d20 mov eax, dword [r14 + 0x40] | eax = *((r14 + 0x40)); 0x00417d24 cmp eax, 2 | | if (eax == 2) { 0x00417d27 je 0x417dd6 | goto label_6; | } 0x00417d2d cmp eax, 1 | | if (eax == 1) { 0x00417d30 je 0x417df3 | goto label_7; | } 0x00417d36 test eax, eax | 0x00417d38 jne 0x417cfd | | } while (eax != 0); 0x00417d3a mov edx, dword [rip + 0x89dc0] | edx = .comment; 0x00417d40 mov rdi, rbx | rdi = rbx; 0x00417d43 mov rsi, r14 | rsi = r14; 0x00417d46 add rsp, 0x100 | 0x00417d4d pop rbx | 0x00417d4e pop r14 | 0x00417d50 pop r15 | 0x00417d52 jmp 0x410d30 | void (*0x410d30)() (); | label_2: 0x00417d57 mov rax, qword [rbx] | rax = *(rbx); 0x00417d5a inc dword [rax + 0x410] | *((rax + 0x410))++; 0x00417d60 lea r14, [rsp + 8] | r14 = rsp + 8; 0x00417d65 mov rdi, r14 | rdi = r14; 0x00417d68 call 0x421d50 | BloombergLP::balxml::Decoder_UnknownElementContext::Decoder_UnknownElementContext() (); 0x00417d6d mov rsi, qword [rbx] | 0x00417d70 mov rdi, r14 | 0x00417d73 call 0x420870 | eax = BloombergLP::balxml::Decoder_ElementContext::beginParse(BloombergLP::balxml::Decoder*) (r14, *(rbx)); 0x00417d78 mov ebx, eax | ebx = eax; 0x00417d7a jmp 0x417dbd | goto label_8; | label_5: 0x00417d7c mov rcx, qword [rsp + 0x28] | rcx = *((rsp + 0x28)); | label_1: 0x00417d81 mov byte [rcx], 0 | *(rcx) = 0; 0x00417d84 mov rsi, qword [rbx] | 0x00417d87 lea rdi, [rsp + 8] | 0x00417d8c call 0x420870 | eax = BloombergLP::balxml::Decoder_ElementContext::beginParse(BloombergLP::balxml::Decoder*) (rsp + 8, *(rbx)); 0x00417d91 mov ebx, eax | ebx = eax; 0x00417d93 mov qword [rsp + 8], 0x49c480 | *((rsp + 8)) = vtable.BloombergLP::balxml::Decoder_ChoiceContext_BloombergLP::s_baltst::BasicSchemaComplexTypeElementChoice_.0; 0x00417d9c cmp qword [rsp + 0x48], 0x17 | | if (*((rsp + 0x48)) != 0x17) { 0x00417da2 je 0x417db4 | 0x00417da4 mov rsi, qword [rsp + 0x28] | rsi = *((rsp + 0x28)); 0x00417da9 mov rdi, qword [rsp + 0x50] | rdi = *((rsp + 0x50)); 0x00417dae mov rax, qword [rdi] | rax = *(rdi); 0x00417db1 call qword [rax + 0x18] | uint64_t (*rax + 0x18)() (); | } 0x00417db4 mov qword [rsp + 0x40], 0xffffffffffffffff | *((rsp + 0x40)) = 0xffffffffffffffff; | label_8: 0x00417dbd lea rdi, [rsp + 8] | rdi = rsp + 8; 0x00417dc2 call 0x422180 | BloombergLP::balxml::Decoder_ElementContext::~Decoder_ElementContext() (); | label_4: 0x00417dc7 mov eax, ebx | eax = ebx; 0x00417dc9 add rsp, 0x100 | 0x00417dd0 pop rbx | 0x00417dd1 pop r14 | 0x00417dd3 pop r15 | 0x00417dd5 ret | return rax; | label_6: 0x00417dd6 mov rsi, qword [r14] | rsi = *(r14); 0x00417dd9 mov edx, dword [rip + 0x89d71] | edx = .comment; 0x00417ddf mov rdi, rbx | rdi = rbx; 0x00417de2 add rsp, 0x100 | 0x00417de9 pop rbx | 0x00417dea pop r14 | 0x00417dec pop r15 | 0x00417dee jmp 0x41c7d0 | void (*0x41c7d0)() (); | label_7: 0x00417df3 mov rsi, qword [r14] | rsi = *(r14); 0x00417df6 mov edx, dword [rip + 0x89d2c] | edx = .comment; 0x00417dfc mov rdi, rbx | rdi = rbx; 0x00417dff add rsp, 0x100 | 0x00417e06 pop rbx | 0x00417e07 pop r14 | 0x00417e09 pop r15 | 0x00417e0b jmp 0x417f00 | return void (*0x417f00)() (); | }