; assembly | /* r2dec pseudo code output */ | /* balxml_configschema.t/none @ 0x4202e0 */ | #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*) */ 0x004202e0 push rbp | 0x004202e1 push r15 | 0x004202e3 push r14 | 0x004202e5 push r12 | 0x004202e7 push rbx | 0x004202e8 sub rsp, 0x100 | 0x004202ef mov r14, rdx | r14 = rdx; 0x004202f2 mov r15, rsi | r15 = rsi; 0x004202f5 mov rbx, rdi | rbx = rdi; 0x004202f8 mov rdi, rsi | 0x004202fb call 0x404780 | rax = strlen (rsi); 0x00420300 mov r12, rax | r12 = rax; 0x00420303 mov bpl, byte [rbx + 8] | bpl = *((rbx + 8)); 0x00420307 test bpl, bpl | | if (bpl == 0) { 0x0042030a je 0x4203c4 | goto label_1; | } 0x00420310 cmp byte [rbx + 0x18], 0 | | if (*((rbx + 0x18)) != 0) { 0x00420314 je 0x42034d | 0x00420316 mov rdi, r15 | 0x00420319 call 0x404780 | rax = strlen (r15); 0x0042031e cmp qword [rbx + 0x38], rax | | if (*((rbx + 0x38)) != rax) { 0x00420322 jne 0x42034d | goto label_2; | } 0x00420324 test rax, rax | | if (rax == 0) { 0x00420327 je 0x4203c4 | goto label_1; | } 0x0042032d cmp qword [rbx + 0x40], 0x17 | | if (*((rbx + 0x40)) != 0x17) { 0x00420332 je 0x42033a | 0x00420334 mov rdi, qword [rbx + 0x20] | rdi = *((rbx + 0x20)); 0x00420338 jmp 0x42033e | | } else { 0x0042033a lea rdi, [rbx + 0x20] | rdi = rbx + 0x20; | } 0x0042033e mov rsi, r15 | rsi = r15; 0x00420341 mov rdx, rax | rdx = rax; 0x00420344 call 0x4048a0 | eax = bcmp (); 0x00420349 test eax, eax | | if (eax == 0) { 0x0042034b je 0x4203c4 | goto label_1; | } | } | label_2: 0x0042034d mov rsi, qword [r14 + 0x2d0] | 0x00420354 lea rbx, [rsp + 8] | rbx = rsp + 8; 0x00420359 mov rdi, rbx | 0x0042035c call 0x40ee30 | BloombergLP::balxml::Decoder::MemOutStream::MemOutStream(BloombergLP::bslma::Allocator*) (rbx, *((r14 + 0x2d0))); 0x00420361 mov dword [rsp + 0xf0], 2 | *((rsp + 0xf0)) = 2; 0x0042036c mov qword [rsp + 0xf8], r14 | *((rsp + 0xf8)) = r14; 0x00420374 mov esi, 0x49aacb | 0x00420379 mov edx, 0x2e | 0x0042037e mov rdi, rbx | 0x00420381 call 0x40db40 | 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); 0x00420386 mov rdi, rax | rdi = rax; 0x00420389 call 0x4049f0 | std::_1::basic_ostream>::flush() (); 0x0042038e mov rdi, qword [rsp + 0xf8] | 0x00420396 mov esi, dword [rsp + 0xf0] | 0x0042039d mov rdx, qword [rsp + 0x38] | 0x004203a2 mov eax, dword [rsp + 0x40] | eax = *((rsp + 0x40)); 0x004203a6 sub eax, edx | eax -= edx; 0x004203a8 movsxd rcx, eax | rcx = (int64_t) eax; 0x004203ab call 0x421a30 | BloombergLP::balxml::Decoder::setDecoderError(BloombergLP::balxml::ErrorInfo::Severity,std::_1::basic_string_view>) (*((rsp + 0xf8)), *((rsp + 0xf0)), *((rsp + 0x38)), rcx); | do { 0x004203b0 lea rdi, [rsp + 8] | 0x004203b5 call 0x420ff0 | BloombergLP::balxml::Decoder::MemOutStream::~MemOutStream() (rsp + 8); 0x004203ba mov ebx, 0xffffffff | ebx = 0xffffffff; 0x004203bf jmp 0x42055c | goto label_3; | label_1: 0x004203c4 mov byte [rbx + 8], 1 | *((rbx + 8)) = 1; 0x004203c8 mov rax, qword [r14] | rax = *(r14); 0x004203cb cmp byte [rax + 8], 0 | | if (*((rax + 8)) != 0) { 0x004203cf je 0x4203e5 | 0x004203d1 mov rdi, r15 | 0x004203d4 mov esi, r12d | 0x004203d7 call 0x43a6e0 | rax = BloombergLP::s_baltst::BasicSchemaChoice::lookupSelectionInfo(char const*,int) (r15, r12d); 0x004203dc test rax, rax | | if (rax == 0) { 0x004203df je 0x4204e4 | goto label_4; | } | } 0x004203e5 test bpl, bpl | | if (bpl != 0) { 0x004203e8 je 0x42043a | 0x004203ea movsxd r12, r12d | r12 = (int64_t) r12d; | label_0: 0x004203ed mov qword [rsp + 8], r14 | *((rsp + 8)) = r14; 0x004203f2 mov qword [rsp + 0x10], r15 | *((rsp + 0x10)) = r15; 0x004203f7 mov qword [rsp + 0x18], r12 | *((rsp + 0x18)) = r12; 0x004203fc mov rsi, qword [rbx + 0x10] | rsi = *((rbx + 0x10)); 0x00420400 mov eax, dword [rsi + 0xa0] | eax = *((rsi + 0xa0)); 0x00420406 cmp eax, 2 | | if (eax == 2) { 0x00420409 je 0x420535 | goto label_5; | } 0x0042040f cmp eax, 1 | | if (eax == 1) { 0x00420412 je 0x42054a | goto label_6; | } 0x00420418 mov ebx, 0xffffffff | ebx = 0xffffffff; 0x0042041d test eax, eax | | if (eax != 0) { 0x0042041f jne 0x42055c | goto label_3; | } 0x00420425 mov edx, dword [rip + 0x81e05] | 0x0042042b lea rdi, [rsp + 8] | 0x00420430 call 0x410db0 | intBloombergLP::balxml::Decoder_ParseObject::executeImp(BloombergLP::s_baltst::BasicSchemaAnnotationElement*,int,BloombergLP::bdlat_TypeCategory::Sequence) (rsp + 8, rsi, *(0x004a2230)); 0x00420435 jmp 0x42055a | goto label_7; | } 0x0042043a mov rdi, qword [rbx + 0x10] | 0x0042043e mov rsi, r15 | 0x00420441 mov edx, r12d | 0x00420444 call 0x43b370 | eax = BloombergLP::s_baltst::BasicSchemaChoice::makeSelection(char const*,int) (*((rbx + 0x10)), r15, r12d); 0x00420449 test eax, eax | | if (eax == 0) { 0x0042044b je 0x42056e | goto label_8; | } 0x00420451 mov rsi, qword [r14 + 0x2d0] | 0x00420458 lea rbx, [rsp + 8] | rbx = rsp + 8; 0x0042045d mov rdi, rbx | 0x00420460 call 0x40ee30 | BloombergLP::balxml::Decoder::MemOutStream::MemOutStream(BloombergLP::bslma::Allocator*) (rbx, *((r14 + 0x2d0))); 0x00420465 mov dword [rsp + 0xf0], 2 | *((rsp + 0xf0)) = 2; 0x00420470 mov qword [rsp + 0xf8], r14 | *((rsp + 0xf8)) = r14; 0x00420478 mov esi, 0x49aa63 | 0x0042047d mov edx, 0x1b | 0x00420482 mov rdi, rbx | 0x00420485 call 0x40db40 | rax = std::_1::basic_ostream>&std::_1::_put_character_sequence>(std::_1::basic_ostream>&,char const*,unsigned long) (rbx, "Unable to make selection: \", 0x1b); 0x0042048a mov rbx, rax | rbx = rax; 0x0042048d mov rdi, r15 | 0x00420490 call 0x404780 | rax = strlen (r15); 0x00420495 mov rdi, rbx | 0x00420498 mov rsi, r15 | 0x0042049b mov rdx, rax | 0x0042049e call 0x40db40 | rax = std::_1::basic_ostream>&std::_1::_put_character_sequence>(std::_1::basic_ostream>&,char const*,unsigned long) (rbx, r15, rax); 0x004204a3 mov esi, 0x49a969 | 0x004204a8 mov edx, 2 | 0x004204ad mov rdi, rax | 0x004204b0 call 0x40db40 | rax = std::_1::basic_ostream>&std::_1::_put_character_sequence>(std::_1::basic_ostream>&,char const*,unsigned long) (rax, 0x49a969, 2); 0x004204b5 mov rdi, rax | rdi = rax; 0x004204b8 call 0x4049f0 | std::_1::basic_ostream>::flush() (); 0x004204bd mov rdi, qword [rsp + 0xf8] | 0x004204c5 mov esi, dword [rsp + 0xf0] | 0x004204cc mov rdx, qword [rsp + 0x38] | 0x004204d1 mov eax, dword [rsp + 0x40] | eax = *((rsp + 0x40)); 0x004204d5 sub eax, edx | eax -= edx; 0x004204d7 movsxd rcx, eax | rcx = (int64_t) eax; 0x004204da call 0x421a30 | BloombergLP::balxml::Decoder::setDecoderError(BloombergLP::balxml::ErrorInfo::Severity,std::_1::basic_string_view>) (*((rsp + 0xf8)), *((rsp + 0xf0)), *((rsp + 0x38)), rcx); 0x004204df jmp 0x4203b0 | | } while (1); | label_4: 0x004204e4 inc dword [r14 + 0x410] | *((r14 + 0x410))++; 0x004204eb mov byte [rbx + 0x18], 1 | *((rbx + 0x18)) = 1; 0x004204ef lea rdi, [rbx + 0x20] | 0x004204f3 movsxd rdx, r12d | rdx = (int64_t) r12d; 0x004204f6 mov rbp, qword [rbx + 0x38] | rbp = *((rbx + 0x38)); 0x004204fa mov qword [rbx + 0x38], 0 | *((rbx + 0x38)) = 0; 0x00420502 mov ecx, 0x49a5e7 | 0x00420507 mov rsi, r15 | 0x0042050a call 0x476e80 | bsl::basic_string,bsl::allocator>::privateAppend(char const*,unsigned long,char const*) (rbx + 0x20, r15, rdx, "string<...>::assign(char*...): string too long"); 0x0042050f lea rbx, [rsp + 8] | rbx = rsp + 8; 0x00420514 mov rdi, rbx | rdi = rbx; 0x00420517 call 0x421e30 | BloombergLP::balxml::Decoder_UnknownElementContext::Decoder_UnknownElementContext() (); 0x0042051c mov rdi, rbx | 0x0042051f mov rsi, r14 | 0x00420522 call 0x420960 | eax = BloombergLP::balxml::Decoder_ElementContext::beginParse(BloombergLP::balxml::Decoder*) (rbx, r14); 0x00420527 mov ebx, eax | ebx = eax; 0x00420529 lea rdi, [rsp + 8] | rdi = rsp + 8; 0x0042052e call 0x422260 | BloombergLP::balxml::Decoder_ElementContext::~Decoder_ElementContext() (); 0x00420533 jmp 0x42055c | goto label_3; | label_5: 0x00420535 mov rsi, qword [rsi] | 0x00420538 mov edx, dword [rip + 0x81d42] | 0x0042053e lea rdi, [rsp + 8] | 0x00420543 call 0x4175e0 | intBloombergLP::balxml::Decoder_ParseObject::executeImp(BloombergLP::s_baltst::BasicSchemaComplexTypeElement*,int,BloombergLP::bdlat_TypeCategory::Sequence) (rsp + 8, *(rsi), *(0x004a2280)); 0x00420548 jmp 0x42055a | goto label_7; | label_6: 0x0042054a mov edx, dword [rip + 0x81d08] | 0x00420550 lea rdi, [rsp + 8] | 0x00420555 call 0x4112b0 | eax = intBloombergLP::balxml::Decoder_ParseObject::executeImp(BloombergLP::s_baltst::BasicSchemaSimpleTypeElement*,int,BloombergLP::bdlat_TypeCategory::Sequence) (rsp + 8, rsi, *(0x004a2258)); | label_7: 0x0042055a mov ebx, eax | ebx = eax; | label_3: 0x0042055c mov eax, ebx | 0x0042055e add rsp, 0x100 | 0x00420565 pop rbx | 0x00420566 pop r12 | 0x00420568 pop r14 | 0x0042056a pop r15 | 0x0042056c pop rbp | 0x0042056d ret | return rax; | label_8: 0x0042056e mov byte [rbx + 0x18], 1 | *((rbx + 0x18)) = 1; 0x00420572 lea rdi, [rbx + 0x20] | 0x00420576 movsxd r12, r12d | r12 = (int64_t) r12d; 0x00420579 mov rbp, qword [rbx + 0x38] | rbp = *((rbx + 0x38)); 0x0042057d mov qword [rbx + 0x38], 0 | *((rbx + 0x38)) = 0; 0x00420585 mov ecx, 0x49a5e7 | 0x0042058a mov rsi, r15 | 0x0042058d mov rdx, r12 | 0x00420590 call 0x476e80 | bsl::basic_string,bsl::allocator>::privateAppend(char const*,unsigned long,char const*) (rbx + 0x20, r15, r12, "string<...>::assign(char*...): string too long"); 0x00420595 jmp 0x4203ed | goto label_0; | }