; assembly | /* r2dec pseudo code output */ | /* balxml_configschema.t/none @ 0x419080 */ | #include | ; (fcn) method.int_BloombergLP::balxml::Decoder_ParseObject::executeImp_BloombergLP::s_baltst.BasicSchemaElementChoice__BloombergLP::s_baltst::BasicSchemaElementChoice__int__BloombergLP::bdlat_TypeCategory::Choice_ () | int64_t method_int_BloombergLP::balxml::Decoder_ParseObject::executeImp_BloombergLP::s_baltst_BasicSchemaElementChoice_BloombergLP::s_baltst::BasicSchemaElementChoice_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_28h; | int64_t var_30h; | rdx = arg3; | rsi = arg2; | rdi = arg1; | /* int BloombergLP::balxml::Decoder_ParseObject::executeImp(BloombergLP::s_baltst::BasicSchemaElementChoice*, int, BloombergLP::bdlat_TypeCategory::Choice) */ 0x00419080 push rbp | 0x00419081 push r14 | 0x00419083 push rbx | 0x00419084 sub rsp, 0x100 | 0x0041908b mov r14, rsi | r14 = rsi; 0x0041908e mov rbx, rdi | rbx = rdi; 0x00419091 test edx, 0x10000 | | if ((edx & 0x10000) == 0) { 0x00419097 jne 0x4190e5 | 0x00419099 mov qword [rsp + 8], 0x49bd10 | *((rsp + 8)) = vtable.BloombergLP::balxml::Decoder_ChoiceContext_BloombergLP::s_baltst::BasicSchemaElementChoice_.0; 0x004190a2 mov byte [rsp + 0x10], 0 | *((rsp + 0x10)) = 0; 0x004190a7 mov qword [rsp + 0x18], r14 | *((rsp + 0x18)) = r14; 0x004190ac mov byte [rsp + 0x20], 0 | *((rsp + 0x20)) = 0; 0x004190b1 mov qword [rsp + 0x28], 0 | *((rsp + 0x28)) = 0; 0x004190ba movaps xmm0, xmmword [rip + 0x80d4f] | xmm0 = .comment; 0x004190c1 movups xmmword [rsp + 0x40], xmm0 | __asm ("movups xmmword [rsp + 0x40], xmm0"); 0x004190c6 mov rax, qword [rip + 0x2c7033] | rax = BloombergLP::bslma::Default::s_defaultAllocator; 0x004190cd test rax, rax | | if (rax != 0) { 0x004190d0 je 0x4191c6 | 0x004190d6 mov qword [rsp + 0x50], rax | *((rsp + 0x50)) = rax; 0x004190db lea rcx, [rsp + 0x28] | rcx = rsp + 0x28; 0x004190e0 jmp 0x41924b | | } else { 0x004190e5 mov rax, qword [rbx] | rax = *(rbx); 0x004190e8 mov rax, qword [rax] | rax = *(rax); 0x004190eb cmp byte [rax + 8], 0 | | if (*((rax + 8)) != 0) { 0x004190ef je 0x419106 | 0x004190f1 mov rdi, qword [rbx + 8] | 0x004190f5 mov esi, dword [rbx + 0x10] | 0x004190f8 call 0x438850 | rax = BloombergLP::s_baltst::BasicSchemaElementChoice::lookupSelectionInfo(char const*,int) (*((rbx + 8)), *((rbx + 0x10))); 0x004190fd test rax, rax | | if (rax == 0) { 0x00419100 je 0x419221 | goto label_0; | } | } 0x00419106 mov rsi, qword [rbx + 8] | 0x0041910a mov edx, dword [rbx + 0x10] | 0x0041910d mov rdi, r14 | 0x00419110 call 0x4394e0 | eax = BloombergLP::s_baltst::BasicSchemaElementChoice::makeSelection(char const*,int) (r14, *((rbx + 8)), *((rbx + 0x10))); 0x00419115 test eax, eax | | if (eax == 0) { 0x00419117 je 0x4191df | goto label_1; | } 0x0041911d mov rbp, qword [rbx] | rbp = *(rbx); 0x00419120 mov rsi, qword [rbp + 0x2d0] | 0x00419127 lea r14, [rsp + 8] | r14 = rsp + 8; 0x0041912c mov rdi, r14 | 0x0041912f call 0x40ee30 | BloombergLP::balxml::Decoder::MemOutStream::MemOutStream(BloombergLP::bslma::Allocator*) (r14, *((rbp + 0x2d0))); 0x00419134 mov dword [rsp + 0xf0], 2 | *((rsp + 0xf0)) = 2; 0x0041913f mov qword [rsp + 0xf8], rbp | *((rsp + 0xf8)) = rbp; 0x00419147 mov esi, 0x49aa63 | 0x0041914c mov edx, 0x1b | 0x00419151 mov rdi, r14 | 0x00419154 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); 0x00419159 mov rbp, rax | 0x0041915c mov rbx, qword [rbx + 8] | rbx = *((rbx + 8)); 0x00419160 mov rdi, rbx | 0x00419163 call 0x404780 | rax = strlen (*((rbx + 8))); 0x00419168 mov rdi, rbp | 0x0041916b mov rsi, rbx | 0x0041916e mov rdx, rax | 0x00419171 call 0x40db40 | rax = std::_1::basic_ostream>&std::_1::_put_character_sequence>(std::_1::basic_ostream>&,char const*,unsigned long) (rbp, rbx, rax); 0x00419176 mov esi, 0x49a969 | 0x0041917b mov edx, 2 | 0x00419180 mov rdi, rax | 0x00419183 call 0x40db40 | rax = std::_1::basic_ostream>&std::_1::_put_character_sequence>(std::_1::basic_ostream>&,char const*,unsigned long) (rax, 0x49a969, 2); 0x00419188 mov rdi, rax | rdi = rax; 0x0041918b call 0x4049f0 | std::_1::basic_ostream>::flush() (); 0x00419190 mov rdi, qword [rsp + 0xf8] | 0x00419198 mov esi, dword [rsp + 0xf0] | 0x0041919f mov rdx, qword [rsp + 0x38] | 0x004191a4 mov eax, dword [rsp + 0x40] | eax = *((rsp + 0x40)); 0x004191a8 sub eax, edx | eax -= edx; 0x004191aa movsxd rcx, eax | rcx = (int64_t) eax; 0x004191ad call 0x421a30 | BloombergLP::balxml::Decoder::setDecoderError(BloombergLP::balxml::ErrorInfo::Severity,std::_1::basic_string_view>) (*((rsp + 0xf8)), *((rsp + 0xf0)), *((rsp + 0x38)), rcx); 0x004191b2 lea rdi, [rsp + 8] | 0x004191b7 call 0x420ff0 | BloombergLP::balxml::Decoder::MemOutStream::~MemOutStream() (rsp + 8); 0x004191bc mov ebp, 0xffffffff | 0x004191c1 jmp 0x419291 | goto label_2; | } 0x004191c6 call 0x474360 | rax = BloombergLP::bslma::Default::determineAndReturnDefaultAllocator() (); 0x004191cb cmp qword [rsp + 0x48], 0x17 | 0x004191d1 mov qword [rsp + 0x50], rax | *((rsp + 0x50)) = rax; | if (*((rsp + 0x48)) == 0x17) { 0x004191d6 jne 0x419246 | 0x004191d8 lea rcx, [rsp + 0x28] | rcx = rsp + 0x28; 0x004191dd jmp 0x41924b | goto label_3; | label_1: 0x004191df mov eax, dword [r14 + 0xa0] | eax = *((r14 + 0xa0)); 0x004191e6 cmp eax, 2 | | if (eax == 2) { 0x004191e9 je 0x41929f | goto label_4; | } 0x004191ef cmp eax, 1 | | if (eax == 1) { 0x004191f2 je 0x4192bb | goto label_5; | } 0x004191f8 mov ebp, 0xffffffff | 0x004191fd test eax, eax | | if (eax != 0) { 0x004191ff jne 0x419291 | goto label_2; | } 0x00419205 mov edx, dword [rip + 0x88eb5] | edx = .comment; 0x0041920b mov rdi, rbx | rdi = rbx; 0x0041920e mov rsi, r14 | rsi = r14; 0x00419211 add rsp, 0x100 | 0x00419218 pop rbx | 0x00419219 pop r14 | 0x0041921b pop rbp | 0x0041921c jmp 0x410db0 | void (*0x410db0)() (); | label_0: 0x00419221 mov rax, qword [rbx] | rax = *(rbx); 0x00419224 inc dword [rax + 0x410] | *((rax + 0x410))++; 0x0041922a lea rbp, [rsp + 8] | rbp = rsp + 8; 0x0041922f mov rdi, rbp | rdi = rbp; 0x00419232 call 0x421e30 | BloombergLP::balxml::Decoder_UnknownElementContext::Decoder_UnknownElementContext() (); 0x00419237 mov rsi, qword [rbx] | 0x0041923a mov rdi, rbp | 0x0041923d call 0x420960 | eax = BloombergLP::balxml::Decoder_ElementContext::beginParse(BloombergLP::balxml::Decoder*) (rbp, *(rbx)); 0x00419242 mov ebp, eax | 0x00419244 jmp 0x419287 | goto label_6; | } 0x00419246 mov rcx, qword [rsp + 0x28] | rcx = *((rsp + 0x28)); | } | label_3: 0x0041924b mov byte [rcx], 0 | *(rcx) = 0; 0x0041924e mov rsi, qword [rbx] | 0x00419251 lea rdi, [rsp + 8] | 0x00419256 call 0x420960 | eax = BloombergLP::balxml::Decoder_ElementContext::beginParse(BloombergLP::balxml::Decoder*) (rsp + 8, *(rbx)); 0x0041925b mov ebp, eax | 0x0041925d mov qword [rsp + 8], 0x49bd10 | *((rsp + 8)) = vtable.BloombergLP::balxml::Decoder_ChoiceContext_BloombergLP::s_baltst::BasicSchemaElementChoice_.0; 0x00419266 cmp qword [rsp + 0x48], 0x17 | | if (*((rsp + 0x48)) != 0x17) { 0x0041926c je 0x41927e | 0x0041926e mov rsi, qword [rsp + 0x28] | rsi = *((rsp + 0x28)); 0x00419273 mov rdi, qword [rsp + 0x50] | rdi = *((rsp + 0x50)); 0x00419278 mov rax, qword [rdi] | rax = *(rdi); 0x0041927b call qword [rax + 0x18] | uint64_t (*rax + 0x18)() (); | } 0x0041927e mov qword [rsp + 0x40], 0xffffffffffffffff | *((rsp + 0x40)) = 0xffffffffffffffff; | label_6: 0x00419287 lea rdi, [rsp + 8] | rdi = rsp + 8; 0x0041928c call 0x422260 | BloombergLP::balxml::Decoder_ElementContext::~Decoder_ElementContext() (); | label_2: 0x00419291 mov eax, ebp | eax = ebp; 0x00419293 add rsp, 0x100 | 0x0041929a pop rbx | 0x0041929b pop r14 | 0x0041929d pop rbp | 0x0041929e ret | return rax; | label_4: 0x0041929f mov rsi, qword [r14] | rsi = *(r14); 0x004192a2 mov edx, dword [rip + 0x88e68] | edx = .comment; 0x004192a8 mov rdi, rbx | rdi = rbx; 0x004192ab add rsp, 0x100 | 0x004192b2 pop rbx | 0x004192b3 pop r14 | 0x004192b5 pop rbp | 0x004192b6 jmp 0x4175e0 | void (*0x4175e0)() (); | label_5: 0x004192bb mov edx, dword [rip + 0x88e27] | edx = .comment; 0x004192c1 mov rdi, rbx | rdi = rbx; 0x004192c4 mov rsi, r14 | rsi = r14; 0x004192c7 add rsp, 0x100 | 0x004192ce pop rbx | 0x004192cf pop r14 | 0x004192d1 pop rbp | 0x004192d2 jmp 0x4112b0 | return void (*0x4112b0)() (); | }