; assembly | /* r2dec pseudo code output */ | /* balcl_commandline.t/none @ 0x46eab0 */ | #include | ; (fcn) sym.BloombergLP::balcl::_anonymous_namespace_::u::ArrayConstraint_bsl::basic_string_char__std::__1::char_traits_char___bsl::allocator_char_____bsl::function_bool__bsl::basic_string_char__std::__1::char_traits_char___bsl::allocator_char____const__std::__1::basic_ostream_char__std::__1::char_traits_char_______14_::parse_BloombergLP::balcl::OptionValue__std::__1::basic_ostream_char__std::__1::char_traits_char_____bsl::basic_string_char__std::__1::char_traits_char___bsl::allocator_char____const__const () | uint64_t BloombergLP::balcl::_anonymous_namespace_::u::ArrayConstraint_bsl::basic_string_char_std::_1::char_traits_char_bsl::allocator_char_bsl::function_bool_bsl::basic_string_char_std::_1::char_traits_char_bsl::allocator_char_const_std::_1::basic_ostream_char_std::_1::char_traits_char_14_::parse_BloombergLP::balcl::OptionValue_std::_1::basic_ostream_char_std::_1::char_traits_char_bsl::basic_string_char_std::_1::char_traits_char_bsl::allocator_char_const_const (int64_t arg4, int64_t arg3, int64_t arg2, int64_t arg1) { | int64_t var_7h; | int64_t var_8h; | int64_t var_20h; | uint32_t var_28h; | int64_t var_30h; | rcx = arg4; | rdx = arg3; | rsi = arg2; | rdi = arg1; | /* BloombergLP::balcl::(anonymous namespace)::u::ArrayConstraint, bsl::allocator >, bsl::function, bsl::allocator > const*, std::__1::basic_ostream >&)>, 14>::parse(BloombergLP::balcl::OptionValue*, std::__1::basic_ostream >&, bsl::basic_string, bsl::allocator > const&) const */ 0x0046eab0 push rbp | 0x0046eab1 push r15 | 0x0046eab3 push r14 | 0x0046eab5 push r13 | 0x0046eab7 push r12 | 0x0046eab9 push rbx | 0x0046eaba sub rsp, 0x38 | 0x0046eabe mov r13, rcx | r13 = rcx; 0x0046eac1 mov r15, rdx | r15 = rdx; 0x0046eac4 mov r14, rsi | r14 = rsi; 0x0046eac7 mov r12, rdi | r12 = rdi; 0x0046eaca mov rdi, rsi | 0x0046eacd call 0x465850 | eax = BloombergLP::balcl::OptionValue::type()const (rsi); 0x0046ead2 lea ecx, [rax - 8] | ecx = rax - 8; 0x0046ead5 xor ebp, ebp | ebp = 0; 0x0046ead7 cmp eax, 0xa | | if (eax >= 0xa) { 0x0046eada cmovge ebp, ecx | | } 0x0046eadd mov qword [rsp + 8], 0 | *((rsp + 8)) = 0; 0x0046eae6 movaps xmm0, xmmword [rip + 0x35923] | xmm0 = .comment; 0x0046eaed movups xmmword [rsp + 0x20], xmm0 | __asm ("movups xmmword [rsp + 0x20], xmm0"); 0x0046eaf2 mov rax, qword [rip + 0x29712f] | rax = BloombergLP::bslma::Default::s_defaultAllocator; 0x0046eaf9 test rax, rax | | if (rax != 0) { 0x0046eafc je 0x46eb0a | 0x0046eafe lea rcx, [rsp + 8] | rcx = rsp + 8; 0x0046eb03 mov qword [rsp + 0x30], rax | *((rsp + 0x30)) = rax; 0x0046eb08 jmp 0x46eb28 | | } else { 0x0046eb0a call 0x47ce20 | rax = BloombergLP::bslma::Default::determineAndReturnDefaultAllocator() (); 0x0046eb0f cmp qword [rsp + 0x28], 0x17 | 0x0046eb15 mov qword [rsp + 0x30], rax | *((rsp + 0x30)) = rax; | if (*((rsp + 0x28)) != 0x17) { 0x0046eb1a je 0x46eb23 | 0x0046eb1c mov rcx, qword [rsp + 8] | rcx = *((rsp + 8)); 0x0046eb21 jmp 0x46eb28 | | } else { 0x0046eb23 lea rcx, [rsp + 8] | rcx = rsp + 8; | } | } 0x0046eb28 mov byte [rcx], 0 | *(rcx) = 0; 0x0046eb2b cmp qword [r13 + 0x20], 0x17 | 0x0046eb30 mov rsi, r13 | rsi = r13; | if (*((r13 + 0x20)) != 0x17) { 0x0046eb33 je 0x46eb39 | 0x0046eb35 mov rsi, qword [r13] | | } 0x0046eb39 lea rdi, [rsp + 8] | 0x0046eb3e mov edx, ebp | 0x0046eb40 call 0x46ff90 | al = BloombergLP::balcl::(anonymousnamespace)::u::parseValue(void*,char const*,BloombergLP::balcl::OptionType::Enum) (rsp + 8, *(r13), ebp, rcx, r8); 0x0046eb45 test al, al | | if (al != 0) { 0x0046eb47 je 0x46eb94 | 0x0046eb49 mov rax, qword [r12 + 0x50] | rax = *((r12 + 0x50)); 0x0046eb4e test rax, rax | | if (rax != 0) { 0x0046eb51 je 0x46eb6c | 0x0046eb53 add r12, 0x10 | r12 += 0x10; 0x0046eb57 lea rsi, [rsp + 8] | rsi = rsp + 8; 0x0046eb5c mov rdi, r12 | rdi = r12; 0x0046eb5f mov rdx, r15 | rdx = r15; 0x0046eb62 call rax | al = void (*rax)() (); 0x0046eb64 test al, al | | if (al == 0) { 0x0046eb66 je 0x46ec10 | goto label_1; | } | } 0x0046eb6c mov eax, dword [r14 + 0x40] | eax = *((r14 + 0x40)); 0x0046eb70 dec eax | eax--; 0x0046eb72 cmp eax, 0x13 | | if (eax > 0x13) { 0x0046eb75 ja 0x46ed31 | goto label_2; | } | /* switch table (20 cases) at 0x4b0750 */ 0x0046eb7b jmp qword [rax*8 + 0x4b0750] | 0x0046eb82 lea rax, [r14 + 0x20] | rax = r14 + 0x20; 0x0046eb86 cmp byte [rax], 0 | | if (*(rax) != 0) { 0x0046eb89 jne 0x46ecf9 | goto label_3; | } 0x0046eb8f jmp 0x46ec51 | | } else { 0x0046eb94 add ebp, 0xfffffffe | ebp += 0xfffffffe; 0x0046eb97 mov ebx, 0x4b4147 | ebx = "An unknown type"; 0x0046eb9c cmp ebp, 7 | | if (ebp <= 7) { 0x0046eb9f ja 0x46ebac | 0x0046eba1 movsxd rax, ebp | rax = (int64_t) ebp; 0x0046eba4 mov rbx, qword [rax*8 + 0x4b4028] | rbx = *((rax*8 + 0x4b4028)); | } 0x0046ebac mov rdi, rbx | 0x0046ebaf call 0x4046c0 | rax = strlen (*((rax*8 + 0x4b4028))); 0x0046ebb4 mov rdi, r15 | 0x0046ebb7 mov rsi, rbx | 0x0046ebba mov rdx, rax | 0x0046ebbd call 0x455480 | rax = std::_1::basic_ostream>&std::_1::_put_character_sequence>(std::_1::basic_ostream>&,char const*,unsigned long) (r15, rbx, rax); 0x0046ebc2 mov esi, 0x4b40bd | 0x0046ebc7 mov edx, 0x21 | 0x0046ebcc mov rdi, rax | 0x0046ebcf call 0x455480 | rax = std::_1::basic_ostream>&std::_1::_put_character_sequence>(std::_1::basic_ostream>&,char const*,unsigned long) (rax, " value was expected, instead of \", 0x21); 0x0046ebd4 mov rdi, rax | 0x0046ebd7 mov rsi, r13 | 0x0046ebda call 0x44f6f0 | rax = std::_1::basic_ostream>&bsl::operator << ,bsl::allocator>(std::_1::basic_ostream>&,bsl::basic_string,bsl::allocator>const&) (rax, r13); 0x0046ebdf mov esi, 0x4b004d | 0x0046ebe4 mov edx, 1 | 0x0046ebe9 mov rdi, rax | 0x0046ebec call 0x455480 | rax = std::_1::basic_ostream>&std::_1::_put_character_sequence>(std::_1::basic_ostream>&,char const*,unsigned long) (rax, 0x4b004d, 1); 0x0046ebf1 mov byte [rsp + 7], 0xa | *((rsp + 7)) = 0xa; 0x0046ebf6 lea rsi, [rsp + 7] | 0x0046ebfb mov edx, 1 | 0x0046ec00 mov rdi, rax | 0x0046ec03 call 0x455480 | rax = std::_1::basic_ostream>&std::_1::_put_character_sequence>(std::_1::basic_ostream>&,char const*,unsigned long) (rax, rsp + 7, 1); 0x0046ec08 mov rdi, rax | rdi = rax; 0x0046ec0b call 0x404980 | std::_1::basic_ostream>::flush() (); | label_1: 0x0046ec10 xor ebx, ebx | ebx = 0; 0x0046ec12 jmp 0x46ed08 | goto label_4; 0x0046ec17 lea rax, [r14 + 8] | rax = r14 + 8; 0x0046ec1b cmp byte [rax], 0 | | if (*(rax) != 0) { 0x0046ec1e jne 0x46ecf9 | goto label_3; | } 0x0046ec24 jmp 0x46ec51 | goto label_5; 0x0046ec26 lea rax, [r14 + 1] | rax = r14 + 1; 0x0046ec2a cmp byte [rax], 0 | | if (*(rax) != 0) { 0x0046ec2d jne 0x46ecf9 | goto label_3; | } 0x0046ec33 jmp 0x46ec51 | goto label_5; 0x0046ec35 lea rax, [r14 + 4] | rax = r14 + 4; 0x0046ec39 cmp byte [rax], 0 | | if (*(rax) != 0) { 0x0046ec3c jne 0x46ecf9 | goto label_3; | } 0x0046ec42 jmp 0x46ec51 | goto label_5; 0x0046ec44 lea rax, [r14 + 0x30] | rax = r14 + 0x30; 0x0046ec48 cmp byte [rax], 0 | | if (*(rax) != 0) { 0x0046ec4b jne 0x46ecf9 | goto label_3; | } | } | label_5: 0x0046ec51 mov rax, qword [rip + 0x296fd0] | rax = BloombergLP::bslma::Default::s_defaultAllocator; 0x0046ec58 test rax, rax | | if (rax == 0) { 0x0046ec5b jne 0x46ec62 | 0x0046ec5d call 0x47ce20 | BloombergLP::bslma::Default::determineAndReturnDefaultAllocator() (); | } 0x0046ec62 mov r15, qword [r14 + 0x28] | r15 = *((r14 + 0x28)); 0x0046ec66 cmp byte [r14 + 0x20], 0 | | if (*((r14 + 0x20)) == 0) { 0x0046ec6b je 0x46ecc8 | goto label_6; | } 0x0046ec6d mov byte [r14 + 0x20], 0 | *((r14 + 0x20)) = 0; 0x0046ec72 mov rbp, qword [r14] | rbp = *(r14); 0x0046ec75 test rbp, rbp | | if (rbp == 0) { 0x0046ec78 je 0x46ecc8 | goto label_6; | } 0x0046ec7a mov rbx, qword [r14 + 8] | rbx = *((r14 + 8)); 0x0046ec7e cmp rbp, rbx | | if (rbp != rbx) { 0x0046ec81 jne 0x46eca1 | goto label_7; | } 0x0046ec83 jmp 0x46ecbb | goto label_8; | do { | label_0: 0x0046ec90 mov qword [rbp + 0x18], 0xffffffffffffffff | *((rbp + 0x18)) = 0xffffffffffffffff; 0x0046ec98 add rbp, 0x30 | rbp += 0x30; 0x0046ec9c cmp rbx, rbp | | if (rbx == rbp) { 0x0046ec9f je 0x46ecb8 | goto label_9; | } | label_7: 0x0046eca1 cmp qword [rbp + 0x20], 0x17 | 0x0046eca6 je 0x46ec90 | | } while (*((rbp + 0x20)) == 0x17); 0x0046eca8 mov rsi, qword [rbp] | rsi = *(rbp); 0x0046ecac mov rdi, qword [rbp + 0x28] | rdi = *((rbp + 0x28)); 0x0046ecb0 mov rax, qword [rdi] | rax = *(rdi); 0x0046ecb3 call qword [rax + 0x18] | uint64_t (*rax + 0x18)() (); 0x0046ecb6 jmp 0x46ec90 | goto label_0; | label_9: 0x0046ecb8 mov rbp, qword [r14] | rbp = *(r14); | label_8: 0x0046ecbb mov rdi, qword [r14 + 0x18] | rdi = *((r14 + 0x18)); 0x0046ecbf mov rax, qword [rdi] | rax = *(rdi); 0x0046ecc2 mov rsi, rbp | rsi = rbp; 0x0046ecc5 call qword [rax + 0x18] | uint64_t (*rax + 0x18)() (); | label_6: 0x0046ecc8 test r15, r15 | | if (r15 == 0) { 0x0046eccb jne 0x46ece1 | 0x0046eccd mov r15, qword [rip + 0x296f54] | r15 = BloombergLP::bslma::Default::s_defaultAllocator; 0x0046ecd4 test r15, r15 | | if (r15 != 0) { 0x0046ecd7 jne 0x46ece1 | goto label_10; | } 0x0046ecd9 call 0x47ce20 | rax = BloombergLP::bslma::Default::determineAndReturnDefaultAllocator() (); 0x0046ecde mov r15, rax | r15 = rax; | } | label_10: 0x0046ece1 xorps xmm0, xmm0 | __asm ("xorps xmm0, xmm0"); 0x0046ece4 movups xmmword [r14], xmm0 | __asm ("movups xmmword [r14], xmm0"); 0x0046ece8 mov qword [r14 + 0x10], 0 | *((r14 + 0x10)) = 0; 0x0046ecf0 mov qword [r14 + 0x18], r15 | *((r14 + 0x18)) = r15; 0x0046ecf4 mov byte [r14 + 0x20], 1 | *((r14 + 0x20)) = 1; | label_3: 0x0046ecf9 mov bl, 1 | bl = 1; 0x0046ecfb lea rsi, [rsp + 8] | 0x0046ed00 mov rdi, r14 | 0x0046ed03 call 0x454770 | bsl::vector,bsl::allocator>,bsl::allocator,bsl::allocator>>>::push_back(bsl::basic_string,bsl::allocator>const&) (r14, rsp + 8); | label_4: 0x0046ed08 cmp qword [rsp + 0x28], 0x17 | | if (*((rsp + 0x28)) != 0x17) { 0x0046ed0e je 0x46ed20 | 0x0046ed10 mov rsi, qword [rsp + 8] | rsi = *((rsp + 8)); 0x0046ed15 mov rdi, qword [rsp + 0x30] | rdi = *((rsp + 0x30)); 0x0046ed1a mov rax, qword [rdi] | rax = *(rdi); 0x0046ed1d call qword [rax + 0x18] | uint64_t (*rax + 0x18)() (); | } 0x0046ed20 mov eax, ebx | eax = ebx; 0x0046ed22 add rsp, 0x38 | 0x0046ed26 pop rbx | 0x0046ed27 pop r12 | 0x0046ed29 pop r13 | 0x0046ed2b pop r14 | 0x0046ed2d pop r15 | 0x0046ed2f pop rbp | 0x0046ed30 ret | return rax; | label_2: 0x0046ed31 ud2 | __asm ("ud2"); | }