; assembly | /* r2dec pseudo code output */ | /* balxml_configschema.t/assume @ 0x418560 */ | #include | ; (fcn) method.int_BloombergLP::balxml::Decoder_ParseObject::executeImp_BloombergLP::s_baltst.BasicSchemaSequenceElementChoice__BloombergLP::s_baltst::BasicSchemaSequenceElementChoice__int__BloombergLP::bdlat_TypeCategory::Choice_ () | int64_t method_int_BloombergLP::balxml::Decoder_ParseObject::executeImp_BloombergLP::s_baltst_BasicSchemaSequenceElementChoice_BloombergLP::s_baltst::BasicSchemaSequenceElementChoice_int_BloombergLP::bdlat_TypeCategory::Choice_ (int64_t arg3, int64_t arg2, int64_t arg1) { | int64_t var_50h; | int64_t var_10h_5; | int64_t var_18h_2; | int64_t var_20h_2; | int64_t var_28h_3; | int64_t var_38h_2; | int64_t var_40h_2; | uint32_t var_48h_2; | int64_t var_50h_2; | int64_t var_f0h; | int64_t var_8h_4; | rdx = arg3; | rsi = arg2; | rdi = arg1; | /* int BloombergLP::balxml::Decoder_ParseObject::executeImp(BloombergLP::s_baltst::BasicSchemaSequenceElementChoice*, int, BloombergLP::bdlat_TypeCategory::Choice) */ 0x00418560 push r15 | 0x00418562 push r14 | 0x00418564 push rbx | 0x00418565 sub rsp, 0x100 | 0x0041856c mov r14, rsi | r14 = rsi; 0x0041856f mov rbx, rdi | rbx = rdi; 0x00418572 test edx, 0x10000 | | if ((edx & 0x10000) == 0) { 0x00418578 jne 0x4185c6 | 0x0041857a mov qword [rsp + 8], 0x49bd18 | *((rsp + 8)) = vtable.BloombergLP::balxml::Decoder_ChoiceContext_BloombergLP::s_baltst::BasicSchemaSequenceElementChoice_.0; 0x00418583 mov byte [rsp + 0x10], 0 | *((rsp + 0x10)) = 0; 0x00418588 mov qword [rsp + 0x18], r14 | *((rsp + 0x18)) = r14; 0x0041858d mov byte [rsp + 0x20], 0 | *((rsp + 0x20)) = 0; 0x00418592 mov qword [rsp + 0x28], 0 | *((rsp + 0x28)) = 0; 0x0041859b movaps xmm0, xmmword [rip + 0x814ee] | xmm0 = .comment; 0x004185a2 movups xmmword [rsp + 0x40], xmm0 | __asm ("movups xmmword [rsp + 0x40], xmm0"); 0x004185a7 mov rax, qword [rip + 0x2c7b52] | rax = BloombergLP::bslma::Default::s_defaultAllocator; 0x004185ae test rax, rax | | if (rax == 0) { 0x004185b1 je 0x4186a7 | goto label_0; | } 0x004185b7 mov qword [rsp + 0x50], rax | *((rsp + 0x50)) = rax; 0x004185bc lea rcx, [rsp + 0x28] | rcx = rsp + 0x28; 0x004185c1 jmp 0x418718 | goto label_1; | } 0x004185c6 mov rax, qword [rbx] | rax = *(rbx); 0x004185c9 mov rax, qword [rax] | rax = *(rax); 0x004185cc cmp byte [rax + 8], 0 | | if (*((rax + 8)) != 0) { 0x004185d0 je 0x4185e7 | 0x004185d2 mov rdi, qword [rbx + 8] | 0x004185d6 mov esi, dword [rbx + 0x10] | 0x004185d9 call 0x439990 | rax = BloombergLP::s_baltst::BasicSchemaSequenceElementChoice::lookupSelectionInfo(char const*,int) (*((rbx + 8)), *((rbx + 0x10))); 0x004185de test rax, rax | | if (rax == 0) { 0x004185e1 je 0x4186ee | goto label_2; | } | } 0x004185e7 mov rsi, qword [rbx + 8] | 0x004185eb mov edx, dword [rbx + 0x10] | edx = *((rbx + 0x10)); 0x004185ee mov rdi, r14 | 0x004185f1 call 0x43a460 | eax = BloombergLP::s_baltst::BasicSchemaSequenceElementChoice::makeSelection(char const*,int) (r14, *((rbx + 8))); 0x004185f6 test eax, eax | | if (eax == 0) { 0x004185f8 je 0x4186c0 | goto label_3; | } 0x004185fe mov r15, qword [rbx] | r15 = *(rbx); 0x00418601 mov rsi, qword [r15 + 0x2d0] | 0x00418608 lea r14, [rsp + 8] | r14 = rsp + 8; 0x0041860d mov rdi, r14 | 0x00418610 call 0x40edc0 | BloombergLP::balxml::Decoder::MemOutStream::MemOutStream(BloombergLP::bslma::Allocator*) (r14, *((r15 + 0x2d0))); 0x00418615 mov dword [rsp + 0xf0], 2 | *((rsp + 0xf0)) = 2; 0x00418620 mov qword [rsp + 0xf8], r15 | *((rsp + 0xf8)) = r15; 0x00418628 mov esi, 0x49a6e9 | 0x0041862d mov edx, 0x1b | 0x00418632 mov rdi, r14 | 0x00418635 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); 0x0041863a mov r14, rax | r14 = rax; 0x0041863d mov rbx, qword [rbx + 8] | rbx = *((rbx + 8)); 0x00418641 mov rdi, rbx | 0x00418644 call 0x404740 | rax = strlen (*((rbx + 8))); 0x00418649 mov rdi, r14 | 0x0041864c mov rsi, rbx | 0x0041864f mov rdx, rax | 0x00418652 call 0x40daf0 | rax = std::_1::basic_ostream>&std::_1::_put_character_sequence>(std::_1::basic_ostream>&,char const*,unsigned long) (r14, rbx, rax); 0x00418657 mov esi, 0x49a5ef | 0x0041865c mov edx, 2 | 0x00418661 mov rdi, rax | 0x00418664 call 0x40daf0 | rax = std::_1::basic_ostream>&std::_1::_put_character_sequence>(std::_1::basic_ostream>&,char const*,unsigned long) (rax, 0x49a5ef, 2); 0x00418669 mov rdi, rax | rdi = rax; 0x0041866c call 0x4049b0 | std::_1::basic_ostream>::flush() (); 0x00418671 mov rdi, qword [rsp + 0xf8] | 0x00418679 mov esi, dword [rsp + 0xf0] | 0x00418680 mov rdx, qword [rsp + 0x38] | 0x00418685 mov eax, dword [rsp + 0x40] | eax = *((rsp + 0x40)); 0x00418689 sub eax, edx | eax -= edx; 0x0041868b movsxd rcx, eax | rcx = (int64_t) eax; 0x0041868e call 0x421940 | BloombergLP::balxml::Decoder::setDecoderError(BloombergLP::balxml::ErrorInfo::Severity,std::_1::basic_string_view>) (*((rsp + 0xf8)), *((rsp + 0xf0)), *((rsp + 0x38)), rcx); 0x00418693 lea rdi, [rsp + 8] | 0x00418698 call 0x420f00 | BloombergLP::balxml::Decoder::MemOutStream::~MemOutStream() (rsp + 8); | do { 0x0041869d mov ebx, 0xffffffff | ebx = 0xffffffff; 0x004186a2 jmp 0x41875e | goto label_4; | label_0: 0x004186a7 call 0x474010 | rax = BloombergLP::bslma::Default::determineAndReturnDefaultAllocator() (); 0x004186ac cmp qword [rsp + 0x48], 0x17 | 0x004186b2 mov qword [rsp + 0x50], rax | *((rsp + 0x50)) = rax; | if (*((rsp + 0x48)) != 0x17) { 0x004186b7 jne 0x418713 | goto label_5; | } 0x004186b9 lea rcx, [rsp + 0x28] | rcx = rsp + 0x28; 0x004186be jmp 0x418718 | goto label_1; | label_3: 0x004186c0 mov eax, dword [r14 + 0x40] | eax = *((r14 + 0x40)); 0x004186c4 cmp eax, 1 | | if (eax == 1) { 0x004186c7 je 0x41876d | goto label_6; | } 0x004186cd test eax, eax | 0x004186cf jne 0x41869d | | } while (eax != 0); 0x004186d1 mov edx, dword [rip + 0x89779] | edx = .comment; 0x004186d7 mov rdi, rbx | rdi = rbx; 0x004186da mov rsi, r14 | rsi = r14; 0x004186dd add rsp, 0x100 | 0x004186e4 pop rbx | 0x004186e5 pop r14 | 0x004186e7 pop r15 | 0x004186e9 jmp 0x410d30 | void (*0x410d30)() (); | label_2: 0x004186ee mov rax, qword [rbx] | rax = *(rbx); 0x004186f1 inc dword [rax + 0x410] | *((rax + 0x410))++; 0x004186f7 lea r14, [rsp + 8] | r14 = rsp + 8; 0x004186fc mov rdi, r14 | rdi = r14; 0x004186ff call 0x421d50 | BloombergLP::balxml::Decoder_UnknownElementContext::Decoder_UnknownElementContext() (); 0x00418704 mov rsi, qword [rbx] | 0x00418707 mov rdi, r14 | 0x0041870a call 0x420870 | eax = BloombergLP::balxml::Decoder_ElementContext::beginParse(BloombergLP::balxml::Decoder*) (r14, *(rbx)); 0x0041870f mov ebx, eax | ebx = eax; 0x00418711 jmp 0x418754 | goto label_7; | label_5: 0x00418713 mov rcx, qword [rsp + 0x28] | rcx = *((rsp + 0x28)); | label_1: 0x00418718 mov byte [rcx], 0 | *(rcx) = 0; 0x0041871b mov rsi, qword [rbx] | 0x0041871e lea rdi, [rsp + 8] | 0x00418723 call 0x420870 | eax = BloombergLP::balxml::Decoder_ElementContext::beginParse(BloombergLP::balxml::Decoder*) (rsp + 8, *(rbx)); 0x00418728 mov ebx, eax | ebx = eax; 0x0041872a mov qword [rsp + 8], 0x49bd18 | *((rsp + 8)) = vtable.BloombergLP::balxml::Decoder_ChoiceContext_BloombergLP::s_baltst::BasicSchemaSequenceElementChoice_.0; 0x00418733 cmp qword [rsp + 0x48], 0x17 | | if (*((rsp + 0x48)) != 0x17) { 0x00418739 je 0x41874b | 0x0041873b mov rsi, qword [rsp + 0x28] | rsi = *((rsp + 0x28)); 0x00418740 mov rdi, qword [rsp + 0x50] | rdi = *((rsp + 0x50)); 0x00418745 mov rax, qword [rdi] | rax = *(rdi); 0x00418748 call qword [rax + 0x18] | uint64_t (*rax + 0x18)() (); | } 0x0041874b mov qword [rsp + 0x40], 0xffffffffffffffff | *((rsp + 0x40)) = 0xffffffffffffffff; | label_7: 0x00418754 lea rdi, [rsp + 8] | rdi = rsp + 8; 0x00418759 call 0x422180 | BloombergLP::balxml::Decoder_ElementContext::~Decoder_ElementContext() (); | label_4: 0x0041875e mov eax, ebx | eax = ebx; 0x00418760 add rsp, 0x100 | 0x00418767 pop rbx | 0x00418768 pop r14 | 0x0041876a pop r15 | 0x0041876c ret | return rax; | label_6: 0x0041876d mov rsi, qword [r14] | rsi = *(r14); 0x00418770 mov edx, dword [rip + 0x89702] | edx = .comment; 0x00418776 mov rdi, rbx | rdi = rbx; 0x00418779 add rsp, 0x100 | 0x00418780 pop rbx | 0x00418781 pop r14 | 0x00418783 pop r15 | 0x00418785 jmp 0x418880 | return void (*0x418880)() (); | }