; assembly | /* r2dec pseudo code output */ | /* balxml_configschema.t/assume @ 0x412230 */ | #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) */ 0x00412230 push r15 | 0x00412232 push r14 | 0x00412234 push rbx | 0x00412235 sub rsp, 0x100 | 0x0041223c mov r14, rsi | r14 = rsi; 0x0041223f mov rbx, rdi | rbx = rdi; 0x00412242 test edx, 0x10000 | | if ((edx & 0x10000) == 0) { 0x00412248 jne 0x412296 | 0x0041224a mov qword [rsp + 8], 0x49b1f8 | *((rsp + 8)) = vtable.BloombergLP::balxml::Decoder_ChoiceContext_BloombergLP::s_baltst::BasicSchemaRestrictionElementChoice_.0; 0x00412253 mov byte [rsp + 0x10], 0 | *((rsp + 0x10)) = 0; 0x00412258 mov qword [rsp + 0x18], r14 | *((rsp + 0x18)) = r14; 0x0041225d mov byte [rsp + 0x20], 0 | *((rsp + 0x20)) = 0; 0x00412262 mov qword [rsp + 0x28], 0 | *((rsp + 0x28)) = 0; 0x0041226b movaps xmm0, xmmword [rip + 0x8781e] | xmm0 = .comment; 0x00412272 movups xmmword [rsp + 0x40], xmm0 | __asm ("movups xmmword [rsp + 0x40], xmm0"); 0x00412277 mov rax, qword [rip + 0x2cde82] | rax = BloombergLP::bslma::Default::s_defaultAllocator; 0x0041227e test rax, rax | | if (rax == 0) { 0x00412281 je 0x412377 | goto label_0; | } 0x00412287 mov qword [rsp + 0x50], rax | *((rsp + 0x50)) = rax; 0x0041228c lea rcx, [rsp + 0x28] | rcx = rsp + 0x28; 0x00412291 jmp 0x4123e8 | goto label_1; | } 0x00412296 mov rax, qword [rbx] | rax = *(rbx); 0x00412299 mov rax, qword [rax] | rax = *(rax); 0x0041229c cmp byte [rax + 8], 0 | | if (*((rax + 8)) != 0) { 0x004122a0 je 0x4122b7 | 0x004122a2 mov rdi, qword [rbx + 8] | 0x004122a6 mov esi, dword [rbx + 0x10] | 0x004122a9 call 0x430a80 | rax = BloombergLP::s_baltst::BasicSchemaRestrictionElementChoice::lookupSelectionInfo(char const*,int) (*((rbx + 8)), *((rbx + 0x10))); 0x004122ae test rax, rax | | if (rax == 0) { 0x004122b1 je 0x4123be | goto label_2; | } | } 0x004122b7 mov rsi, qword [rbx + 8] | 0x004122bb mov edx, dword [rbx + 0x10] | edx = *((rbx + 0x10)); 0x004122be mov rdi, r14 | 0x004122c1 call 0x4313c0 | eax = BloombergLP::s_baltst::BasicSchemaRestrictionElementChoice::makeSelection(char const*,int) (r14, *((rbx + 8))); 0x004122c6 test eax, eax | | if (eax == 0) { 0x004122c8 je 0x412390 | goto label_3; | } 0x004122ce mov r15, qword [rbx] | r15 = *(rbx); 0x004122d1 mov rsi, qword [r15 + 0x2d0] | 0x004122d8 lea r14, [rsp + 8] | r14 = rsp + 8; 0x004122dd mov rdi, r14 | 0x004122e0 call 0x40edc0 | BloombergLP::balxml::Decoder::MemOutStream::MemOutStream(BloombergLP::bslma::Allocator*) (r14, *((r15 + 0x2d0))); 0x004122e5 mov dword [rsp + 0xf0], 2 | *((rsp + 0xf0)) = 2; 0x004122f0 mov qword [rsp + 0xf8], r15 | *((rsp + 0xf8)) = r15; 0x004122f8 mov esi, 0x49a6e9 | 0x004122fd mov edx, 0x1b | 0x00412302 mov rdi, r14 | 0x00412305 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); 0x0041230a mov r14, rax | r14 = rax; 0x0041230d mov rbx, qword [rbx + 8] | rbx = *((rbx + 8)); 0x00412311 mov rdi, rbx | 0x00412314 call 0x404740 | rax = strlen (*((rbx + 8))); 0x00412319 mov rdi, r14 | 0x0041231c mov rsi, rbx | 0x0041231f mov rdx, rax | 0x00412322 call 0x40daf0 | rax = std::_1::basic_ostream>&std::_1::_put_character_sequence>(std::_1::basic_ostream>&,char const*,unsigned long) (r14, rbx, rax); 0x00412327 mov esi, 0x49a5ef | 0x0041232c mov edx, 2 | 0x00412331 mov rdi, rax | 0x00412334 call 0x40daf0 | rax = std::_1::basic_ostream>&std::_1::_put_character_sequence>(std::_1::basic_ostream>&,char const*,unsigned long) (rax, 0x49a5ef, 2); 0x00412339 mov rdi, rax | rdi = rax; 0x0041233c call 0x4049b0 | std::_1::basic_ostream>::flush() (); 0x00412341 mov rdi, qword [rsp + 0xf8] | 0x00412349 mov esi, dword [rsp + 0xf0] | 0x00412350 mov rdx, qword [rsp + 0x38] | 0x00412355 mov eax, dword [rsp + 0x40] | eax = *((rsp + 0x40)); 0x00412359 sub eax, edx | eax -= edx; 0x0041235b movsxd rcx, eax | rcx = (int64_t) eax; 0x0041235e call 0x421940 | BloombergLP::balxml::Decoder::setDecoderError(BloombergLP::balxml::ErrorInfo::Severity,std::_1::basic_string_view>) (*((rsp + 0xf8)), *((rsp + 0xf0)), *((rsp + 0x38)), rcx); 0x00412363 lea rdi, [rsp + 8] | 0x00412368 call 0x420f00 | BloombergLP::balxml::Decoder::MemOutStream::~MemOutStream() (rsp + 8); | do { 0x0041236d mov ebx, 0xffffffff | ebx = 0xffffffff; 0x00412372 jmp 0x41242e | goto label_4; | label_0: 0x00412377 call 0x474010 | rax = BloombergLP::bslma::Default::determineAndReturnDefaultAllocator() (); 0x0041237c cmp qword [rsp + 0x48], 0x17 | 0x00412382 mov qword [rsp + 0x50], rax | *((rsp + 0x50)) = rax; | if (*((rsp + 0x48)) != 0x17) { 0x00412387 jne 0x4123e3 | goto label_5; | } 0x00412389 lea rcx, [rsp + 0x28] | rcx = rsp + 0x28; 0x0041238e jmp 0x4123e8 | goto label_1; | label_3: 0x00412390 mov eax, dword [r14 + 0x60] | eax = *((r14 + 0x60)); 0x00412394 cmp eax, 1 | | if (eax == 1) { 0x00412397 je 0x41243d | goto label_6; | } 0x0041239d test eax, eax | 0x0041239f jne 0x41236d | | } while (eax != 0); 0x004123a1 mov edx, dword [rip + 0x8f419] | edx = .comment; 0x004123a7 mov rdi, rbx | rdi = rbx; 0x004123aa mov rsi, r14 | rsi = r14; 0x004123ad add rsp, 0x100 | 0x004123b4 pop rbx | 0x004123b5 pop r14 | 0x004123b7 pop r15 | 0x004123b9 jmp 0x410d30 | void (*0x410d30)() (); | label_2: 0x004123be mov rax, qword [rbx] | rax = *(rbx); 0x004123c1 inc dword [rax + 0x410] | *((rax + 0x410))++; 0x004123c7 lea r14, [rsp + 8] | r14 = rsp + 8; 0x004123cc mov rdi, r14 | rdi = r14; 0x004123cf call 0x421d50 | BloombergLP::balxml::Decoder_UnknownElementContext::Decoder_UnknownElementContext() (); 0x004123d4 mov rsi, qword [rbx] | 0x004123d7 mov rdi, r14 | 0x004123da call 0x420870 | eax = BloombergLP::balxml::Decoder_ElementContext::beginParse(BloombergLP::balxml::Decoder*) (r14, *(rbx)); 0x004123df mov ebx, eax | ebx = eax; 0x004123e1 jmp 0x412424 | goto label_7; | label_5: 0x004123e3 mov rcx, qword [rsp + 0x28] | rcx = *((rsp + 0x28)); | label_1: 0x004123e8 mov byte [rcx], 0 | *(rcx) = 0; 0x004123eb mov rsi, qword [rbx] | 0x004123ee lea rdi, [rsp + 8] | 0x004123f3 call 0x420870 | eax = BloombergLP::balxml::Decoder_ElementContext::beginParse(BloombergLP::balxml::Decoder*) (rsp + 8, *(rbx)); 0x004123f8 mov ebx, eax | ebx = eax; 0x004123fa mov qword [rsp + 8], 0x49b1f8 | *((rsp + 8)) = vtable.BloombergLP::balxml::Decoder_ChoiceContext_BloombergLP::s_baltst::BasicSchemaRestrictionElementChoice_.0; 0x00412403 cmp qword [rsp + 0x48], 0x17 | | if (*((rsp + 0x48)) != 0x17) { 0x00412409 je 0x41241b | 0x0041240b mov rsi, qword [rsp + 0x28] | rsi = *((rsp + 0x28)); 0x00412410 mov rdi, qword [rsp + 0x50] | rdi = *((rsp + 0x50)); 0x00412415 mov rax, qword [rdi] | rax = *(rdi); 0x00412418 call qword [rax + 0x18] | uint64_t (*rax + 0x18)() (); | } 0x0041241b mov qword [rsp + 0x40], 0xffffffffffffffff | *((rsp + 0x40)) = 0xffffffffffffffff; | label_7: 0x00412424 lea rdi, [rsp + 8] | rdi = rsp + 8; 0x00412429 call 0x422180 | BloombergLP::balxml::Decoder_ElementContext::~Decoder_ElementContext() (); | label_4: 0x0041242e mov eax, ebx | eax = ebx; 0x00412430 add rsp, 0x100 | 0x00412437 pop rbx | 0x00412438 pop r14 | 0x0041243a pop r15 | 0x0041243c ret | return rax; | label_6: 0x0041243d mov edx, dword [rip + 0x8f3a5] | edx = .comment; 0x00412443 mov rdi, rbx | rdi = rbx; 0x00412446 mov rsi, r14 | rsi = r14; 0x00412449 add rsp, 0x100 | 0x00412450 pop rbx | 0x00412451 pop r14 | 0x00412453 pop r15 | 0x00412455 jmp 0x412550 | return void (*0x412550)() (); | }