; assembly | /* r2dec pseudo code output */ | /* balxml_configschema.t/none @ 0x41cf00 */ | #include | ; (fcn) method.int_BloombergLP::balxml::Decoder_ParseObject::executeImp_BloombergLP::s_baltst.BasicSchemaChoiceElementChoice__BloombergLP::s_baltst::BasicSchemaChoiceElementChoice__int__BloombergLP::bdlat_TypeCategory::Choice_ () | int64_t method_int_BloombergLP::balxml::Decoder_ParseObject::executeImp_BloombergLP::s_baltst_BasicSchemaChoiceElementChoice_BloombergLP::s_baltst::BasicSchemaChoiceElementChoice_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::BasicSchemaChoiceElementChoice*, int, BloombergLP::bdlat_TypeCategory::Choice) */ 0x0041cf00 push rbp | 0x0041cf01 push r14 | 0x0041cf03 push rbx | 0x0041cf04 sub rsp, 0x100 | 0x0041cf0b mov r14, rsi | r14 = rsi; 0x0041cf0e mov rbx, rdi | rbx = rdi; 0x0041cf11 test edx, 0x10000 | | if ((edx & 0x10000) == 0) { 0x0041cf17 jne 0x41cf65 | 0x0041cf19 mov qword [rsp + 8], 0x49c450 | *((rsp + 8)) = vtable.BloombergLP::balxml::Decoder_ChoiceContext_BloombergLP::s_baltst::BasicSchemaChoiceElementChoice_.0; 0x0041cf22 mov byte [rsp + 0x10], 0 | *((rsp + 0x10)) = 0; 0x0041cf27 mov qword [rsp + 0x18], r14 | *((rsp + 0x18)) = r14; 0x0041cf2c mov byte [rsp + 0x20], 0 | *((rsp + 0x20)) = 0; 0x0041cf31 mov qword [rsp + 0x28], 0 | *((rsp + 0x28)) = 0; 0x0041cf3a movaps xmm0, xmmword [rip + 0x7cecf] | xmm0 = .comment; 0x0041cf41 movups xmmword [rsp + 0x40], xmm0 | __asm ("movups xmmword [rsp + 0x40], xmm0"); 0x0041cf46 mov rax, qword [rip + 0x2c31b3] | rax = BloombergLP::bslma::Default::s_defaultAllocator; 0x0041cf4d test rax, rax | | if (rax != 0) { 0x0041cf50 je 0x41d046 | 0x0041cf56 mov qword [rsp + 0x50], rax | *((rsp + 0x50)) = rax; 0x0041cf5b lea rcx, [rsp + 0x28] | rcx = rsp + 0x28; 0x0041cf60 jmp 0x41d0bf | | } else { 0x0041cf65 mov rax, qword [rbx] | rax = *(rbx); 0x0041cf68 mov rax, qword [rax] | rax = *(rax); 0x0041cf6b cmp byte [rax + 8], 0 | | if (*((rax + 8)) != 0) { 0x0041cf6f je 0x41cf86 | 0x0041cf71 mov rdi, qword [rbx + 8] | 0x0041cf75 mov esi, dword [rbx + 0x10] | 0x0041cf78 call 0x433bf0 | rax = BloombergLP::s_baltst::BasicSchemaChoiceElementChoice::lookupSelectionInfo(char const*,int) (*((rbx + 8)), *((rbx + 0x10))); 0x0041cf7d test rax, rax | | if (rax == 0) { 0x0041cf80 je 0x41d095 | goto label_0; | } | } 0x0041cf86 mov rsi, qword [rbx + 8] | 0x0041cf8a mov edx, dword [rbx + 0x10] | edx = *((rbx + 0x10)); 0x0041cf8d mov rdi, r14 | 0x0041cf90 call 0x4346c0 | eax = BloombergLP::s_baltst::BasicSchemaChoiceElementChoice::makeSelection(char const*,int) (r14, *((rbx + 8))); 0x0041cf95 test eax, eax | | if (eax == 0) { 0x0041cf97 je 0x41d05f | goto label_1; | } 0x0041cf9d mov rbp, qword [rbx] | rbp = *(rbx); 0x0041cfa0 mov rsi, qword [rbp + 0x2d0] | 0x0041cfa7 lea r14, [rsp + 8] | r14 = rsp + 8; 0x0041cfac mov rdi, r14 | 0x0041cfaf call 0x40ee30 | BloombergLP::balxml::Decoder::MemOutStream::MemOutStream(BloombergLP::bslma::Allocator*) (r14, *((rbp + 0x2d0))); 0x0041cfb4 mov dword [rsp + 0xf0], 2 | *((rsp + 0xf0)) = 2; 0x0041cfbf mov qword [rsp + 0xf8], rbp | *((rsp + 0xf8)) = rbp; 0x0041cfc7 mov esi, 0x49aa63 | 0x0041cfcc mov edx, 0x1b | 0x0041cfd1 mov rdi, r14 | 0x0041cfd4 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); 0x0041cfd9 mov rbp, rax | 0x0041cfdc mov rbx, qword [rbx + 8] | rbx = *((rbx + 8)); 0x0041cfe0 mov rdi, rbx | 0x0041cfe3 call 0x404780 | rax = strlen (*((rbx + 8))); 0x0041cfe8 mov rdi, rbp | 0x0041cfeb mov rsi, rbx | 0x0041cfee mov rdx, rax | 0x0041cff1 call 0x40db40 | rax = std::_1::basic_ostream>&std::_1::_put_character_sequence>(std::_1::basic_ostream>&,char const*,unsigned long) (rbp, rbx, rax); 0x0041cff6 mov esi, 0x49a969 | 0x0041cffb mov edx, 2 | 0x0041d000 mov rdi, rax | 0x0041d003 call 0x40db40 | rax = std::_1::basic_ostream>&std::_1::_put_character_sequence>(std::_1::basic_ostream>&,char const*,unsigned long) (rax, 0x49a969, 2); 0x0041d008 mov rdi, rax | rdi = rax; 0x0041d00b call 0x4049f0 | std::_1::basic_ostream>::flush() (); 0x0041d010 mov rdi, qword [rsp + 0xf8] | 0x0041d018 mov esi, dword [rsp + 0xf0] | 0x0041d01f mov rdx, qword [rsp + 0x38] | 0x0041d024 mov eax, dword [rsp + 0x40] | eax = *((rsp + 0x40)); 0x0041d028 sub eax, edx | eax -= edx; 0x0041d02a movsxd rcx, eax | rcx = (int64_t) eax; 0x0041d02d call 0x421a30 | BloombergLP::balxml::Decoder::setDecoderError(BloombergLP::balxml::ErrorInfo::Severity,std::_1::basic_string_view>) (*((rsp + 0xf8)), *((rsp + 0xf0)), *((rsp + 0x38)), rcx); 0x0041d032 lea rdi, [rsp + 8] | 0x0041d037 call 0x420ff0 | BloombergLP::balxml::Decoder::MemOutStream::~MemOutStream() (rsp + 8); 0x0041d03c mov ebp, 0xffffffff | 0x0041d041 jmp 0x41d105 | goto label_2; | } 0x0041d046 call 0x474360 | rax = BloombergLP::bslma::Default::determineAndReturnDefaultAllocator() (); 0x0041d04b cmp qword [rsp + 0x48], 0x17 | 0x0041d051 mov qword [rsp + 0x50], rax | *((rsp + 0x50)) = rax; | if (*((rsp + 0x48)) == 0x17) { 0x0041d056 jne 0x41d0ba | 0x0041d058 lea rcx, [rsp + 0x28] | rcx = rsp + 0x28; 0x0041d05d jmp 0x41d0bf | goto label_3; | label_1: 0x0041d05f mov eax, dword [r14 + 0x40] | eax = *((r14 + 0x40)); 0x0041d063 cmp eax, 1 | | if (eax == 1) { 0x0041d066 je 0x41d113 | goto label_4; | } 0x0041d06c mov ebp, 0xffffffff | 0x0041d071 test eax, eax | | if (eax != 0) { 0x0041d073 jne 0x41d105 | goto label_2; | } 0x0041d079 mov edx, dword [rip + 0x84d01] | edx = .comment; 0x0041d07f mov rdi, rbx | rdi = rbx; 0x0041d082 mov rsi, r14 | rsi = r14; 0x0041d085 add rsp, 0x100 | 0x0041d08c pop rbx | 0x0041d08d pop r14 | 0x0041d08f pop rbp | 0x0041d090 jmp 0x410db0 | void (*0x410db0)() (); | label_0: 0x0041d095 mov rax, qword [rbx] | rax = *(rbx); 0x0041d098 inc dword [rax + 0x410] | *((rax + 0x410))++; 0x0041d09e lea rbp, [rsp + 8] | rbp = rsp + 8; 0x0041d0a3 mov rdi, rbp | rdi = rbp; 0x0041d0a6 call 0x421e30 | BloombergLP::balxml::Decoder_UnknownElementContext::Decoder_UnknownElementContext() (); 0x0041d0ab mov rsi, qword [rbx] | 0x0041d0ae mov rdi, rbp | 0x0041d0b1 call 0x420960 | eax = BloombergLP::balxml::Decoder_ElementContext::beginParse(BloombergLP::balxml::Decoder*) (rbp, *(rbx)); 0x0041d0b6 mov ebp, eax | 0x0041d0b8 jmp 0x41d0fb | goto label_5; | } 0x0041d0ba mov rcx, qword [rsp + 0x28] | rcx = *((rsp + 0x28)); | } | label_3: 0x0041d0bf mov byte [rcx], 0 | *(rcx) = 0; 0x0041d0c2 mov rsi, qword [rbx] | 0x0041d0c5 lea rdi, [rsp + 8] | 0x0041d0ca call 0x420960 | eax = BloombergLP::balxml::Decoder_ElementContext::beginParse(BloombergLP::balxml::Decoder*) (rsp + 8, *(rbx)); 0x0041d0cf mov ebp, eax | 0x0041d0d1 mov qword [rsp + 8], 0x49c450 | *((rsp + 8)) = vtable.BloombergLP::balxml::Decoder_ChoiceContext_BloombergLP::s_baltst::BasicSchemaChoiceElementChoice_.0; 0x0041d0da cmp qword [rsp + 0x48], 0x17 | | if (*((rsp + 0x48)) != 0x17) { 0x0041d0e0 je 0x41d0f2 | 0x0041d0e2 mov rsi, qword [rsp + 0x28] | rsi = *((rsp + 0x28)); 0x0041d0e7 mov rdi, qword [rsp + 0x50] | rdi = *((rsp + 0x50)); 0x0041d0ec mov rax, qword [rdi] | rax = *(rdi); 0x0041d0ef call qword [rax + 0x18] | uint64_t (*rax + 0x18)() (); | } 0x0041d0f2 mov qword [rsp + 0x40], 0xffffffffffffffff | *((rsp + 0x40)) = 0xffffffffffffffff; | label_5: 0x0041d0fb lea rdi, [rsp + 8] | rdi = rsp + 8; 0x0041d100 call 0x422260 | BloombergLP::balxml::Decoder_ElementContext::~Decoder_ElementContext() (); | label_2: 0x0041d105 mov eax, ebp | eax = ebp; 0x0041d107 add rsp, 0x100 | 0x0041d10e pop rbx | 0x0041d10f pop r14 | 0x0041d111 pop rbp | 0x0041d112 ret | return rax; | label_4: 0x0041d113 mov rsi, qword [r14] | rsi = *(r14); 0x0041d116 mov edx, dword [rip + 0x84c8c] | edx = .comment; 0x0041d11c mov rdi, rbx | rdi = rbx; 0x0041d11f add rsp, 0x100 | 0x0041d126 pop rbx | 0x0041d127 pop r14 | 0x0041d129 pop rbp | 0x0041d12a jmp 0x418930 | return void (*0x418930)() (); | }