; assembly | /* r2dec pseudo code output */ | /* bslmt_threadutil.t/none @ 0x420f30 */ | #include | ; (fcn) method.int_BloombergLP::bslmt::ThreadUtil::createWithAllocator_STACKSIZE_TEST_CASE_NAMESPACE.Func_2097152____unsigned_long__BloombergLP::bslmt::ThreadAttributes_const__STACKSIZE_TEST_CASE_NAMESPACE::Func_2097152__const__BloombergLP::bslma::Allocator_ () | uint64_t method_int_BloombergLP::bslmt::ThreadUtil::createWithAllocator_STACKSIZE_TEST_CASE_NAMESPACE_Func_2097152_unsigned_long_BloombergLP::bslmt::ThreadAttributes_const_STACKSIZE_TEST_CASE_NAMESPACE::Func_2097152_const_BloombergLP::bslma::Allocator_ (int64_t arg4, uint32_t arg2, int64_t arg1) { | rcx = arg4; | rsi = arg2; | rdi = arg1; | /* int BloombergLP::bslmt::ThreadUtil::createWithAllocator >(unsigned long*, BloombergLP::bslmt::ThreadAttributes const&, STACKSIZE_TEST_CASE_NAMESPACE::Func<2097152> const&, BloombergLP::bslma::Allocator*) */ 0x00420f30 push rbp | 0x00420f31 push r15 | 0x00420f33 push r14 | 0x00420f35 push r13 | 0x00420f37 push r12 | 0x00420f39 push rbx | 0x00420f3a push rax | 0x00420f3b mov r14, rcx | r14 = rcx; 0x00420f3e mov r15, rsi | r15 = rsi; 0x00420f41 mov r12, rdi | r12 = rdi; 0x00420f44 cmp qword [rsi + 0x38], 0x17 | | if (*((rsi + 0x38)) != 0x17) { 0x00420f49 je 0x420f51 | 0x00420f4b mov r13, qword [r15 + 0x18] | r13 = *((r15 + 0x18)); 0x00420f4f jmp 0x420f55 | | } else { 0x00420f51 lea r13, [r15 + 0x18] | r13 = r15 + 0x18; | } 0x00420f55 mov rbp, qword [r15 + 0x30] | rbp = *((r15 + 0x30)); 0x00420f59 test r14, r14 | | if (r14 == 0) { 0x00420f5c jne 0x420f72 | 0x00420f5e mov r14, qword [rip + 0x223b4b] | r14 = BloombergLP::bslma::Default::s_defaultAllocator; 0x00420f65 test r14, r14 | | if (r14 != 0) { 0x00420f68 jne 0x420f72 | goto label_0; | } 0x00420f6a call 0x42e840 | rax = BloombergLP::bslma::Default::determineAndReturnDefaultAllocator() (); 0x00420f6f mov r14, rax | r14 = rax; | } | label_0: 0x00420f72 mov rax, qword [r14] | rax = *(r14); 0x00420f75 mov esi, 0x40 | esi = 0x40; 0x00420f7a mov rdi, r14 | rdi = r14; 0x00420f7d call qword [rax + 0x10] | rax = uint64_t (*rax + 0x10)() (); 0x00420f80 mov rbx, rax | rbx = rax; 0x00420f83 mov qword [rax], 0x421080 | *(rax) = method.BloombergLP::bslmt::EntryPointFunctorAdapter_STACKSIZE_TEST_CASE_NAMESPACE::Func_2097152___.invokerFunction_void_; 0x00420f8a lea rdi, [rax + 0x10] | 0x00420f8e mov qword [rax + 0x10], 0 | *((rax + 0x10)) = 0; 0x00420f96 mov qword [rax + 0x38], r14 | *((rax + 0x38)) = r14; 0x00420f9a movaps xmm0, xmmword [rip + 0x105ff] | xmm0 = .comment; 0x00420fa1 movups xmmword [rax + 0x28], xmm0 | __asm ("movups xmmword [rax + 0x28], xmm0"); 0x00420fa5 mov ecx, 0x432d0b | 0x00420faa mov rsi, r13 | 0x00420fad mov rdx, rbp | 0x00420fb0 call 0x4254b0 | bsl::basic_string,bsl::allocator>::privateAppend(char const*,unsigned long,char const*) (rax + 0x10, r13, rbp, "string<...>::assign(i,j): string too long"); 0x00420fb5 mov edx, 0x422cd0 | 0x00420fba mov rdi, r12 | 0x00420fbd mov rsi, r15 | 0x00420fc0 mov rcx, rbx | 0x00420fc3 call 0x423340 | eax = BloombergLP::bslmt::ThreadUtilImpl::create(unsigned long*,BloombergLP::bslmt::ThreadAttributesconst&,void*(*)(void*),void*) (r12, r15, sym.bslmt_EntryPointFunctorAdapter_invoker, rbx); 0x00420fc8 mov ebp, eax | 0x00420fca test eax, eax | | if (eax != 0) { 0x00420fcc je 0x420ff7 | 0x00420fce cmp qword [rbx + 0x30], 0x17 | | if (*((rbx + 0x30)) != 0x17) { 0x00420fd3 je 0x420fe3 | 0x00420fd5 mov rsi, qword [rbx + 0x10] | rsi = *((rbx + 0x10)); 0x00420fd9 mov rdi, qword [rbx + 0x38] | rdi = *((rbx + 0x38)); 0x00420fdd mov rax, qword [rdi] | rax = *(rdi); 0x00420fe0 call qword [rax + 0x18] | uint64_t (*rax + 0x18)() (); | } 0x00420fe3 mov qword [rbx + 0x28], 0xffffffffffffffff | *((rbx + 0x28)) = 0xffffffffffffffff; 0x00420feb mov rax, qword [r14] | rax = *(r14); 0x00420fee mov rdi, r14 | rdi = r14; 0x00420ff1 mov rsi, rbx | rsi = rbx; 0x00420ff4 call qword [rax + 0x18] | uint64_t (*rax + 0x18)() (); | } 0x00420ff7 mov eax, ebp | eax = ebp; 0x00420ff9 add rsp, 8 | 0x00420ffd pop rbx | 0x00420ffe pop r12 | 0x00421000 pop r13 | 0x00421002 pop r14 | 0x00421004 pop r15 | 0x00421006 pop rbp | 0x00421007 ret | return rax; | }