; assembly | /* r2dec pseudo code output */ | /* bslmt_rwmutex.t/none @ 0x4083e0 */ | #include | ; (fcn) method.int_BloombergLP::bslmt::ThreadUtil::createWithAllocator_PingPongWriter_BloombergLP::bslmt.RWMutex____unsigned_long__PingPongWriter_BloombergLP::bslmt::RWMutex__const__BloombergLP::bslma::Allocator_ () | uint64_t method_int_BloombergLP::bslmt::ThreadUtil::createWithAllocator_PingPongWriter_BloombergLP::bslmt_RWMutex_unsigned_long_PingPongWriter_BloombergLP::bslmt::RWMutex_const_BloombergLP::bslma::Allocator_ (int64_t arg3, int64_t arg2, int64_t arg1) { | int64_t var_18h; | uint32_t var_38h; | int64_t var_40h; | rdx = arg3; | rsi = arg2; | rdi = arg1; | /* int BloombergLP::bslmt::ThreadUtil::createWithAllocator >(unsigned long*, PingPongWriter const&, BloombergLP::bslma::Allocator*) */ 0x004083e0 push rbp | 0x004083e1 push r15 | 0x004083e3 push r14 | 0x004083e5 push rbx | 0x004083e6 sub rsp, 0x48 | 0x004083ea mov r14, rdx | r14 = rdx; 0x004083ed mov rbp, rsi | 0x004083f0 mov r15, rdi | r15 = rdi; 0x004083f3 test rdx, rdx | | if (rdx == 0) { 0x004083f6 jne 0x40840c | 0x004083f8 mov r14, qword [rip + 0x242571] | r14 = BloombergLP::bslma::Default::s_defaultAllocator; 0x004083ff test r14, r14 | | if (r14 != 0) { 0x00408402 jne 0x40840c | goto label_0; | } 0x00408404 call 0x432700 | rax = BloombergLP::bslma::Default::determineAndReturnDefaultAllocator() (); 0x00408409 mov r14, rax | r14 = rax; | } | label_0: 0x0040840c mov rax, qword [r14] | rax = *(r14); 0x0040840f mov esi, 0x60 | esi = 0x60; 0x00408414 mov rdi, r14 | rdi = r14; 0x00408417 call qword [rax + 0x10] | rax = uint64_t (*rax + 0x10)() (); 0x0040841a mov rbx, rax | rbx = rax; 0x0040841d mov qword [rax], 0x408580 | *(rax) = method.BloombergLP::bslmt::EntryPointFunctorAdapter_PingPongWriter_BloombergLP::bslmt::RWMutex___.invokerFunction_void_; 0x00408424 movups xmm0, xmmword [rbp] | __asm ("movups xmm0, xmmword [rbp]"); 0x00408428 movups xmm1, xmmword [rbp + 0x10] | __asm ("movups xmm1, xmmword [rbp + 0x10]"); 0x0040842c movups xmmword [rax + 8], xmm0 | __asm ("movups xmmword [rax + 8], xmm0"); 0x00408430 movups xmmword [rax + 0x18], xmm1 | __asm ("movups xmmword [rax + 0x18], xmm1"); 0x00408434 mov rax, qword [rbp + 0x20] | rax = *((rbp + 0x20)); 0x00408438 mov qword [rbx + 0x28], rax | *((rbx + 0x28)) = rax; 0x0040843c lea rdi, [rbx + 0x30] | 0x00408440 mov qword [rbx + 0x30], 0 | *((rbx + 0x30)) = 0; 0x00408448 mov qword [rbx + 0x58], r14 | *((rbx + 0x58)) = r14; 0x0040844c movaps xmm0, xmmword [rip + 0x2a96d] | xmm0 = .comment; 0x00408453 movups xmmword [rbx + 0x48], xmm0 | __asm ("movups xmmword [rbx + 0x48], xmm0"); 0x00408457 mov ecx, 0x4332d5 | 0x0040845c xor esi, esi | 0x0040845e xor edx, edx | 0x00408460 call 0x40f410 | bsl::basic_string,bsl::allocator>::privateAppend(char const*,unsigned long,char const*) (rbx + 0x30, 0, 0, "string<...>::assign(i,j): string too long"); 0x00408465 mov rdi, rsp | 0x00408468 call 0x40ce90 | BloombergLP::bslmt::ThreadAttributes::ThreadAttributes() (rsp); 0x0040846d mov rsi, rsp | 0x00408470 mov edx, 0x40c3b0 | 0x00408475 mov rdi, r15 | 0x00408478 mov rcx, rbx | 0x0040847b call 0x40d380 | eax = BloombergLP::bslmt::ThreadUtilImpl::create(unsigned long*,BloombergLP::bslmt::ThreadAttributesconst&,void*(*)(void*),void*) (r15, rsp, sym.bslmt_EntryPointFunctorAdapter_invoker, rbx); 0x00408480 mov ebp, eax | 0x00408482 cmp qword [rsp + 0x38], 0x17 | | if (*((rsp + 0x38)) != 0x17) { 0x00408488 je 0x40849a | 0x0040848a mov rsi, qword [rsp + 0x18] | rsi = *((rsp + 0x18)); 0x0040848f mov rdi, qword [rsp + 0x40] | rdi = *((rsp + 0x40)); 0x00408494 mov rax, qword [rdi] | rax = *(rdi); 0x00408497 call qword [rax + 0x18] | uint64_t (*rax + 0x18)() (); | } 0x0040849a test ebp, ebp | | if (ebp != 0) { 0x0040849c je 0x4084c7 | 0x0040849e cmp qword [rbx + 0x50], 0x17 | | if (*((rbx + 0x50)) != 0x17) { 0x004084a3 je 0x4084b3 | 0x004084a5 mov rsi, qword [rbx + 0x30] | rsi = *((rbx + 0x30)); 0x004084a9 mov rdi, qword [rbx + 0x58] | rdi = *((rbx + 0x58)); 0x004084ad mov rax, qword [rdi] | rax = *(rdi); 0x004084b0 call qword [rax + 0x18] | uint64_t (*rax + 0x18)() (); | } 0x004084b3 mov qword [rbx + 0x48], 0xffffffffffffffff | *((rbx + 0x48)) = 0xffffffffffffffff; 0x004084bb mov rax, qword [r14] | rax = *(r14); 0x004084be mov rdi, r14 | rdi = r14; 0x004084c1 mov rsi, rbx | rsi = rbx; 0x004084c4 call qword [rax + 0x18] | uint64_t (*rax + 0x18)() (); | } 0x004084c7 mov eax, ebp | eax = ebp; 0x004084c9 add rsp, 0x48 | 0x004084cd pop rbx | 0x004084ce pop r14 | 0x004084d0 pop r15 | 0x004084d2 pop rbp | 0x004084d3 ret | return rax; | }