; assembly | /* r2dec pseudo code output */ | /* balxml_configschema.t/none @ 0x417c60 */ | #include | ; (fcn) method.int_BloombergLP::balxml::Decoder_ParseObject::executeImp_BloombergLP::s_baltst.BasicSchemaComplexTypeElementChoice__BloombergLP::s_baltst::BasicSchemaComplexTypeElementChoice__int__BloombergLP::bdlat_TypeCategory::Choice_ () | int64_t method_int_BloombergLP::balxml::Decoder_ParseObject::executeImp_BloombergLP::s_baltst_BasicSchemaComplexTypeElementChoice_BloombergLP::s_baltst::BasicSchemaComplexTypeElementChoice_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::BasicSchemaComplexTypeElementChoice*, int, BloombergLP::bdlat_TypeCategory::Choice) */ 0x00417c60 push rbp | 0x00417c61 push r14 | 0x00417c63 push rbx | 0x00417c64 sub rsp, 0x100 | 0x00417c6b mov r14, rsi | r14 = rsi; 0x00417c6e mov rbx, rdi | rbx = rdi; 0x00417c71 test edx, 0x10000 | | if ((edx & 0x10000) == 0) { 0x00417c77 jne 0x417cc5 | 0x00417c79 mov qword [rsp + 8], 0x49c800 | *((rsp + 8)) = vtable.BloombergLP::balxml::Decoder_ChoiceContext_BloombergLP::s_baltst::BasicSchemaComplexTypeElementChoice_.0; 0x00417c82 mov byte [rsp + 0x10], 0 | *((rsp + 0x10)) = 0; 0x00417c87 mov qword [rsp + 0x18], r14 | *((rsp + 0x18)) = r14; 0x00417c8c mov byte [rsp + 0x20], 0 | *((rsp + 0x20)) = 0; 0x00417c91 mov qword [rsp + 0x28], 0 | *((rsp + 0x28)) = 0; 0x00417c9a movaps xmm0, xmmword [rip + 0x8216f] | xmm0 = .comment; 0x00417ca1 movups xmmword [rsp + 0x40], xmm0 | __asm ("movups xmmword [rsp + 0x40], xmm0"); 0x00417ca6 mov rax, qword [rip + 0x2c8453] | rax = BloombergLP::bslma::Default::s_defaultAllocator; 0x00417cad test rax, rax | | if (rax != 0) { 0x00417cb0 je 0x417da6 | 0x00417cb6 mov qword [rsp + 0x50], rax | *((rsp + 0x50)) = rax; 0x00417cbb lea rcx, [rsp + 0x28] | rcx = rsp + 0x28; 0x00417cc0 jmp 0x417e28 | | } else { 0x00417cc5 mov rax, qword [rbx] | rax = *(rbx); 0x00417cc8 mov rax, qword [rax] | rax = *(rax); 0x00417ccb cmp byte [rax + 8], 0 | | if (*((rax + 8)) != 0) { 0x00417ccf je 0x417ce6 | 0x00417cd1 mov rdi, qword [rbx + 8] | 0x00417cd5 mov esi, dword [rbx + 0x10] | 0x00417cd8 call 0x435540 | rax = BloombergLP::s_baltst::BasicSchemaComplexTypeElementChoice::lookupSelectionInfo(char const*,int) (*((rbx + 8)), *((rbx + 0x10))); 0x00417cdd test rax, rax | | if (rax == 0) { 0x00417ce0 je 0x417dfe | goto label_0; | } | } 0x00417ce6 mov rsi, qword [rbx + 8] | 0x00417cea mov edx, dword [rbx + 0x10] | edx = *((rbx + 0x10)); 0x00417ced mov rdi, r14 | 0x00417cf0 call 0x436430 | eax = BloombergLP::s_baltst::BasicSchemaComplexTypeElementChoice::makeSelection(char const*,int) (r14, *((rbx + 8))); 0x00417cf5 test eax, eax | | if (eax == 0) { 0x00417cf7 je 0x417dbf | goto label_1; | } 0x00417cfd mov rbp, qword [rbx] | rbp = *(rbx); 0x00417d00 mov rsi, qword [rbp + 0x2d0] | 0x00417d07 lea r14, [rsp + 8] | r14 = rsp + 8; 0x00417d0c mov rdi, r14 | 0x00417d0f call 0x40ee30 | BloombergLP::balxml::Decoder::MemOutStream::MemOutStream(BloombergLP::bslma::Allocator*) (r14, *((rbp + 0x2d0))); 0x00417d14 mov dword [rsp + 0xf0], 2 | *((rsp + 0xf0)) = 2; 0x00417d1f mov qword [rsp + 0xf8], rbp | *((rsp + 0xf8)) = rbp; 0x00417d27 mov esi, 0x49aa63 | 0x00417d2c mov edx, 0x1b | 0x00417d31 mov rdi, r14 | 0x00417d34 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); 0x00417d39 mov rbp, rax | 0x00417d3c mov rbx, qword [rbx + 8] | rbx = *((rbx + 8)); 0x00417d40 mov rdi, rbx | 0x00417d43 call 0x404780 | rax = strlen (*((rbx + 8))); 0x00417d48 mov rdi, rbp | 0x00417d4b mov rsi, rbx | 0x00417d4e mov rdx, rax | 0x00417d51 call 0x40db40 | rax = std::_1::basic_ostream>&std::_1::_put_character_sequence>(std::_1::basic_ostream>&,char const*,unsigned long) (rbp, rbx, rax); 0x00417d56 mov esi, 0x49a969 | 0x00417d5b mov edx, 2 | 0x00417d60 mov rdi, rax | 0x00417d63 call 0x40db40 | rax = std::_1::basic_ostream>&std::_1::_put_character_sequence>(std::_1::basic_ostream>&,char const*,unsigned long) (rax, 0x49a969, 2); 0x00417d68 mov rdi, rax | rdi = rax; 0x00417d6b call 0x4049f0 | std::_1::basic_ostream>::flush() (); 0x00417d70 mov rdi, qword [rsp + 0xf8] | 0x00417d78 mov esi, dword [rsp + 0xf0] | 0x00417d7f mov rdx, qword [rsp + 0x38] | 0x00417d84 mov eax, dword [rsp + 0x40] | eax = *((rsp + 0x40)); 0x00417d88 sub eax, edx | eax -= edx; 0x00417d8a movsxd rcx, eax | rcx = (int64_t) eax; 0x00417d8d call 0x421a30 | BloombergLP::balxml::Decoder::setDecoderError(BloombergLP::balxml::ErrorInfo::Severity,std::_1::basic_string_view>) (*((rsp + 0xf8)), *((rsp + 0xf0)), *((rsp + 0x38)), rcx); 0x00417d92 lea rdi, [rsp + 8] | 0x00417d97 call 0x420ff0 | BloombergLP::balxml::Decoder::MemOutStream::~MemOutStream() (rsp + 8); 0x00417d9c mov ebp, 0xffffffff | 0x00417da1 jmp 0x417e6e | goto label_2; | } 0x00417da6 call 0x474360 | rax = BloombergLP::bslma::Default::determineAndReturnDefaultAllocator() (); 0x00417dab cmp qword [rsp + 0x48], 0x17 | 0x00417db1 mov qword [rsp + 0x50], rax | *((rsp + 0x50)) = rax; | if (*((rsp + 0x48)) == 0x17) { 0x00417db6 jne 0x417e23 | 0x00417db8 lea rcx, [rsp + 0x28] | rcx = rsp + 0x28; 0x00417dbd jmp 0x417e28 | goto label_3; | label_1: 0x00417dbf mov eax, dword [r14 + 0x40] | eax = *((r14 + 0x40)); 0x00417dc3 cmp eax, 2 | | if (eax == 2) { 0x00417dc6 je 0x417e7c | goto label_4; | } 0x00417dcc cmp eax, 1 | | if (eax == 1) { 0x00417dcf je 0x417e98 | goto label_5; | } 0x00417dd5 mov ebp, 0xffffffff | 0x00417dda test eax, eax | | if (eax != 0) { 0x00417ddc jne 0x417e6e | goto label_2; | } 0x00417de2 mov edx, dword [rip + 0x8a088] | edx = .comment; 0x00417de8 mov rdi, rbx | rdi = rbx; 0x00417deb mov rsi, r14 | rsi = r14; 0x00417dee add rsp, 0x100 | 0x00417df5 pop rbx | 0x00417df6 pop r14 | 0x00417df8 pop rbp | 0x00417df9 jmp 0x410db0 | void (*0x410db0)() (); | label_0: 0x00417dfe mov rax, qword [rbx] | rax = *(rbx); 0x00417e01 inc dword [rax + 0x410] | *((rax + 0x410))++; 0x00417e07 lea rbp, [rsp + 8] | rbp = rsp + 8; 0x00417e0c mov rdi, rbp | rdi = rbp; 0x00417e0f call 0x421e30 | BloombergLP::balxml::Decoder_UnknownElementContext::Decoder_UnknownElementContext() (); 0x00417e14 mov rsi, qword [rbx] | 0x00417e17 mov rdi, rbp | 0x00417e1a call 0x420960 | eax = BloombergLP::balxml::Decoder_ElementContext::beginParse(BloombergLP::balxml::Decoder*) (rbp, *(rbx)); 0x00417e1f mov ebp, eax | 0x00417e21 jmp 0x417e64 | goto label_6; | } 0x00417e23 mov rcx, qword [rsp + 0x28] | rcx = *((rsp + 0x28)); | } | label_3: 0x00417e28 mov byte [rcx], 0 | *(rcx) = 0; 0x00417e2b mov rsi, qword [rbx] | 0x00417e2e lea rdi, [rsp + 8] | 0x00417e33 call 0x420960 | eax = BloombergLP::balxml::Decoder_ElementContext::beginParse(BloombergLP::balxml::Decoder*) (rsp + 8, *(rbx)); 0x00417e38 mov ebp, eax | 0x00417e3a mov qword [rsp + 8], 0x49c800 | *((rsp + 8)) = vtable.BloombergLP::balxml::Decoder_ChoiceContext_BloombergLP::s_baltst::BasicSchemaComplexTypeElementChoice_.0; 0x00417e43 cmp qword [rsp + 0x48], 0x17 | | if (*((rsp + 0x48)) != 0x17) { 0x00417e49 je 0x417e5b | 0x00417e4b mov rsi, qword [rsp + 0x28] | rsi = *((rsp + 0x28)); 0x00417e50 mov rdi, qword [rsp + 0x50] | rdi = *((rsp + 0x50)); 0x00417e55 mov rax, qword [rdi] | rax = *(rdi); 0x00417e58 call qword [rax + 0x18] | uint64_t (*rax + 0x18)() (); | } 0x00417e5b mov qword [rsp + 0x40], 0xffffffffffffffff | *((rsp + 0x40)) = 0xffffffffffffffff; | label_6: 0x00417e64 lea rdi, [rsp + 8] | rdi = rsp + 8; 0x00417e69 call 0x422260 | BloombergLP::balxml::Decoder_ElementContext::~Decoder_ElementContext() (); | label_2: 0x00417e6e mov eax, ebp | eax = ebp; 0x00417e70 add rsp, 0x100 | 0x00417e77 pop rbx | 0x00417e78 pop r14 | 0x00417e7a pop rbp | 0x00417e7b ret | return rax; | label_4: 0x00417e7c mov rsi, qword [r14] | rsi = *(r14); 0x00417e7f mov edx, dword [rip + 0x8a03b] | edx = .comment; 0x00417e85 mov rdi, rbx | rdi = rbx; 0x00417e88 add rsp, 0x100 | 0x00417e8f pop rbx | 0x00417e90 pop r14 | 0x00417e92 pop rbp | 0x00417e93 jmp 0x41c8a0 | void (*0x41c8a0)() (); | label_5: 0x00417e98 mov rsi, qword [r14] | rsi = *(r14); 0x00417e9b mov edx, dword [rip + 0x89ff7] | edx = .comment; 0x00417ea1 mov rdi, rbx | rdi = rbx; 0x00417ea4 add rsp, 0x100 | 0x00417eab pop rbx | 0x00417eac pop r14 | 0x00417eae pop rbp | 0x00417eaf jmp 0x417fb0 | return void (*0x417fb0)() (); | }