; assembly | /* r2dec pseudo code output */ | /* bdlc_compactedarray.t/assume @ 0x432420 */ | #include | ; (fcn) method.void_BloombergLP::bslalg::ArrayPrimitives_Imp::insert_BloombergLP::bdlc::CompactedArray_CountedValue_bsl::basic_string_char__std::__1::char_traits_char___bsl::allocator_char_______bsl::allocator_BloombergLP::bdlc::CompactedArray_CountedValue_bsl:: () | int64_t method_void_BloombergLP::bslalg::ArrayPrimitives_Imp::insert_BloombergLP::bdlc::CompactedArray_CountedValue_bsl::basic_string_char_std::_1::char_traits_char_bsl::allocator_char_bsl::allocator_BloombergLP::bdlc::CompactedArray_CountedValue_bsl:: (int64_t arg4, int64_t arg3, int64_t arg2, uint32_t arg1) { | rcx = arg4; | rdx = arg3; | rsi = arg2; | rdi = arg1; | /* void BloombergLP::bslalg::ArrayPrimitives_Imp::insert, bsl::allocator > >, bsl::allocator, bsl::allocator > > > >(BloombergLP::bdlc::CompactedArray_CountedValue, bsl::allocator > >*, BloombergLP::bdlc::CompactedArray_CountedValue, bsl::allocator > >*, BloombergLP::bslmf::MovableRef_Helper, bsl::allocator > > >::type, bsl::allocator, bsl::allocator > > >, BloombergLP::bslmf::MetaInt<0>*) */ 0x00432420 push rbp | 0x00432421 push r15 | 0x00432423 push r14 | 0x00432425 push r13 | 0x00432427 push r12 | 0x00432429 push rbx | 0x0043242a push rax | 0x0043242b mov r14, rdx | r14 = rdx; 0x0043242e mov r12, rdi | r12 = rdi; 0x00432431 cmp rdi, rsi | | if (rdi >= rsi) { 0x00432434 jae 0x43254b | goto label_0; | } 0x0043243a mov r15, rsi | r15 = rsi; 0x0043243d lea rbx, [rsi - 0x38] | rbx = rsi - 0x38; 0x00432441 mov rdi, qword [rcx] | rdi = *(rcx); 0x00432444 mov rax, qword [rsi - 8] | rax = *((rsi - 8)); 0x00432448 mov qword [rsi + 0x30], rax | *((rsi + 0x30)) = rax; 0x0043244c movups xmm0, xmmword [rsi - 0x38] | __asm ("movups xmm0, xmmword [rsi - 0x38]"); 0x00432450 movups xmm1, xmmword [rsi - 0x28] | __asm ("movups xmm1, xmmword [rsi - 0x28]"); 0x00432454 movups xmmword [rsi], xmm0 | __asm ("movups xmmword [rsi], xmm0"); 0x00432457 movups xmmword [rsi + 0x10], xmm1 | __asm ("movups xmmword [rsi + 0x10], xmm1"); 0x0043245b mov rax, qword [rsi - 0x18] | rax = *((rsi - 0x18)); 0x0043245f mov qword [rsi + 0x20], rax | *((rsi + 0x20)) = rax; 0x00432463 mov qword [rsi + 0x28], rdi | *((rsi + 0x28)) = rdi; 0x00432467 cmp rax, 0x17 | | if (rax != 0x17) { 0x0043246b je 0x4324c8 | 0x0043246d mov rax, qword [r15 - 0x20] | rax = *((r15 - 0x20)); 0x00432471 cmp rax, 0x17 | 0x00432475 mov esi, 0x17 | esi = 0x17; | if (rax > 0x17) { 0x0043247a cmova rsi, rax | rsi = rax; | } 0x0043247e mov qword [r15], 0 | *(r15) = 0; 0x00432485 mov qword [r15 + 0x18], rax | *((r15 + 0x18)) = rax; 0x00432489 mov qword [r15 + 0x20], rsi | *((r15 + 0x20)) = rsi; 0x0043248d cmp rax, 0x18 | | if (rax >= 0x18) { 0x00432491 jb 0x4324a6 | 0x00432493 inc rsi | rsi++; 0x00432496 mov rax, qword [rdi] | rax = *(rdi); 0x00432499 call qword [rax + 0x10] | rax = uint64_t (*rax + 0x10)() (); 0x0043249c mov qword [r15], rax | *(r15) = rax; 0x0043249f cmp qword [r15 + 0x20], 0x17 | | if (*((r15 + 0x20)) != 0x17) { 0x004324a4 jne 0x4324a9 | goto label_1; | } | } 0x004324a6 mov rax, r15 | rax = r15; | label_1: 0x004324a9 mov rdx, qword [r15 + 0x18] | rdx = *((r15 + 0x18)); 0x004324ad inc rdx | rdx++; | if (rdx == 0) { 0x004324b0 je 0x4324c8 | goto label_2; | } 0x004324b2 cmp qword [r15 - 0x18], 0x17 | 0x004324b7 mov rsi, rbx | rsi = rbx; | if (*((r15 - 0x18)) != 0x17) { 0x004324ba je 0x4324c0 | 0x004324bc mov rsi, qword [r15 - 0x38] | | } 0x004324c0 mov rdi, rax | 0x004324c3 call 0x403ea0 | rax = memcpy (rax, *((r15 - 0x38)), rdx); | } | label_2: 0x004324c8 cmp rbx, r12 | | if (rbx == r12) { 0x004324cb je 0x43250f | goto label_3; | } 0x004324cd nop dword [rax] | | do { 0x004324d0 lea r13, [rbx - 0x38] | r13 = rbx - 0x38; 0x004324d4 cmp qword [rbx - 0x18], 0x17 | 0x004324d9 mov rsi, r13 | rsi = r13; | if (*((rbx - 0x18)) != 0x17) { 0x004324dc je 0x4324e2 | 0x004324de mov rsi, qword [rbx - 0x38] | | } 0x004324e2 mov rdx, qword [rbx - 0x20] | 0x004324e6 mov rbp, qword [rbx + 0x18] | rbp = *((rbx + 0x18)); 0x004324ea mov qword [rbx + 0x18], 0 | *((rbx + 0x18)) = 0; 0x004324f2 mov ecx, 0x46973f | 0x004324f7 mov rdi, rbx | 0x004324fa call 0x441770 | bsl::basic_string,bsl::allocator>::privateAppend(char const*,unsigned long,char const*) (rbx, *((rbx - 0x38)), *((rbx - 0x20)), "string<...>::operator=(const string&...): string too long"); 0x004324ff mov rax, qword [rbx - 8] | rax = *((rbx - 8)); 0x00432503 mov qword [rbx + 0x30], rax | *((rbx + 0x30)) = rax; 0x00432507 mov rbx, r13 | rbx = r13; 0x0043250a cmp r12, r13 | 0x0043250d jne 0x4324d0 | | } while (r12 != r13); | label_3: 0x0043250f cmp r12, r14 | | if (r12 != r14) { 0x00432512 je 0x432540 | 0x00432514 mov rdx, qword [r14 + 0x18] | rdx = *((r14 + 0x18)); 0x00432518 cmp qword [r14 + 0x20], 0x17 | 0x0043251d mov rsi, r14 | rsi = r14; | if (*((r14 + 0x20)) != 0x17) { 0x00432520 je 0x432525 | 0x00432522 mov rsi, qword [r14] | | } 0x00432525 mov rbx, qword [r12 + 0x18] | rbx = *((r12 + 0x18)); 0x0043252a mov qword [r12 + 0x18], 0 | *((r12 + 0x18)) = 0; 0x00432533 mov ecx, 0x46973f | 0x00432538 mov rdi, r12 | 0x0043253b call 0x441770 | bsl::basic_string,bsl::allocator>::privateAppend(char const*,unsigned long,char const*) (r12, *(r14), rdx, "string<...>::operator=(const string&...): string too long"); | } 0x00432540 mov rax, qword [r14 + 0x30] | rax = *((r14 + 0x30)); 0x00432544 mov qword [r12 + 0x30], rax | *((r12 + 0x30)) = rax; 0x00432549 jmp 0x4325ca | goto label_4; | label_0: 0x0043254b mov rdi, qword [rcx] | rdi = *(rcx); 0x0043254e mov rax, qword [r14 + 0x30] | rax = *((r14 + 0x30)); 0x00432552 mov qword [r12 + 0x30], rax | *((r12 + 0x30)) = rax; 0x00432557 movups xmm0, xmmword [r14] | __asm ("movups xmm0, xmmword [r14]"); 0x0043255b movups xmm1, xmmword [r14 + 0x10] | __asm ("movups xmm1, xmmword [r14 + 0x10]"); 0x00432560 movups xmmword [r12], xmm0 | __asm ("movups xmmword [r12], xmm0"); 0x00432565 movups xmmword [r12 + 0x10], xmm1 | __asm ("movups xmmword [r12 + 0x10], xmm1"); 0x0043256b mov rax, qword [r14 + 0x20] | rax = *((r14 + 0x20)); 0x0043256f mov qword [r12 + 0x20], rax | *((r12 + 0x20)) = rax; 0x00432574 mov qword [r12 + 0x28], rdi | *((r12 + 0x28)) = rdi; 0x00432579 cmp rax, 0x17 | | if (rax != 0x17) { 0x0043257d je 0x4325ca | 0x0043257f mov rax, qword [r14 + 0x18] | rax = *((r14 + 0x18)); 0x00432583 cmp rax, 0x17 | 0x00432587 mov esi, 0x17 | esi = 0x17; | if (rax > 0x17) { 0x0043258c cmova rsi, rax | rsi = rax; | } 0x00432590 mov qword [r12], 0 | *(r12) = 0; 0x00432598 mov qword [r12 + 0x18], rax | *((r12 + 0x18)) = rax; 0x0043259d mov qword [r12 + 0x20], rsi | *((r12 + 0x20)) = rsi; 0x004325a2 cmp rax, 0x18 | | if (rax >= 0x18) { 0x004325a6 jb 0x4325bd | 0x004325a8 inc rsi | rsi++; 0x004325ab mov rax, qword [rdi] | rax = *(rdi); 0x004325ae call qword [rax + 0x10] | rax = uint64_t (*rax + 0x10)() (); 0x004325b1 mov qword [r12], rax | *(r12) = rax; 0x004325b5 cmp qword [r12 + 0x20], 0x17 | | if (*((r12 + 0x20)) != 0x17) { 0x004325bb jne 0x4325c0 | goto label_5; | } | } 0x004325bd mov rax, r12 | rax = r12; | label_5: 0x004325c0 mov rdx, qword [r12 + 0x18] | rdx = *((r12 + 0x18)); 0x004325c5 inc rdx | rdx++; | if (rdx != 0) { 0x004325c8 jne 0x4325d9 | goto label_6; | } | } | label_4: 0x004325ca add rsp, 8 | 0x004325ce pop rbx | 0x004325cf pop r12 | 0x004325d1 pop r13 | 0x004325d3 pop r14 | 0x004325d5 pop r15 | 0x004325d7 pop rbp | 0x004325d8 ret | return rax; | label_6: 0x004325d9 cmp qword [r14 + 0x20], 0x17 | | if (*((r14 + 0x20)) != 0x17) { 0x004325de je 0x4325e3 | 0x004325e0 mov r14, qword [r14] | r14 = *(r14); | } 0x004325e3 mov rdi, rax | rdi = rax; 0x004325e6 mov rsi, r14 | rsi = r14; 0x004325e9 add rsp, 8 | 0x004325ed pop rbx | 0x004325ee pop r12 | 0x004325f0 pop r13 | 0x004325f2 pop r14 | 0x004325f4 pop r15 | 0x004325f6 pop rbp | 0x004325f7 jmp 0x403ea0 | return memcpy (); | }