; assembly | /* r2dec pseudo code output */ | /* balxml_configschema.t/assume @ 0x418fd0 */ | #include | ; (fcn) method.int_BloombergLP::balxml::Decoder_ParseObject::executeImp_BloombergLP::s_baltst.BasicSchemaElementChoice__BloombergLP::s_baltst::BasicSchemaElementChoice__int__BloombergLP::bdlat_TypeCategory::Choice_ () | int64_t method_int_BloombergLP::balxml::Decoder_ParseObject::executeImp_BloombergLP::s_baltst_BasicSchemaElementChoice_BloombergLP::s_baltst::BasicSchemaElementChoice_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_28h; | int64_t var_30h; | rdx = arg3; | rsi = arg2; | rdi = arg1; | /* int BloombergLP::balxml::Decoder_ParseObject::executeImp(BloombergLP::s_baltst::BasicSchemaElementChoice*, int, BloombergLP::bdlat_TypeCategory::Choice) */ 0x00418fd0 push r15 | 0x00418fd2 push r14 | 0x00418fd4 push rbx | 0x00418fd5 sub rsp, 0x100 | 0x00418fdc mov r14, rsi | r14 = rsi; 0x00418fdf mov rbx, rdi | rbx = rdi; 0x00418fe2 test edx, 0x10000 | | if ((edx & 0x10000) == 0) { 0x00418fe8 jne 0x419036 | 0x00418fea mov qword [rsp + 8], 0x49b990 | *((rsp + 8)) = vtable.BloombergLP::balxml::Decoder_ChoiceContext_BloombergLP::s_baltst::BasicSchemaElementChoice_.0; 0x00418ff3 mov byte [rsp + 0x10], 0 | *((rsp + 0x10)) = 0; 0x00418ff8 mov qword [rsp + 0x18], r14 | *((rsp + 0x18)) = r14; 0x00418ffd mov byte [rsp + 0x20], 0 | *((rsp + 0x20)) = 0; 0x00419002 mov qword [rsp + 0x28], 0 | *((rsp + 0x28)) = 0; 0x0041900b movaps xmm0, xmmword [rip + 0x80a7e] | xmm0 = .comment; 0x00419012 movups xmmword [rsp + 0x40], xmm0 | __asm ("movups xmmword [rsp + 0x40], xmm0"); 0x00419017 mov rax, qword [rip + 0x2c70e2] | rax = BloombergLP::bslma::Default::s_defaultAllocator; 0x0041901e test rax, rax | | if (rax == 0) { 0x00419021 je 0x419117 | goto label_0; | } 0x00419027 mov qword [rsp + 0x50], rax | *((rsp + 0x50)) = rax; 0x0041902c lea rcx, [rsp + 0x28] | rcx = rsp + 0x28; 0x00419031 jmp 0x419194 | goto label_1; | } 0x00419036 mov rax, qword [rbx] | rax = *(rbx); 0x00419039 mov rax, qword [rax] | rax = *(rax); 0x0041903c cmp byte [rax + 8], 0 | | if (*((rax + 8)) != 0) { 0x00419040 je 0x419057 | 0x00419042 mov rdi, qword [rbx + 8] | 0x00419046 mov esi, dword [rbx + 0x10] | 0x00419049 call 0x438770 | rax = BloombergLP::s_baltst::BasicSchemaElementChoice::lookupSelectionInfo(char const*,int) (*((rbx + 8)), *((rbx + 0x10))); 0x0041904e test rax, rax | | if (rax == 0) { 0x00419051 je 0x41916a | goto label_2; | } | } 0x00419057 mov rsi, qword [rbx + 8] | 0x0041905b mov edx, dword [rbx + 0x10] | 0x0041905e mov rdi, r14 | 0x00419061 call 0x439400 | eax = BloombergLP::s_baltst::BasicSchemaElementChoice::makeSelection(char const*,int) (r14, *((rbx + 8)), *((rbx + 0x10))); 0x00419066 test eax, eax | | if (eax == 0) { 0x00419068 je 0x419130 | goto label_3; | } 0x0041906e mov r15, qword [rbx] | r15 = *(rbx); 0x00419071 mov rsi, qword [r15 + 0x2d0] | 0x00419078 lea r14, [rsp + 8] | r14 = rsp + 8; 0x0041907d mov rdi, r14 | 0x00419080 call 0x40edc0 | BloombergLP::balxml::Decoder::MemOutStream::MemOutStream(BloombergLP::bslma::Allocator*) (r14, *((r15 + 0x2d0))); 0x00419085 mov dword [rsp + 0xf0], 2 | *((rsp + 0xf0)) = 2; 0x00419090 mov qword [rsp + 0xf8], r15 | *((rsp + 0xf8)) = r15; 0x00419098 mov esi, 0x49a6e9 | 0x0041909d mov edx, 0x1b | 0x004190a2 mov rdi, r14 | 0x004190a5 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); 0x004190aa mov r14, rax | r14 = rax; 0x004190ad mov rbx, qword [rbx + 8] | rbx = *((rbx + 8)); 0x004190b1 mov rdi, rbx | 0x004190b4 call 0x404740 | rax = strlen (*((rbx + 8))); 0x004190b9 mov rdi, r14 | 0x004190bc mov rsi, rbx | 0x004190bf mov rdx, rax | 0x004190c2 call 0x40daf0 | rax = std::_1::basic_ostream>&std::_1::_put_character_sequence>(std::_1::basic_ostream>&,char const*,unsigned long) (r14, rbx, rax); 0x004190c7 mov esi, 0x49a5ef | 0x004190cc mov edx, 2 | 0x004190d1 mov rdi, rax | 0x004190d4 call 0x40daf0 | rax = std::_1::basic_ostream>&std::_1::_put_character_sequence>(std::_1::basic_ostream>&,char const*,unsigned long) (rax, 0x49a5ef, 2); 0x004190d9 mov rdi, rax | rdi = rax; 0x004190dc call 0x4049b0 | std::_1::basic_ostream>::flush() (); 0x004190e1 mov rdi, qword [rsp + 0xf8] | 0x004190e9 mov esi, dword [rsp + 0xf0] | 0x004190f0 mov rdx, qword [rsp + 0x38] | 0x004190f5 mov eax, dword [rsp + 0x40] | eax = *((rsp + 0x40)); 0x004190f9 sub eax, edx | eax -= edx; 0x004190fb movsxd rcx, eax | rcx = (int64_t) eax; 0x004190fe call 0x421940 | BloombergLP::balxml::Decoder::setDecoderError(BloombergLP::balxml::ErrorInfo::Severity,std::_1::basic_string_view>) (*((rsp + 0xf8)), *((rsp + 0xf0)), *((rsp + 0x38)), rcx); 0x00419103 lea rdi, [rsp + 8] | 0x00419108 call 0x420f00 | BloombergLP::balxml::Decoder::MemOutStream::~MemOutStream() (rsp + 8); | do { 0x0041910d mov ebx, 0xffffffff | ebx = 0xffffffff; 0x00419112 jmp 0x4191da | goto label_4; | label_0: 0x00419117 call 0x474010 | rax = BloombergLP::bslma::Default::determineAndReturnDefaultAllocator() (); 0x0041911c cmp qword [rsp + 0x48], 0x17 | 0x00419122 mov qword [rsp + 0x50], rax | *((rsp + 0x50)) = rax; | if (*((rsp + 0x48)) != 0x17) { 0x00419127 jne 0x41918f | goto label_5; | } 0x00419129 lea rcx, [rsp + 0x28] | rcx = rsp + 0x28; 0x0041912e jmp 0x419194 | goto label_1; | label_3: 0x00419130 mov eax, dword [r14 + 0xa0] | eax = *((r14 + 0xa0)); 0x00419137 cmp eax, 2 | | if (eax == 2) { 0x0041913a je 0x4191e9 | goto label_6; | } 0x00419140 cmp eax, 1 | | if (eax == 1) { 0x00419143 je 0x419206 | goto label_7; | } 0x00419149 test eax, eax | 0x0041914b jne 0x41910d | | } while (eax != 0); 0x0041914d mov edx, dword [rip + 0x88bfd] | edx = .comment; 0x00419153 mov rdi, rbx | rdi = rbx; 0x00419156 mov rsi, r14 | rsi = r14; 0x00419159 add rsp, 0x100 | 0x00419160 pop rbx | 0x00419161 pop r14 | 0x00419163 pop r15 | 0x00419165 jmp 0x410d30 | void (*0x410d30)() (); | label_2: 0x0041916a mov rax, qword [rbx] | rax = *(rbx); 0x0041916d inc dword [rax + 0x410] | *((rax + 0x410))++; 0x00419173 lea r14, [rsp + 8] | r14 = rsp + 8; 0x00419178 mov rdi, r14 | rdi = r14; 0x0041917b call 0x421d50 | BloombergLP::balxml::Decoder_UnknownElementContext::Decoder_UnknownElementContext() (); 0x00419180 mov rsi, qword [rbx] | 0x00419183 mov rdi, r14 | 0x00419186 call 0x420870 | eax = BloombergLP::balxml::Decoder_ElementContext::beginParse(BloombergLP::balxml::Decoder*) (r14, *(rbx)); 0x0041918b mov ebx, eax | ebx = eax; 0x0041918d jmp 0x4191d0 | goto label_8; | label_5: 0x0041918f mov rcx, qword [rsp + 0x28] | rcx = *((rsp + 0x28)); | label_1: 0x00419194 mov byte [rcx], 0 | *(rcx) = 0; 0x00419197 mov rsi, qword [rbx] | 0x0041919a lea rdi, [rsp + 8] | 0x0041919f call 0x420870 | eax = BloombergLP::balxml::Decoder_ElementContext::beginParse(BloombergLP::balxml::Decoder*) (rsp + 8, *(rbx)); 0x004191a4 mov ebx, eax | ebx = eax; 0x004191a6 mov qword [rsp + 8], 0x49b990 | *((rsp + 8)) = vtable.BloombergLP::balxml::Decoder_ChoiceContext_BloombergLP::s_baltst::BasicSchemaElementChoice_.0; 0x004191af cmp qword [rsp + 0x48], 0x17 | | if (*((rsp + 0x48)) != 0x17) { 0x004191b5 je 0x4191c7 | 0x004191b7 mov rsi, qword [rsp + 0x28] | rsi = *((rsp + 0x28)); 0x004191bc mov rdi, qword [rsp + 0x50] | rdi = *((rsp + 0x50)); 0x004191c1 mov rax, qword [rdi] | rax = *(rdi); 0x004191c4 call qword [rax + 0x18] | uint64_t (*rax + 0x18)() (); | } 0x004191c7 mov qword [rsp + 0x40], 0xffffffffffffffff | *((rsp + 0x40)) = 0xffffffffffffffff; | label_8: 0x004191d0 lea rdi, [rsp + 8] | rdi = rsp + 8; 0x004191d5 call 0x422180 | BloombergLP::balxml::Decoder_ElementContext::~Decoder_ElementContext() (); | label_4: 0x004191da mov eax, ebx | eax = ebx; 0x004191dc add rsp, 0x100 | 0x004191e3 pop rbx | 0x004191e4 pop r14 | 0x004191e6 pop r15 | 0x004191e8 ret | return rax; | label_6: 0x004191e9 mov rsi, qword [r14] | rsi = *(r14); 0x004191ec mov edx, dword [rip + 0x88bae] | edx = .comment; 0x004191f2 mov rdi, rbx | rdi = rbx; 0x004191f5 add rsp, 0x100 | 0x004191fc pop rbx | 0x004191fd pop r14 | 0x004191ff pop r15 | 0x00419201 jmp 0x417540 | void (*0x417540)() (); | label_7: 0x00419206 mov edx, dword [rip + 0x88b6c] | edx = .comment; 0x0041920c mov rdi, rbx | rdi = rbx; 0x0041920f mov rsi, r14 | rsi = r14; 0x00419212 add rsp, 0x100 | 0x00419219 pop rbx | 0x0041921a pop r14 | 0x0041921c pop r15 | 0x0041921e jmp 0x411230 | return void (*0x411230)() (); | }