; assembly | /* r2dec pseudo code output */ | /* balxml_configschema.t/none @ 0x4196f0 */ | #include | ; (fcn) method.BloombergLP::balxml::Decoder_ChoiceContext_BloombergLP::s_baltst::BasicSchemaElementChoice_.parseSubElement_char_const__BloombergLP::balxml::Decoder_ () | uint64_t method_BloombergLP::balxml::Decoder_ChoiceContext_BloombergLP::s_baltst::BasicSchemaElementChoice_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*) */ 0x004196f0 push rbp | 0x004196f1 push r15 | 0x004196f3 push r14 | 0x004196f5 push r12 | 0x004196f7 push rbx | 0x004196f8 sub rsp, 0x100 | 0x004196ff mov r14, rdx | r14 = rdx; 0x00419702 mov r15, rsi | r15 = rsi; 0x00419705 mov rbx, rdi | rbx = rdi; 0x00419708 mov rdi, rsi | 0x0041970b call 0x404780 | rax = strlen (rsi); 0x00419710 mov r12, rax | r12 = rax; 0x00419713 mov bpl, byte [rbx + 8] | bpl = *((rbx + 8)); 0x00419717 test bpl, bpl | | if (bpl == 0) { 0x0041971a je 0x4197d4 | goto label_1; | } 0x00419720 cmp byte [rbx + 0x18], 0 | | if (*((rbx + 0x18)) != 0) { 0x00419724 je 0x41975d | 0x00419726 mov rdi, r15 | 0x00419729 call 0x404780 | rax = strlen (r15); 0x0041972e cmp qword [rbx + 0x38], rax | | if (*((rbx + 0x38)) != rax) { 0x00419732 jne 0x41975d | goto label_2; | } 0x00419734 test rax, rax | | if (rax == 0) { 0x00419737 je 0x4197d4 | goto label_1; | } 0x0041973d cmp qword [rbx + 0x40], 0x17 | | if (*((rbx + 0x40)) != 0x17) { 0x00419742 je 0x41974a | 0x00419744 mov rdi, qword [rbx + 0x20] | rdi = *((rbx + 0x20)); 0x00419748 jmp 0x41974e | | } else { 0x0041974a lea rdi, [rbx + 0x20] | rdi = rbx + 0x20; | } 0x0041974e mov rsi, r15 | rsi = r15; 0x00419751 mov rdx, rax | rdx = rax; 0x00419754 call 0x4048a0 | eax = bcmp (); 0x00419759 test eax, eax | | if (eax == 0) { 0x0041975b je 0x4197d4 | goto label_1; | } | } | label_2: 0x0041975d mov rsi, qword [r14 + 0x2d0] | 0x00419764 lea rbx, [rsp + 8] | rbx = rsp + 8; 0x00419769 mov rdi, rbx | 0x0041976c call 0x40ee30 | BloombergLP::balxml::Decoder::MemOutStream::MemOutStream(BloombergLP::bslma::Allocator*) (rbx, *((r14 + 0x2d0))); 0x00419771 mov dword [rsp + 0xf0], 2 | *((rsp + 0xf0)) = 2; 0x0041977c mov qword [rsp + 0xf8], r14 | *((rsp + 0xf8)) = r14; 0x00419784 mov esi, 0x49aacb | 0x00419789 mov edx, 0x2e | 0x0041978e mov rdi, rbx | 0x00419791 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); 0x00419796 mov rdi, rax | rdi = rax; 0x00419799 call 0x4049f0 | std::_1::basic_ostream>::flush() (); 0x0041979e mov rdi, qword [rsp + 0xf8] | 0x004197a6 mov esi, dword [rsp + 0xf0] | 0x004197ad mov rdx, qword [rsp + 0x38] | 0x004197b2 mov eax, dword [rsp + 0x40] | eax = *((rsp + 0x40)); 0x004197b6 sub eax, edx | eax -= edx; 0x004197b8 movsxd rcx, eax | rcx = (int64_t) eax; 0x004197bb call 0x421a30 | BloombergLP::balxml::Decoder::setDecoderError(BloombergLP::balxml::ErrorInfo::Severity,std::_1::basic_string_view>) (*((rsp + 0xf8)), *((rsp + 0xf0)), *((rsp + 0x38)), rcx); | do { 0x004197c0 lea rdi, [rsp + 8] | 0x004197c5 call 0x420ff0 | BloombergLP::balxml::Decoder::MemOutStream::~MemOutStream() (rsp + 8); 0x004197ca mov ebx, 0xffffffff | ebx = 0xffffffff; 0x004197cf jmp 0x41996c | goto label_3; | label_1: 0x004197d4 mov byte [rbx + 8], 1 | *((rbx + 8)) = 1; 0x004197d8 mov rax, qword [r14] | rax = *(r14); 0x004197db cmp byte [rax + 8], 0 | | if (*((rax + 8)) != 0) { 0x004197df je 0x4197f5 | 0x004197e1 mov rdi, r15 | 0x004197e4 mov esi, r12d | 0x004197e7 call 0x438850 | rax = BloombergLP::s_baltst::BasicSchemaElementChoice::lookupSelectionInfo(char const*,int) (r15, r12d); 0x004197ec test rax, rax | | if (rax == 0) { 0x004197ef je 0x4198f4 | goto label_4; | } | } 0x004197f5 test bpl, bpl | | if (bpl != 0) { 0x004197f8 je 0x41984a | 0x004197fa movsxd r12, r12d | r12 = (int64_t) r12d; | label_0: 0x004197fd mov qword [rsp + 8], r14 | *((rsp + 8)) = r14; 0x00419802 mov qword [rsp + 0x10], r15 | *((rsp + 0x10)) = r15; 0x00419807 mov qword [rsp + 0x18], r12 | *((rsp + 0x18)) = r12; 0x0041980c mov rsi, qword [rbx + 0x10] | rsi = *((rbx + 0x10)); 0x00419810 mov eax, dword [rsi + 0xa0] | eax = *((rsi + 0xa0)); 0x00419816 cmp eax, 2 | | if (eax == 2) { 0x00419819 je 0x419945 | goto label_5; | } 0x0041981f cmp eax, 1 | | if (eax == 1) { 0x00419822 je 0x41995a | goto label_6; | } 0x00419828 mov ebx, 0xffffffff | ebx = 0xffffffff; 0x0041982d test eax, eax | | if (eax != 0) { 0x0041982f jne 0x41996c | goto label_3; | } 0x00419835 mov edx, dword [rip + 0x88885] | 0x0041983b lea rdi, [rsp + 8] | 0x00419840 call 0x410db0 | intBloombergLP::balxml::Decoder_ParseObject::executeImp(BloombergLP::s_baltst::BasicSchemaAnnotationElement*,int,BloombergLP::bdlat_TypeCategory::Sequence) (rsp + 8, rsi, *(0x004a20c0)); 0x00419845 jmp 0x41996a | goto label_7; | } 0x0041984a mov rdi, qword [rbx + 0x10] | 0x0041984e mov rsi, r15 | 0x00419851 mov edx, r12d | 0x00419854 call 0x4394e0 | eax = BloombergLP::s_baltst::BasicSchemaElementChoice::makeSelection(char const*,int) (*((rbx + 0x10)), r15, r12d); 0x00419859 test eax, eax | | if (eax == 0) { 0x0041985b je 0x41997e | goto label_8; | } 0x00419861 mov rsi, qword [r14 + 0x2d0] | 0x00419868 lea rbx, [rsp + 8] | rbx = rsp + 8; 0x0041986d mov rdi, rbx | 0x00419870 call 0x40ee30 | BloombergLP::balxml::Decoder::MemOutStream::MemOutStream(BloombergLP::bslma::Allocator*) (rbx, *((r14 + 0x2d0))); 0x00419875 mov dword [rsp + 0xf0], 2 | *((rsp + 0xf0)) = 2; 0x00419880 mov qword [rsp + 0xf8], r14 | *((rsp + 0xf8)) = r14; 0x00419888 mov esi, 0x49aa63 | 0x0041988d mov edx, 0x1b | 0x00419892 mov rdi, rbx | 0x00419895 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); 0x0041989a mov rbx, rax | rbx = rax; 0x0041989d mov rdi, r15 | 0x004198a0 call 0x404780 | rax = strlen (r15); 0x004198a5 mov rdi, rbx | 0x004198a8 mov rsi, r15 | 0x004198ab mov rdx, rax | 0x004198ae call 0x40db40 | rax = std::_1::basic_ostream>&std::_1::_put_character_sequence>(std::_1::basic_ostream>&,char const*,unsigned long) (rbx, r15, rax); 0x004198b3 mov esi, 0x49a969 | 0x004198b8 mov edx, 2 | 0x004198bd mov rdi, rax | 0x004198c0 call 0x40db40 | rax = std::_1::basic_ostream>&std::_1::_put_character_sequence>(std::_1::basic_ostream>&,char const*,unsigned long) (rax, 0x49a969, 2); 0x004198c5 mov rdi, rax | rdi = rax; 0x004198c8 call 0x4049f0 | std::_1::basic_ostream>::flush() (); 0x004198cd mov rdi, qword [rsp + 0xf8] | 0x004198d5 mov esi, dword [rsp + 0xf0] | 0x004198dc mov rdx, qword [rsp + 0x38] | 0x004198e1 mov eax, dword [rsp + 0x40] | eax = *((rsp + 0x40)); 0x004198e5 sub eax, edx | eax -= edx; 0x004198e7 movsxd rcx, eax | rcx = (int64_t) eax; 0x004198ea call 0x421a30 | BloombergLP::balxml::Decoder::setDecoderError(BloombergLP::balxml::ErrorInfo::Severity,std::_1::basic_string_view>) (*((rsp + 0xf8)), *((rsp + 0xf0)), *((rsp + 0x38)), rcx); 0x004198ef jmp 0x4197c0 | | } while (1); | label_4: 0x004198f4 inc dword [r14 + 0x410] | *((r14 + 0x410))++; 0x004198fb mov byte [rbx + 0x18], 1 | *((rbx + 0x18)) = 1; 0x004198ff lea rdi, [rbx + 0x20] | 0x00419903 movsxd rdx, r12d | rdx = (int64_t) r12d; 0x00419906 mov rbp, qword [rbx + 0x38] | rbp = *((rbx + 0x38)); 0x0041990a mov qword [rbx + 0x38], 0 | *((rbx + 0x38)) = 0; 0x00419912 mov ecx, 0x49a5e7 | 0x00419917 mov rsi, r15 | 0x0041991a call 0x476e80 | bsl::basic_string,bsl::allocator>::privateAppend(char const*,unsigned long,char const*) (rbx + 0x20, r15, rdx, "string<...>::assign(char*...): string too long"); 0x0041991f lea rbx, [rsp + 8] | rbx = rsp + 8; 0x00419924 mov rdi, rbx | rdi = rbx; 0x00419927 call 0x421e30 | BloombergLP::balxml::Decoder_UnknownElementContext::Decoder_UnknownElementContext() (); 0x0041992c mov rdi, rbx | 0x0041992f mov rsi, r14 | 0x00419932 call 0x420960 | eax = BloombergLP::balxml::Decoder_ElementContext::beginParse(BloombergLP::balxml::Decoder*) (rbx, r14); 0x00419937 mov ebx, eax | ebx = eax; 0x00419939 lea rdi, [rsp + 8] | rdi = rsp + 8; 0x0041993e call 0x422260 | BloombergLP::balxml::Decoder_ElementContext::~Decoder_ElementContext() (); 0x00419943 jmp 0x41996c | goto label_3; | label_5: 0x00419945 mov rsi, qword [rsi] | 0x00419948 mov edx, dword [rip + 0x887c2] | 0x0041994e lea rdi, [rsp + 8] | 0x00419953 call 0x4175e0 | intBloombergLP::balxml::Decoder_ParseObject::executeImp(BloombergLP::s_baltst::BasicSchemaComplexTypeElement*,int,BloombergLP::bdlat_TypeCategory::Sequence) (rsp + 8, *(rsi), *(0x004a2110)); 0x00419958 jmp 0x41996a | goto label_7; | label_6: 0x0041995a mov edx, dword [rip + 0x88788] | 0x00419960 lea rdi, [rsp + 8] | 0x00419965 call 0x4112b0 | eax = intBloombergLP::balxml::Decoder_ParseObject::executeImp(BloombergLP::s_baltst::BasicSchemaSimpleTypeElement*,int,BloombergLP::bdlat_TypeCategory::Sequence) (rsp + 8, rsi, *(0x004a20e8)); | label_7: 0x0041996a mov ebx, eax | ebx = eax; | label_3: 0x0041996c mov eax, ebx | 0x0041996e add rsp, 0x100 | 0x00419975 pop rbx | 0x00419976 pop r12 | 0x00419978 pop r14 | 0x0041997a pop r15 | 0x0041997c pop rbp | 0x0041997d ret | return rax; | label_8: 0x0041997e mov byte [rbx + 0x18], 1 | *((rbx + 0x18)) = 1; 0x00419982 lea rdi, [rbx + 0x20] | 0x00419986 movsxd r12, r12d | r12 = (int64_t) r12d; 0x00419989 mov rbp, qword [rbx + 0x38] | rbp = *((rbx + 0x38)); 0x0041998d mov qword [rbx + 0x38], 0 | *((rbx + 0x38)) = 0; 0x00419995 mov ecx, 0x49a5e7 | 0x0041999a mov rsi, r15 | 0x0041999d mov rdx, r12 | 0x004199a0 call 0x476e80 | bsl::basic_string,bsl::allocator>::privateAppend(char const*,unsigned long,char const*) (rbx + 0x20, r15, r12, "string<...>::assign(char*...): string too long"); 0x004199a5 jmp 0x4197fd | goto label_0; | }