; assembly | /* r2dec pseudo code output */ | /* balxml_configschema.t/assume @ 0x420200 */ | #include | ; (fcn) method.BloombergLP::balxml::Decoder_ChoiceContext_BloombergLP::s_baltst::BasicSchemaChoice_.parseSubElement_char_const__BloombergLP::balxml::Decoder_ () | uint64_t method_BloombergLP::balxml::Decoder_ChoiceContext_BloombergLP::s_baltst::BasicSchemaChoice_parseSubElement_char_const_BloombergLP::balxml::Decoder_ (int64_t arg3, char * s, int64_t arg1) { | int64_t var_8h; | int64_t var_10h; | int64_t var_18h; | int64_t var_38h; | int64_t var_40h; | int64_t var_f0h; | int64_t var_f8h; | rdx = arg3; | rsi = s; | rdi = arg1; | /* BloombergLP::balxml::Decoder_ChoiceContext::parseSubElement(char const*, BloombergLP::balxml::Decoder*) */ 0x00420200 push rbp | 0x00420201 push r15 | 0x00420203 push r14 | 0x00420205 push r12 | 0x00420207 push rbx | 0x00420208 sub rsp, 0x100 | 0x0042020f mov r14, rdx | r14 = rdx; 0x00420212 mov r15, rsi | r15 = rsi; 0x00420215 mov rbx, rdi | rbx = rdi; 0x00420218 mov rdi, rsi | 0x0042021b call 0x404740 | rax = strlen (rsi); 0x00420220 mov r12, rax | r12 = rax; 0x00420223 mov bpl, byte [rbx + 8] | bpl = *((rbx + 8)); 0x00420227 test bpl, bpl | | if (bpl == 0) { 0x0042022a je 0x4202e4 | goto label_2; | } 0x00420230 cmp byte [rbx + 0x18], 0 | | if (*((rbx + 0x18)) != 0) { 0x00420234 je 0x42026d | 0x00420236 mov rdi, r15 | 0x00420239 call 0x404740 | rax = strlen (r15); 0x0042023e cmp qword [rbx + 0x38], rax | | if (*((rbx + 0x38)) != rax) { 0x00420242 jne 0x42026d | goto label_3; | } 0x00420244 test rax, rax | | if (rax == 0) { 0x00420247 je 0x4202e4 | goto label_2; | } 0x0042024d cmp qword [rbx + 0x40], 0x17 | | if (*((rbx + 0x40)) != 0x17) { 0x00420252 je 0x42025a | 0x00420254 mov rdi, qword [rbx + 0x20] | rdi = *((rbx + 0x20)); 0x00420258 jmp 0x42025e | | } else { 0x0042025a lea rdi, [rbx + 0x20] | rdi = rbx + 0x20; | } 0x0042025e mov rsi, r15 | rsi = r15; 0x00420261 mov rdx, rax | rdx = rax; 0x00420264 call 0x404860 | eax = bcmp (); 0x00420269 test eax, eax | | if (eax == 0) { 0x0042026b je 0x4202e4 | goto label_2; | } | } | label_3: 0x0042026d mov rsi, qword [r14 + 0x2d0] | 0x00420274 lea rbx, [rsp + 8] | rbx = rsp + 8; 0x00420279 mov rdi, rbx | 0x0042027c call 0x40edc0 | BloombergLP::balxml::Decoder::MemOutStream::MemOutStream(BloombergLP::bslma::Allocator*) (rbx, *((r14 + 0x2d0))); 0x00420281 mov dword [rsp + 0xf0], 2 | *((rsp + 0xf0)) = 2; 0x0042028c mov qword [rsp + 0xf8], r14 | *((rsp + 0xf8)) = r14; 0x00420294 mov esi, 0x49a751 | 0x00420299 mov edx, 0x2e | 0x0042029e mov rdi, rbx | 0x004202a1 call 0x40daf0 | rax = std::_1::basic_ostream>&std::_1::_put_character_sequence>(std::_1::basic_ostream>&,char const*,unsigned long) (rbx, "Only one selection is permitted inside choice.", 0x2e); 0x004202a6 mov rdi, rax | rdi = rax; 0x004202a9 call 0x4049b0 | std::_1::basic_ostream>::flush() (); 0x004202ae mov rdi, qword [rsp + 0xf8] | 0x004202b6 mov esi, dword [rsp + 0xf0] | 0x004202bd mov rdx, qword [rsp + 0x38] | 0x004202c2 mov eax, dword [rsp + 0x40] | eax = *((rsp + 0x40)); 0x004202c6 sub eax, edx | eax -= edx; 0x004202c8 movsxd rcx, eax | rcx = (int64_t) eax; 0x004202cb call 0x421940 | BloombergLP::balxml::Decoder::setDecoderError(BloombergLP::balxml::ErrorInfo::Severity,std::_1::basic_string_view>) (*((rsp + 0xf8)), *((rsp + 0xf0)), *((rsp + 0x38)), rcx); | label_0: 0x004202d0 lea rdi, [rsp + 8] | 0x004202d5 call 0x420f00 | BloombergLP::balxml::Decoder::MemOutStream::~MemOutStream() (rsp + 8); | do { 0x004202da mov ebx, 0xffffffff | ebx = 0xffffffff; 0x004202df jmp 0x420473 | goto label_4; | label_2: 0x004202e4 mov byte [rbx + 8], 1 | *((rbx + 8)) = 1; 0x004202e8 mov rax, qword [r14] | rax = *(r14); 0x004202eb cmp byte [rax + 8], 0 | | if (*((rax + 8)) != 0) { 0x004202ef je 0x420305 | 0x004202f1 mov rdi, r15 | 0x004202f4 mov esi, r12d | 0x004202f7 call 0x43a600 | rax = BloombergLP::s_baltst::BasicSchemaChoice::lookupSelectionInfo(char const*,int) (r15, r12d); 0x004202fc test rax, rax | | if (rax == 0) { 0x004202ff je 0x4203fb | goto label_5; | } | } 0x00420305 test bpl, bpl | | if (bpl == 0) { 0x00420308 je 0x420351 | goto label_6; | } 0x0042030a movsxd r12, r12d | r12 = (int64_t) r12d; | label_1: 0x0042030d mov qword [rsp + 8], r14 | *((rsp + 8)) = r14; 0x00420312 mov qword [rsp + 0x10], r15 | *((rsp + 0x10)) = r15; 0x00420317 mov qword [rsp + 0x18], r12 | *((rsp + 0x18)) = r12; 0x0042031c mov rsi, qword [rbx + 0x10] | rsi = *((rbx + 0x10)); 0x00420320 mov eax, dword [rsi + 0xa0] | eax = *((rsi + 0xa0)); 0x00420326 cmp eax, 2 | | if (eax == 2) { 0x00420329 je 0x42044c | goto label_7; | } 0x0042032f cmp eax, 1 | | if (eax == 1) { 0x00420332 je 0x420461 | goto label_8; | } 0x00420338 test eax, eax | 0x0042033a jne 0x4202da | | } while (eax != 0); 0x0042033c mov edx, dword [rip + 0x81b7e] | 0x00420342 lea rdi, [rsp + 8] | 0x00420347 call 0x410d30 | intBloombergLP::balxml::Decoder_ParseObject::executeImp(BloombergLP::s_baltst::BasicSchemaAnnotationElement*,int,BloombergLP::bdlat_TypeCategory::Sequence) (rsp + 8, rsi, *(0x004a1ec0)); 0x0042034c jmp 0x420471 | goto label_9; | label_6: 0x00420351 mov rdi, qword [rbx + 0x10] | 0x00420355 mov rsi, r15 | 0x00420358 mov edx, r12d | 0x0042035b call 0x43b290 | eax = BloombergLP::s_baltst::BasicSchemaChoice::makeSelection(char const*,int) (*((rbx + 0x10)), r15, r12d); 0x00420360 test eax, eax | | if (eax != 0) { 0x00420362 je 0x420485 | 0x00420368 mov rsi, qword [r14 + 0x2d0] | 0x0042036f lea rbx, [rsp + 8] | rbx = rsp + 8; 0x00420374 mov rdi, rbx | 0x00420377 call 0x40edc0 | BloombergLP::balxml::Decoder::MemOutStream::MemOutStream(BloombergLP::bslma::Allocator*) (rbx, *((r14 + 0x2d0))); 0x0042037c mov dword [rsp + 0xf0], 2 | *((rsp + 0xf0)) = 2; 0x00420387 mov qword [rsp + 0xf8], r14 | *((rsp + 0xf8)) = r14; 0x0042038f mov esi, 0x49a6e9 | 0x00420394 mov edx, 0x1b | 0x00420399 mov rdi, rbx | 0x0042039c call 0x40daf0 | rax = std::_1::basic_ostream>&std::_1::_put_character_sequence>(std::_1::basic_ostream>&,char const*,unsigned long) (rbx, "Unable to make selection: \", 0x1b); 0x004203a1 mov rbx, rax | rbx = rax; 0x004203a4 mov rdi, r15 | 0x004203a7 call 0x404740 | rax = strlen (r15); 0x004203ac mov rdi, rbx | 0x004203af mov rsi, r15 | 0x004203b2 mov rdx, rax | 0x004203b5 call 0x40daf0 | rax = std::_1::basic_ostream>&std::_1::_put_character_sequence>(std::_1::basic_ostream>&,char const*,unsigned long) (rbx, r15, rax); 0x004203ba mov esi, 0x49a5ef | 0x004203bf mov edx, 2 | 0x004203c4 mov rdi, rax | 0x004203c7 call 0x40daf0 | rax = std::_1::basic_ostream>&std::_1::_put_character_sequence>(std::_1::basic_ostream>&,char const*,unsigned long) (rax, 0x49a5ef, 2); 0x004203cc mov rdi, rax | rdi = rax; 0x004203cf call 0x4049b0 | std::_1::basic_ostream>::flush() (); 0x004203d4 mov rdi, qword [rsp + 0xf8] | 0x004203dc mov esi, dword [rsp + 0xf0] | 0x004203e3 mov rdx, qword [rsp + 0x38] | 0x004203e8 mov eax, dword [rsp + 0x40] | eax = *((rsp + 0x40)); 0x004203ec sub eax, edx | eax -= edx; 0x004203ee movsxd rcx, eax | rcx = (int64_t) eax; 0x004203f1 call 0x421940 | BloombergLP::balxml::Decoder::setDecoderError(BloombergLP::balxml::ErrorInfo::Severity,std::_1::basic_string_view>) (*((rsp + 0xf8)), *((rsp + 0xf0)), *((rsp + 0x38)), rcx); 0x004203f6 jmp 0x4202d0 | goto label_0; | label_5: 0x004203fb inc dword [r14 + 0x410] | *((r14 + 0x410))++; 0x00420402 mov byte [rbx + 0x18], 1 | *((rbx + 0x18)) = 1; 0x00420406 lea rdi, [rbx + 0x20] | 0x0042040a movsxd rdx, r12d | rdx = (int64_t) r12d; 0x0042040d mov rbp, qword [rbx + 0x38] | rbp = *((rbx + 0x38)); 0x00420411 mov qword [rbx + 0x38], 0 | *((rbx + 0x38)) = 0; 0x00420419 mov ecx, 0x49a26b | 0x0042041e mov rsi, r15 | 0x00420421 call 0x476b20 | bsl::basic_string,bsl::allocator>::privateAppend(char const*,unsigned long,char const*) (rbx + 0x20, r15, rdx, "string<...>::assign(char*...): string too long"); 0x00420426 lea rbx, [rsp + 8] | rbx = rsp + 8; 0x0042042b mov rdi, rbx | rdi = rbx; 0x0042042e call 0x421d50 | BloombergLP::balxml::Decoder_UnknownElementContext::Decoder_UnknownElementContext() (); 0x00420433 mov rdi, rbx | 0x00420436 mov rsi, r14 | 0x00420439 call 0x420870 | eax = BloombergLP::balxml::Decoder_ElementContext::beginParse(BloombergLP::balxml::Decoder*) (rbx, r14); 0x0042043e mov ebx, eax | ebx = eax; 0x00420440 lea rdi, [rsp + 8] | rdi = rsp + 8; 0x00420445 call 0x422180 | BloombergLP::balxml::Decoder_ElementContext::~Decoder_ElementContext() (); 0x0042044a jmp 0x420473 | goto label_4; | label_7: 0x0042044c mov rsi, qword [rsi] | 0x0042044f mov edx, dword [rip + 0x81abb] | 0x00420455 lea rdi, [rsp + 8] | 0x0042045a call 0x417540 | intBloombergLP::balxml::Decoder_ParseObject::executeImp(BloombergLP::s_baltst::BasicSchemaComplexTypeElement*,int,BloombergLP::bdlat_TypeCategory::Sequence) (rsp + 8, *(rsi), *(0x004a1f10)); 0x0042045f jmp 0x420471 | goto label_9; | label_8: 0x00420461 mov edx, dword [rip + 0x81a81] | 0x00420467 lea rdi, [rsp + 8] | 0x0042046c call 0x411230 | eax = intBloombergLP::balxml::Decoder_ParseObject::executeImp(BloombergLP::s_baltst::BasicSchemaSimpleTypeElement*,int,BloombergLP::bdlat_TypeCategory::Sequence) (rsp + 8, rsi, *(0x004a1ee8)); | label_9: 0x00420471 mov ebx, eax | ebx = eax; | label_4: 0x00420473 mov eax, ebx | 0x00420475 add rsp, 0x100 | 0x0042047c pop rbx | 0x0042047d pop r12 | 0x0042047f pop r14 | 0x00420481 pop r15 | 0x00420483 pop rbp | 0x00420484 ret | return rax; | } 0x00420485 mov byte [rbx + 0x18], 1 | *((rbx + 0x18)) = 1; 0x00420489 lea rdi, [rbx + 0x20] | 0x0042048d movsxd r12, r12d | r12 = (int64_t) r12d; 0x00420490 mov rbp, qword [rbx + 0x38] | rbp = *((rbx + 0x38)); 0x00420494 mov qword [rbx + 0x38], 0 | *((rbx + 0x38)) = 0; 0x0042049c mov ecx, 0x49a26b | 0x004204a1 mov rsi, r15 | 0x004204a4 mov rdx, r12 | 0x004204a7 call 0x476b20 | bsl::basic_string,bsl::allocator>::privateAppend(char const*,unsigned long,char const*) (rbx + 0x20, r15, r12, "string<...>::assign(char*...): string too long"); 0x004204ac jmp 0x42030d | goto label_1; | }