; assembly | /* r2dec pseudo code output */ | /* balxml_configschema.t/none @ 0x4122b0 */ | #include | ; (fcn) method.int_BloombergLP::balxml::Decoder_ParseObject::executeImp_BloombergLP::s_baltst.BasicSchemaRestrictionElementChoice__BloombergLP::s_baltst::BasicSchemaRestrictionElementChoice__int__BloombergLP::bdlat_TypeCategory::Choice_ () | int64_t method_int_BloombergLP::balxml::Decoder_ParseObject::executeImp_BloombergLP::s_baltst_BasicSchemaRestrictionElementChoice_BloombergLP::s_baltst::BasicSchemaRestrictionElementChoice_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_50h; | int64_t var_28h; | int64_t var_30h; | rdx = arg3; | rsi = arg2; | rdi = arg1; | /* int BloombergLP::balxml::Decoder_ParseObject::executeImp(BloombergLP::s_baltst::BasicSchemaRestrictionElementChoice*, int, BloombergLP::bdlat_TypeCategory::Choice) */ 0x004122b0 push rbp | 0x004122b1 push r14 | 0x004122b3 push rbx | 0x004122b4 sub rsp, 0x100 | 0x004122bb mov r14, rsi | r14 = rsi; 0x004122be mov rbx, rdi | rbx = rdi; 0x004122c1 test edx, 0x10000 | | if ((edx & 0x10000) == 0) { 0x004122c7 jne 0x412315 | 0x004122c9 mov qword [rsp + 8], 0x49b578 | *((rsp + 8)) = vtable.BloombergLP::balxml::Decoder_ChoiceContext_BloombergLP::s_baltst::BasicSchemaRestrictionElementChoice_.0; 0x004122d2 mov byte [rsp + 0x10], 0 | *((rsp + 0x10)) = 0; 0x004122d7 mov qword [rsp + 0x18], r14 | *((rsp + 0x18)) = r14; 0x004122dc mov byte [rsp + 0x20], 0 | *((rsp + 0x20)) = 0; 0x004122e1 mov qword [rsp + 0x28], 0 | *((rsp + 0x28)) = 0; 0x004122ea movaps xmm0, xmmword [rip + 0x87b1f] | xmm0 = .comment; 0x004122f1 movups xmmword [rsp + 0x40], xmm0 | __asm ("movups xmmword [rsp + 0x40], xmm0"); 0x004122f6 mov rax, qword [rip + 0x2cde03] | rax = BloombergLP::bslma::Default::s_defaultAllocator; 0x004122fd test rax, rax | | if (rax != 0) { 0x00412300 je 0x4123f6 | 0x00412306 mov qword [rsp + 0x50], rax | *((rsp + 0x50)) = rax; 0x0041230b lea rcx, [rsp + 0x28] | rcx = rsp + 0x28; 0x00412310 jmp 0x41246f | | } else { 0x00412315 mov rax, qword [rbx] | rax = *(rbx); 0x00412318 mov rax, qword [rax] | rax = *(rax); 0x0041231b cmp byte [rax + 8], 0 | | if (*((rax + 8)) != 0) { 0x0041231f je 0x412336 | 0x00412321 mov rdi, qword [rbx + 8] | 0x00412325 mov esi, dword [rbx + 0x10] | 0x00412328 call 0x430b70 | rax = BloombergLP::s_baltst::BasicSchemaRestrictionElementChoice::lookupSelectionInfo(char const*,int) (*((rbx + 8)), *((rbx + 0x10))); 0x0041232d test rax, rax | | if (rax == 0) { 0x00412330 je 0x412445 | goto label_0; | } | } 0x00412336 mov rsi, qword [rbx + 8] | 0x0041233a mov edx, dword [rbx + 0x10] | edx = *((rbx + 0x10)); 0x0041233d mov rdi, r14 | 0x00412340 call 0x4314b0 | eax = BloombergLP::s_baltst::BasicSchemaRestrictionElementChoice::makeSelection(char const*,int) (r14, *((rbx + 8))); 0x00412345 test eax, eax | | if (eax == 0) { 0x00412347 je 0x41240f | goto label_1; | } 0x0041234d mov rbp, qword [rbx] | rbp = *(rbx); 0x00412350 mov rsi, qword [rbp + 0x2d0] | 0x00412357 lea r14, [rsp + 8] | r14 = rsp + 8; 0x0041235c mov rdi, r14 | 0x0041235f call 0x40ee30 | BloombergLP::balxml::Decoder::MemOutStream::MemOutStream(BloombergLP::bslma::Allocator*) (r14, *((rbp + 0x2d0))); 0x00412364 mov dword [rsp + 0xf0], 2 | *((rsp + 0xf0)) = 2; 0x0041236f mov qword [rsp + 0xf8], rbp | *((rsp + 0xf8)) = rbp; 0x00412377 mov esi, 0x49aa63 | 0x0041237c mov edx, 0x1b | 0x00412381 mov rdi, r14 | 0x00412384 call 0x40db40 | rax = std::_1::basic_ostream>&std::_1::_put_character_sequence>(std::_1::basic_ostream>&,char const*,unsigned long) (r14, "Unable to make selection: \", 0x1b); 0x00412389 mov rbp, rax | 0x0041238c mov rbx, qword [rbx + 8] | rbx = *((rbx + 8)); 0x00412390 mov rdi, rbx | 0x00412393 call 0x404780 | rax = strlen (*((rbx + 8))); 0x00412398 mov rdi, rbp | 0x0041239b mov rsi, rbx | 0x0041239e mov rdx, rax | 0x004123a1 call 0x40db40 | rax = std::_1::basic_ostream>&std::_1::_put_character_sequence>(std::_1::basic_ostream>&,char const*,unsigned long) (rbp, rbx, rax); 0x004123a6 mov esi, 0x49a969 | 0x004123ab mov edx, 2 | 0x004123b0 mov rdi, rax | 0x004123b3 call 0x40db40 | rax = std::_1::basic_ostream>&std::_1::_put_character_sequence>(std::_1::basic_ostream>&,char const*,unsigned long) (rax, 0x49a969, 2); 0x004123b8 mov rdi, rax | rdi = rax; 0x004123bb call 0x4049f0 | std::_1::basic_ostream>::flush() (); 0x004123c0 mov rdi, qword [rsp + 0xf8] | 0x004123c8 mov esi, dword [rsp + 0xf0] | 0x004123cf mov rdx, qword [rsp + 0x38] | 0x004123d4 mov eax, dword [rsp + 0x40] | eax = *((rsp + 0x40)); 0x004123d8 sub eax, edx | eax -= edx; 0x004123da movsxd rcx, eax | rcx = (int64_t) eax; 0x004123dd call 0x421a30 | BloombergLP::balxml::Decoder::setDecoderError(BloombergLP::balxml::ErrorInfo::Severity,std::_1::basic_string_view>) (*((rsp + 0xf8)), *((rsp + 0xf0)), *((rsp + 0x38)), rcx); 0x004123e2 lea rdi, [rsp + 8] | 0x004123e7 call 0x420ff0 | BloombergLP::balxml::Decoder::MemOutStream::~MemOutStream() (rsp + 8); 0x004123ec mov ebp, 0xffffffff | 0x004123f1 jmp 0x4124b5 | goto label_2; | } 0x004123f6 call 0x474360 | rax = BloombergLP::bslma::Default::determineAndReturnDefaultAllocator() (); 0x004123fb cmp qword [rsp + 0x48], 0x17 | 0x00412401 mov qword [rsp + 0x50], rax | *((rsp + 0x50)) = rax; | if (*((rsp + 0x48)) == 0x17) { 0x00412406 jne 0x41246a | 0x00412408 lea rcx, [rsp + 0x28] | rcx = rsp + 0x28; 0x0041240d jmp 0x41246f | goto label_3; | label_1: 0x0041240f mov eax, dword [r14 + 0x60] | eax = *((r14 + 0x60)); 0x00412413 cmp eax, 1 | | if (eax == 1) { 0x00412416 je 0x4124c3 | goto label_4; | } 0x0041241c mov ebp, 0xffffffff | 0x00412421 test eax, eax | | if (eax != 0) { 0x00412423 jne 0x4124b5 | goto label_2; | } 0x00412429 mov edx, dword [rip + 0x8f701] | edx = .comment; 0x0041242f mov rdi, rbx | rdi = rbx; 0x00412432 mov rsi, r14 | rsi = r14; 0x00412435 add rsp, 0x100 | 0x0041243c pop rbx | 0x0041243d pop r14 | 0x0041243f pop rbp | 0x00412440 jmp 0x410db0 | void (*0x410db0)() (); | label_0: 0x00412445 mov rax, qword [rbx] | rax = *(rbx); 0x00412448 inc dword [rax + 0x410] | *((rax + 0x410))++; 0x0041244e lea rbp, [rsp + 8] | rbp = rsp + 8; 0x00412453 mov rdi, rbp | rdi = rbp; 0x00412456 call 0x421e30 | BloombergLP::balxml::Decoder_UnknownElementContext::Decoder_UnknownElementContext() (); 0x0041245b mov rsi, qword [rbx] | 0x0041245e mov rdi, rbp | 0x00412461 call 0x420960 | eax = BloombergLP::balxml::Decoder_ElementContext::beginParse(BloombergLP::balxml::Decoder*) (rbp, *(rbx)); 0x00412466 mov ebp, eax | 0x00412468 jmp 0x4124ab | goto label_5; | } 0x0041246a mov rcx, qword [rsp + 0x28] | rcx = *((rsp + 0x28)); | } | label_3: 0x0041246f mov byte [rcx], 0 | *(rcx) = 0; 0x00412472 mov rsi, qword [rbx] | 0x00412475 lea rdi, [rsp + 8] | 0x0041247a call 0x420960 | eax = BloombergLP::balxml::Decoder_ElementContext::beginParse(BloombergLP::balxml::Decoder*) (rsp + 8, *(rbx)); 0x0041247f mov ebp, eax | 0x00412481 mov qword [rsp + 8], 0x49b578 | *((rsp + 8)) = vtable.BloombergLP::balxml::Decoder_ChoiceContext_BloombergLP::s_baltst::BasicSchemaRestrictionElementChoice_.0; 0x0041248a cmp qword [rsp + 0x48], 0x17 | | if (*((rsp + 0x48)) != 0x17) { 0x00412490 je 0x4124a2 | 0x00412492 mov rsi, qword [rsp + 0x28] | rsi = *((rsp + 0x28)); 0x00412497 mov rdi, qword [rsp + 0x50] | rdi = *((rsp + 0x50)); 0x0041249c mov rax, qword [rdi] | rax = *(rdi); 0x0041249f call qword [rax + 0x18] | uint64_t (*rax + 0x18)() (); | } 0x004124a2 mov qword [rsp + 0x40], 0xffffffffffffffff | *((rsp + 0x40)) = 0xffffffffffffffff; | label_5: 0x004124ab lea rdi, [rsp + 8] | rdi = rsp + 8; 0x004124b0 call 0x422260 | BloombergLP::balxml::Decoder_ElementContext::~Decoder_ElementContext() (); | label_2: 0x004124b5 mov eax, ebp | eax = ebp; 0x004124b7 add rsp, 0x100 | 0x004124be pop rbx | 0x004124bf pop r14 | 0x004124c1 pop rbp | 0x004124c2 ret | return rax; | label_4: 0x004124c3 mov edx, dword [rip + 0x8f68f] | edx = .comment; 0x004124c9 mov rdi, rbx | rdi = rbx; 0x004124cc mov rsi, r14 | rsi = r14; 0x004124cf add rsp, 0x100 | 0x004124d6 pop rbx | 0x004124d7 pop r14 | 0x004124d9 pop rbp | 0x004124da jmp 0x4125d0 | return void (*0x4125d0)() (); | }