; assembly | /* r2dec pseudo code output */ | /* baljsn_encoder.t/assume @ 0x4bb610 */ | #include | ; (fcn) method.BloombergLP::s_baltst::Sequence1.operator_BloombergLP::s_baltst::Sequence1_ () | int64_t method_BloombergLP::s_baltst::Sequence1_operator_BloombergLP::s_baltst::Sequence1_ (uint32_t arg2, uint32_t arg1) { | rsi = arg2; | rdi = arg1; | /* BloombergLP::s_baltst::Sequence1::operator=(BloombergLP::s_baltst::Sequence1&&) */ 0x004bb610 push r14 | 0x004bb612 push rbx | 0x004bb613 push rax | 0x004bb614 mov rbx, rdi | rbx = rdi; 0x004bb617 cmp rdi, rsi | | if (rdi != rsi) { 0x004bb61a je 0x4bb708 | 0x004bb620 mov r14, rsi | r14 = rsi; 0x004bb623 lea rdi, [rbx + 0x68] | rdi = rbx + 0x68; 0x004bb627 cmp byte [rsi + 0x1e8], 0 | 0x004bb62e mov al, byte [rbx + 0x1e8] | al = *((rbx + 0x1e8)); | if (*((rsi + 0x1e8)) != 0) { 0x004bb634 je 0x4bb645 | 0x004bb636 lea rsi, [r14 + 0x68] | rsi = r14 + 0x68; 0x004bb63a test al, al | | if (al != 0) { 0x004bb63c je 0x4bb66a | 0x004bb63e call 0x4b9520 | al = BloombergLP::s_baltst::Choice3::operator=(BloombergLP::s_baltst::Choice3&&) (rdi, rsi); 0x004bb643 jmp 0x4bb6af | | } else { 0x004bb645 test al, al | | if (al == 0) { 0x004bb647 je 0x4bb6af | goto label_0; | } 0x004bb649 mov byte [rbx + 0x1e8], 0 | *((rbx + 0x1e8)) = 0; 0x004bb650 mov eax, dword [rbx + 0x1d8] | eax = *((rbx + 0x1d8)); 0x004bb656 cmp rax, 3 | | if (rax > 3) { 0x004bb65a ja 0x4bb6a5 | goto label_1; | } | /* switch table (4 cases) at 0x649028 */ 0x004bb65c jmp qword [rax*8 + 0x649028] | 0x004bb663 call 0x4c4a50 | BloombergLP::s_baltst::Sequence6::~Sequence6() (rdi); 0x004bb668 jmp 0x4bb6a5 | | } else { 0x004bb66a mov rdx, qword [rbx + 0x1f0] | 0x004bb671 call 0x4b8f00 | BloombergLP::s_baltst::Choice3::Choice3(BloombergLP::s_baltst::Choice3&&,BloombergLP::bslma::Allocator*) (rdi, rsi, *((rbx + 0x1f0))); 0x004bb676 mov byte [rbx + 0x1e8], 1 | *((rbx + 0x1e8)) = 1; 0x004bb67d jmp 0x4bb6af | goto label_0; 0x004bb67f cmp qword [rbx + 0x88], 0x17 | | if (*((rbx + 0x88)) != 0x17) { 0x004bb687 je 0x4bb69a | 0x004bb689 mov rsi, qword [rbx + 0x68] | rsi = *((rbx + 0x68)); 0x004bb68d mov rdi, qword [rbx + 0x90] | rdi = *((rbx + 0x90)); 0x004bb694 mov rax, qword [rdi] | rax = *(rdi); 0x004bb697 call qword [rax + 0x18] | uint64_t (*rax + 0x18)() (); | } 0x004bb69a mov qword [rbx + 0x80], 0xffffffffffffffff | *((rbx + 0x80)) = 0xffffffffffffffff; | } | label_1: 0x004bb6a5 mov dword [rbx + 0x1d8], 0xffffffff | *((rbx + 0x1d8)) = 0xffffffff; | } | label_0: 0x004bb6af lea rsi, [r14 + 0x48] | 0x004bb6b3 lea rdi, [rbx + 0x48] | 0x004bb6b7 call 0x4c5b20 | bsl::vector>::operator=(bsl::vector>&&) (rbx + 0x48, r14 + 0x48); 0x004bb6bc mov rax, qword [rbx] | rax = *(rbx); 0x004bb6bf mov rsi, qword [r14 + 0x1f8] | rsi = *((r14 + 0x1f8)); 0x004bb6c6 cmp rax, qword [r14] | | if (rax != *(r14)) { 0x004bb6c9 je 0x4bb6d9 | 0x004bb6cb mov rdi, qword [rbx + 0x1f8] | 0x004bb6d2 call 0x4b7a80 | BloombergLP::s_baltst::Choice2::operator=(BloombergLP::s_baltst::Choice2&&) (*((rbx + 0x1f8)), rsi); 0x004bb6d7 jmp 0x4bb6eb | | } else { 0x004bb6d9 mov qword [rbx + 0x1f8], rsi | *((rbx + 0x1f8)) = rsi; 0x004bb6e0 mov qword [r14 + 0x1f8], 0 | *((r14 + 0x1f8)) = 0; | } 0x004bb6eb lea rsi, [r14 + 8] | 0x004bb6ef lea rdi, [rbx + 8] | 0x004bb6f3 call 0x4c5ca0 | bsl::vector,bsl::allocator>>::operator=(bsl::vector,bsl::allocator>>&&) (rbx + 8, r14 + 8); 0x004bb6f8 add r14, 0x28 | r14 += 0x28; 0x004bb6fc lea rdi, [rbx + 0x28] | 0x004bb700 mov rsi, r14 | 0x004bb703 call 0x4c5e30 | bsl::vector>::operator=(bsl::vector>&&) (rbx + 0x28, r14); | } 0x004bb708 mov rax, rbx | rax = rbx; 0x004bb70b add rsp, 8 | 0x004bb70f pop rbx | 0x004bb710 pop r14 | 0x004bb712 ret | return rax; | }