; assembly | /* r2dec pseudo code output */ | /* balxml_configschema.t/assume @ 0x4118c0 */ | #include | ; (fcn) method.int_BloombergLP::balxml::Decoder_ParseObject::executeImp_BloombergLP::s_baltst.BasicSchemaSimpleTypeElementChoice__BloombergLP::s_baltst::BasicSchemaSimpleTypeElementChoice__int__BloombergLP::bdlat_TypeCategory::Choice_ () | int64_t method_int_BloombergLP::balxml::Decoder_ParseObject::executeImp_BloombergLP::s_baltst_BasicSchemaSimpleTypeElementChoice_BloombergLP::s_baltst::BasicSchemaSimpleTypeElementChoice_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::BasicSchemaSimpleTypeElementChoice*, int, BloombergLP::bdlat_TypeCategory::Choice) */ 0x004118c0 push r15 | 0x004118c2 push r14 | 0x004118c4 push rbx | 0x004118c5 sub rsp, 0x100 | 0x004118cc mov r14, rsi | r14 = rsi; 0x004118cf mov rbx, rdi | rbx = rdi; 0x004118d2 test edx, 0x10000 | | if ((edx & 0x10000) == 0) { 0x004118d8 jne 0x411926 | 0x004118da mov qword [rsp + 8], 0x49b5c8 | *((rsp + 8)) = vtable.BloombergLP::balxml::Decoder_ChoiceContext_BloombergLP::s_baltst::BasicSchemaSimpleTypeElementChoice_.0; 0x004118e3 mov byte [rsp + 0x10], 0 | *((rsp + 0x10)) = 0; 0x004118e8 mov qword [rsp + 0x18], r14 | *((rsp + 0x18)) = r14; 0x004118ed mov byte [rsp + 0x20], 0 | *((rsp + 0x20)) = 0; 0x004118f2 mov qword [rsp + 0x28], 0 | *((rsp + 0x28)) = 0; 0x004118fb movaps xmm0, xmmword [rip + 0x8818e] | xmm0 = .comment; 0x00411902 movups xmmword [rsp + 0x40], xmm0 | __asm ("movups xmmword [rsp + 0x40], xmm0"); 0x00411907 mov rax, qword [rip + 0x2ce7f2] | rax = BloombergLP::bslma::Default::s_defaultAllocator; 0x0041190e test rax, rax | | if (rax == 0) { 0x00411911 je 0x411a07 | goto label_0; | } 0x00411917 mov qword [rsp + 0x50], rax | *((rsp + 0x50)) = rax; 0x0041191c lea rcx, [rsp + 0x28] | rcx = rsp + 0x28; 0x00411921 jmp 0x411a78 | goto label_1; | } 0x00411926 mov rax, qword [rbx] | rax = *(rbx); 0x00411929 mov rax, qword [rax] | rax = *(rax); 0x0041192c cmp byte [rax + 8], 0 | | if (*((rax + 8)) != 0) { 0x00411930 je 0x411947 | 0x00411932 mov rdi, qword [rbx + 8] | 0x00411936 mov esi, dword [rbx + 0x10] | 0x00411939 call 0x431e70 | rax = BloombergLP::s_baltst::BasicSchemaSimpleTypeElementChoice::lookupSelectionInfo(char const*,int) (*((rbx + 8)), *((rbx + 0x10))); 0x0041193e test rax, rax | | if (rax == 0) { 0x00411941 je 0x411a4e | goto label_2; | } | } 0x00411947 mov rsi, qword [rbx + 8] | 0x0041194b mov edx, dword [rbx + 0x10] | edx = *((rbx + 0x10)); 0x0041194e mov rdi, r14 | 0x00411951 call 0x432810 | eax = BloombergLP::s_baltst::BasicSchemaSimpleTypeElementChoice::makeSelection(char const*,int) (r14, *((rbx + 8))); 0x00411956 test eax, eax | | if (eax == 0) { 0x00411958 je 0x411a20 | goto label_3; | } 0x0041195e mov r15, qword [rbx] | r15 = *(rbx); 0x00411961 mov rsi, qword [r15 + 0x2d0] | 0x00411968 lea r14, [rsp + 8] | r14 = rsp + 8; 0x0041196d mov rdi, r14 | 0x00411970 call 0x40edc0 | BloombergLP::balxml::Decoder::MemOutStream::MemOutStream(BloombergLP::bslma::Allocator*) (r14, *((r15 + 0x2d0))); 0x00411975 mov dword [rsp + 0xf0], 2 | *((rsp + 0xf0)) = 2; 0x00411980 mov qword [rsp + 0xf8], r15 | *((rsp + 0xf8)) = r15; 0x00411988 mov esi, 0x49a6e9 | 0x0041198d mov edx, 0x1b | 0x00411992 mov rdi, r14 | 0x00411995 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); 0x0041199a mov r14, rax | r14 = rax; 0x0041199d mov rbx, qword [rbx + 8] | rbx = *((rbx + 8)); 0x004119a1 mov rdi, rbx | 0x004119a4 call 0x404740 | rax = strlen (*((rbx + 8))); 0x004119a9 mov rdi, r14 | 0x004119ac mov rsi, rbx | 0x004119af mov rdx, rax | 0x004119b2 call 0x40daf0 | rax = std::_1::basic_ostream>&std::_1::_put_character_sequence>(std::_1::basic_ostream>&,char const*,unsigned long) (r14, rbx, rax); 0x004119b7 mov esi, 0x49a5ef | 0x004119bc mov edx, 2 | 0x004119c1 mov rdi, rax | 0x004119c4 call 0x40daf0 | rax = std::_1::basic_ostream>&std::_1::_put_character_sequence>(std::_1::basic_ostream>&,char const*,unsigned long) (rax, 0x49a5ef, 2); 0x004119c9 mov rdi, rax | rdi = rax; 0x004119cc call 0x4049b0 | std::_1::basic_ostream>::flush() (); 0x004119d1 mov rdi, qword [rsp + 0xf8] | 0x004119d9 mov esi, dword [rsp + 0xf0] | 0x004119e0 mov rdx, qword [rsp + 0x38] | 0x004119e5 mov eax, dword [rsp + 0x40] | eax = *((rsp + 0x40)); 0x004119e9 sub eax, edx | eax -= edx; 0x004119eb movsxd rcx, eax | rcx = (int64_t) eax; 0x004119ee call 0x421940 | BloombergLP::balxml::Decoder::setDecoderError(BloombergLP::balxml::ErrorInfo::Severity,std::_1::basic_string_view>) (*((rsp + 0xf8)), *((rsp + 0xf0)), *((rsp + 0x38)), rcx); 0x004119f3 lea rdi, [rsp + 8] | 0x004119f8 call 0x420f00 | BloombergLP::balxml::Decoder::MemOutStream::~MemOutStream() (rsp + 8); | do { 0x004119fd mov ebx, 0xffffffff | ebx = 0xffffffff; 0x00411a02 jmp 0x411abe | goto label_4; | label_0: 0x00411a07 call 0x474010 | rax = BloombergLP::bslma::Default::determineAndReturnDefaultAllocator() (); 0x00411a0c cmp qword [rsp + 0x48], 0x17 | 0x00411a12 mov qword [rsp + 0x50], rax | *((rsp + 0x50)) = rax; | if (*((rsp + 0x48)) != 0x17) { 0x00411a17 jne 0x411a73 | goto label_5; | } 0x00411a19 lea rcx, [rsp + 0x28] | rcx = rsp + 0x28; 0x00411a1e jmp 0x411a78 | goto label_1; | label_3: 0x00411a20 mov eax, dword [r14 + 0x60] | eax = *((r14 + 0x60)); 0x00411a24 cmp eax, 1 | | if (eax == 1) { 0x00411a27 je 0x411acd | goto label_6; | } 0x00411a2d test eax, eax | 0x00411a2f jne 0x4119fd | | } while (eax != 0); 0x00411a31 mov edx, dword [rip + 0x8fe79] | edx = .comment; 0x00411a37 mov rdi, rbx | rdi = rbx; 0x00411a3a mov rsi, r14 | rsi = r14; 0x00411a3d add rsp, 0x100 | 0x00411a44 pop rbx | 0x00411a45 pop r14 | 0x00411a47 pop r15 | 0x00411a49 jmp 0x410d30 | void (*0x410d30)() (); | label_2: 0x00411a4e mov rax, qword [rbx] | rax = *(rbx); 0x00411a51 inc dword [rax + 0x410] | *((rax + 0x410))++; 0x00411a57 lea r14, [rsp + 8] | r14 = rsp + 8; 0x00411a5c mov rdi, r14 | rdi = r14; 0x00411a5f call 0x421d50 | BloombergLP::balxml::Decoder_UnknownElementContext::Decoder_UnknownElementContext() (); 0x00411a64 mov rsi, qword [rbx] | 0x00411a67 mov rdi, r14 | 0x00411a6a call 0x420870 | eax = BloombergLP::balxml::Decoder_ElementContext::beginParse(BloombergLP::balxml::Decoder*) (r14, *(rbx)); 0x00411a6f mov ebx, eax | ebx = eax; 0x00411a71 jmp 0x411ab4 | goto label_7; | label_5: 0x00411a73 mov rcx, qword [rsp + 0x28] | rcx = *((rsp + 0x28)); | label_1: 0x00411a78 mov byte [rcx], 0 | *(rcx) = 0; 0x00411a7b mov rsi, qword [rbx] | 0x00411a7e lea rdi, [rsp + 8] | 0x00411a83 call 0x420870 | eax = BloombergLP::balxml::Decoder_ElementContext::beginParse(BloombergLP::balxml::Decoder*) (rsp + 8, *(rbx)); 0x00411a88 mov ebx, eax | ebx = eax; 0x00411a8a mov qword [rsp + 8], 0x49b5c8 | *((rsp + 8)) = vtable.BloombergLP::balxml::Decoder_ChoiceContext_BloombergLP::s_baltst::BasicSchemaSimpleTypeElementChoice_.0; 0x00411a93 cmp qword [rsp + 0x48], 0x17 | | if (*((rsp + 0x48)) != 0x17) { 0x00411a99 je 0x411aab | 0x00411a9b mov rsi, qword [rsp + 0x28] | rsi = *((rsp + 0x28)); 0x00411aa0 mov rdi, qword [rsp + 0x50] | rdi = *((rsp + 0x50)); 0x00411aa5 mov rax, qword [rdi] | rax = *(rdi); 0x00411aa8 call qword [rax + 0x18] | uint64_t (*rax + 0x18)() (); | } 0x00411aab mov qword [rsp + 0x40], 0xffffffffffffffff | *((rsp + 0x40)) = 0xffffffffffffffff; | label_7: 0x00411ab4 lea rdi, [rsp + 8] | rdi = rsp + 8; 0x00411ab9 call 0x422180 | BloombergLP::balxml::Decoder_ElementContext::~Decoder_ElementContext() (); | label_4: 0x00411abe mov eax, ebx | eax = ebx; 0x00411ac0 add rsp, 0x100 | 0x00411ac7 pop rbx | 0x00411ac8 pop r14 | 0x00411aca pop r15 | 0x00411acc ret | return rax; | label_6: 0x00411acd mov edx, dword [rip + 0x8fe05] | edx = .comment; 0x00411ad3 mov rdi, rbx | rdi = rbx; 0x00411ad6 mov rsi, r14 | rsi = r14; 0x00411ad9 add rsp, 0x100 | 0x00411ae0 pop rbx | 0x00411ae1 pop r14 | 0x00411ae3 pop r15 | 0x00411ae5 jmp 0x411be0 | return void (*0x411be0)() (); | }