; assembly | /* r2dec pseudo code output */ | /* balxml_configschema.t/none @ 0x411940 */ | #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) */ 0x00411940 push rbp | 0x00411941 push r14 | 0x00411943 push rbx | 0x00411944 sub rsp, 0x100 | 0x0041194b mov r14, rsi | r14 = rsi; 0x0041194e mov rbx, rdi | rbx = rdi; 0x00411951 test edx, 0x10000 | | if ((edx & 0x10000) == 0) { 0x00411957 jne 0x4119a5 | 0x00411959 mov qword [rsp + 8], 0x49b948 | *((rsp + 8)) = vtable.BloombergLP::balxml::Decoder_ChoiceContext_BloombergLP::s_baltst::BasicSchemaSimpleTypeElementChoice_.0; 0x00411962 mov byte [rsp + 0x10], 0 | *((rsp + 0x10)) = 0; 0x00411967 mov qword [rsp + 0x18], r14 | *((rsp + 0x18)) = r14; 0x0041196c mov byte [rsp + 0x20], 0 | *((rsp + 0x20)) = 0; 0x00411971 mov qword [rsp + 0x28], 0 | *((rsp + 0x28)) = 0; 0x0041197a movaps xmm0, xmmword [rip + 0x8848f] | xmm0 = .comment; 0x00411981 movups xmmword [rsp + 0x40], xmm0 | __asm ("movups xmmword [rsp + 0x40], xmm0"); 0x00411986 mov rax, qword [rip + 0x2ce773] | rax = BloombergLP::bslma::Default::s_defaultAllocator; 0x0041198d test rax, rax | | if (rax != 0) { 0x00411990 je 0x411a86 | 0x00411996 mov qword [rsp + 0x50], rax | *((rsp + 0x50)) = rax; 0x0041199b lea rcx, [rsp + 0x28] | rcx = rsp + 0x28; 0x004119a0 jmp 0x411aff | | } else { 0x004119a5 mov rax, qword [rbx] | rax = *(rbx); 0x004119a8 mov rax, qword [rax] | rax = *(rax); 0x004119ab cmp byte [rax + 8], 0 | | if (*((rax + 8)) != 0) { 0x004119af je 0x4119c6 | 0x004119b1 mov rdi, qword [rbx + 8] | 0x004119b5 mov esi, dword [rbx + 0x10] | 0x004119b8 call 0x431f50 | rax = BloombergLP::s_baltst::BasicSchemaSimpleTypeElementChoice::lookupSelectionInfo(char const*,int) (*((rbx + 8)), *((rbx + 0x10))); 0x004119bd test rax, rax | | if (rax == 0) { 0x004119c0 je 0x411ad5 | goto label_0; | } | } 0x004119c6 mov rsi, qword [rbx + 8] | 0x004119ca mov edx, dword [rbx + 0x10] | edx = *((rbx + 0x10)); 0x004119cd mov rdi, r14 | 0x004119d0 call 0x4328f0 | eax = BloombergLP::s_baltst::BasicSchemaSimpleTypeElementChoice::makeSelection(char const*,int) (r14, *((rbx + 8))); 0x004119d5 test eax, eax | | if (eax == 0) { 0x004119d7 je 0x411a9f | goto label_1; | } 0x004119dd mov rbp, qword [rbx] | rbp = *(rbx); 0x004119e0 mov rsi, qword [rbp + 0x2d0] | 0x004119e7 lea r14, [rsp + 8] | r14 = rsp + 8; 0x004119ec mov rdi, r14 | 0x004119ef call 0x40ee30 | BloombergLP::balxml::Decoder::MemOutStream::MemOutStream(BloombergLP::bslma::Allocator*) (r14, *((rbp + 0x2d0))); 0x004119f4 mov dword [rsp + 0xf0], 2 | *((rsp + 0xf0)) = 2; 0x004119ff mov qword [rsp + 0xf8], rbp | *((rsp + 0xf8)) = rbp; 0x00411a07 mov esi, 0x49aa63 | 0x00411a0c mov edx, 0x1b | 0x00411a11 mov rdi, r14 | 0x00411a14 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); 0x00411a19 mov rbp, rax | 0x00411a1c mov rbx, qword [rbx + 8] | rbx = *((rbx + 8)); 0x00411a20 mov rdi, rbx | 0x00411a23 call 0x404780 | rax = strlen (*((rbx + 8))); 0x00411a28 mov rdi, rbp | 0x00411a2b mov rsi, rbx | 0x00411a2e mov rdx, rax | 0x00411a31 call 0x40db40 | rax = std::_1::basic_ostream>&std::_1::_put_character_sequence>(std::_1::basic_ostream>&,char const*,unsigned long) (rbp, rbx, rax); 0x00411a36 mov esi, 0x49a969 | 0x00411a3b mov edx, 2 | 0x00411a40 mov rdi, rax | 0x00411a43 call 0x40db40 | rax = std::_1::basic_ostream>&std::_1::_put_character_sequence>(std::_1::basic_ostream>&,char const*,unsigned long) (rax, 0x49a969, 2); 0x00411a48 mov rdi, rax | rdi = rax; 0x00411a4b call 0x4049f0 | std::_1::basic_ostream>::flush() (); 0x00411a50 mov rdi, qword [rsp + 0xf8] | 0x00411a58 mov esi, dword [rsp + 0xf0] | 0x00411a5f mov rdx, qword [rsp + 0x38] | 0x00411a64 mov eax, dword [rsp + 0x40] | eax = *((rsp + 0x40)); 0x00411a68 sub eax, edx | eax -= edx; 0x00411a6a movsxd rcx, eax | rcx = (int64_t) eax; 0x00411a6d call 0x421a30 | BloombergLP::balxml::Decoder::setDecoderError(BloombergLP::balxml::ErrorInfo::Severity,std::_1::basic_string_view>) (*((rsp + 0xf8)), *((rsp + 0xf0)), *((rsp + 0x38)), rcx); 0x00411a72 lea rdi, [rsp + 8] | 0x00411a77 call 0x420ff0 | BloombergLP::balxml::Decoder::MemOutStream::~MemOutStream() (rsp + 8); 0x00411a7c mov ebp, 0xffffffff | 0x00411a81 jmp 0x411b45 | goto label_2; | } 0x00411a86 call 0x474360 | rax = BloombergLP::bslma::Default::determineAndReturnDefaultAllocator() (); 0x00411a8b cmp qword [rsp + 0x48], 0x17 | 0x00411a91 mov qword [rsp + 0x50], rax | *((rsp + 0x50)) = rax; | if (*((rsp + 0x48)) == 0x17) { 0x00411a96 jne 0x411afa | 0x00411a98 lea rcx, [rsp + 0x28] | rcx = rsp + 0x28; 0x00411a9d jmp 0x411aff | goto label_3; | label_1: 0x00411a9f mov eax, dword [r14 + 0x60] | eax = *((r14 + 0x60)); 0x00411aa3 cmp eax, 1 | | if (eax == 1) { 0x00411aa6 je 0x411b53 | goto label_4; | } 0x00411aac mov ebp, 0xffffffff | 0x00411ab1 test eax, eax | | if (eax != 0) { 0x00411ab3 jne 0x411b45 | goto label_2; | } 0x00411ab9 mov edx, dword [rip + 0x90161] | edx = .comment; 0x00411abf mov rdi, rbx | rdi = rbx; 0x00411ac2 mov rsi, r14 | rsi = r14; 0x00411ac5 add rsp, 0x100 | 0x00411acc pop rbx | 0x00411acd pop r14 | 0x00411acf pop rbp | 0x00411ad0 jmp 0x410db0 | void (*0x410db0)() (); | label_0: 0x00411ad5 mov rax, qword [rbx] | rax = *(rbx); 0x00411ad8 inc dword [rax + 0x410] | *((rax + 0x410))++; 0x00411ade lea rbp, [rsp + 8] | rbp = rsp + 8; 0x00411ae3 mov rdi, rbp | rdi = rbp; 0x00411ae6 call 0x421e30 | BloombergLP::balxml::Decoder_UnknownElementContext::Decoder_UnknownElementContext() (); 0x00411aeb mov rsi, qword [rbx] | 0x00411aee mov rdi, rbp | 0x00411af1 call 0x420960 | eax = BloombergLP::balxml::Decoder_ElementContext::beginParse(BloombergLP::balxml::Decoder*) (rbp, *(rbx)); 0x00411af6 mov ebp, eax | 0x00411af8 jmp 0x411b3b | goto label_5; | } 0x00411afa mov rcx, qword [rsp + 0x28] | rcx = *((rsp + 0x28)); | } | label_3: 0x00411aff mov byte [rcx], 0 | *(rcx) = 0; 0x00411b02 mov rsi, qword [rbx] | 0x00411b05 lea rdi, [rsp + 8] | 0x00411b0a call 0x420960 | eax = BloombergLP::balxml::Decoder_ElementContext::beginParse(BloombergLP::balxml::Decoder*) (rsp + 8, *(rbx)); 0x00411b0f mov ebp, eax | 0x00411b11 mov qword [rsp + 8], 0x49b948 | *((rsp + 8)) = vtable.BloombergLP::balxml::Decoder_ChoiceContext_BloombergLP::s_baltst::BasicSchemaSimpleTypeElementChoice_.0; 0x00411b1a cmp qword [rsp + 0x48], 0x17 | | if (*((rsp + 0x48)) != 0x17) { 0x00411b20 je 0x411b32 | 0x00411b22 mov rsi, qword [rsp + 0x28] | rsi = *((rsp + 0x28)); 0x00411b27 mov rdi, qword [rsp + 0x50] | rdi = *((rsp + 0x50)); 0x00411b2c mov rax, qword [rdi] | rax = *(rdi); 0x00411b2f call qword [rax + 0x18] | uint64_t (*rax + 0x18)() (); | } 0x00411b32 mov qword [rsp + 0x40], 0xffffffffffffffff | *((rsp + 0x40)) = 0xffffffffffffffff; | label_5: 0x00411b3b lea rdi, [rsp + 8] | rdi = rsp + 8; 0x00411b40 call 0x422260 | BloombergLP::balxml::Decoder_ElementContext::~Decoder_ElementContext() (); | label_2: 0x00411b45 mov eax, ebp | eax = ebp; 0x00411b47 add rsp, 0x100 | 0x00411b4e pop rbx | 0x00411b4f pop r14 | 0x00411b51 pop rbp | 0x00411b52 ret | return rax; | label_4: 0x00411b53 mov edx, dword [rip + 0x900ef] | edx = .comment; 0x00411b59 mov rdi, rbx | rdi = rbx; 0x00411b5c mov rsi, r14 | rsi = r14; 0x00411b5f add rsp, 0x100 | 0x00411b66 pop rbx | 0x00411b67 pop r14 | 0x00411b69 pop rbp | 0x00411b6a jmp 0x411c60 | return void (*0x411c60)() (); | }