; assembly | /* r2dec pseudo code output */ | /* bslmt_threadutil.t/none @ 0x421a20 */ | #include | ; (fcn) method.int_BloombergLP::bslmt::ThreadUtil::createWithAllocator_STACKSIZE_TEST_CASE_NAMESPACE.Func_8387584____unsigned_long__BloombergLP::bslmt::ThreadAttributes_const__STACKSIZE_TEST_CASE_NAMESPACE::Func_8387584__const__BloombergLP::bslma::Allocator_ () | uint64_t method_int_BloombergLP::bslmt::ThreadUtil::createWithAllocator_STACKSIZE_TEST_CASE_NAMESPACE_Func_8387584_unsigned_long_BloombergLP::bslmt::ThreadAttributes_const_STACKSIZE_TEST_CASE_NAMESPACE::Func_8387584_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<8387584> const&, BloombergLP::bslma::Allocator*) */ 0x00421a20 push rbp | 0x00421a21 push r15 | 0x00421a23 push r14 | 0x00421a25 push r13 | 0x00421a27 push r12 | 0x00421a29 push rbx | 0x00421a2a push rax | 0x00421a2b mov r14, rcx | r14 = rcx; 0x00421a2e mov r15, rsi | r15 = rsi; 0x00421a31 mov r12, rdi | r12 = rdi; 0x00421a34 cmp qword [rsi + 0x38], 0x17 | | if (*((rsi + 0x38)) != 0x17) { 0x00421a39 je 0x421a41 | 0x00421a3b mov r13, qword [r15 + 0x18] | r13 = *((r15 + 0x18)); 0x00421a3f jmp 0x421a45 | | } else { 0x00421a41 lea r13, [r15 + 0x18] | r13 = r15 + 0x18; | } 0x00421a45 mov rbp, qword [r15 + 0x30] | rbp = *((r15 + 0x30)); 0x00421a49 test r14, r14 | | if (r14 == 0) { 0x00421a4c jne 0x421a62 | 0x00421a4e mov r14, qword [rip + 0x22305b] | r14 = BloombergLP::bslma::Default::s_defaultAllocator; 0x00421a55 test r14, r14 | | if (r14 != 0) { 0x00421a58 jne 0x421a62 | goto label_0; | } 0x00421a5a call 0x42e840 | rax = BloombergLP::bslma::Default::determineAndReturnDefaultAllocator() (); 0x00421a5f mov r14, rax | r14 = rax; | } | label_0: 0x00421a62 mov rax, qword [r14] | rax = *(r14); 0x00421a65 mov esi, 0x40 | esi = 0x40; 0x00421a6a mov rdi, r14 | rdi = r14; 0x00421a6d call qword [rax + 0x10] | rax = uint64_t (*rax + 0x10)() (); 0x00421a70 mov rbx, rax | rbx = rax; 0x00421a73 mov qword [rax], 0x421b70 | *(rax) = method.BloombergLP::bslmt::EntryPointFunctorAdapter_STACKSIZE_TEST_CASE_NAMESPACE::Func_8387584___.invokerFunction_void_; 0x00421a7a lea rdi, [rax + 0x10] | 0x00421a7e mov qword [rax + 0x10], 0 | *((rax + 0x10)) = 0; 0x00421a86 mov qword [rax + 0x38], r14 | *((rax + 0x38)) = r14; 0x00421a8a movaps xmm0, xmmword [rip + 0xfb0f] | xmm0 = .comment; 0x00421a91 movups xmmword [rax + 0x28], xmm0 | __asm ("movups xmmword [rax + 0x28], xmm0"); 0x00421a95 mov ecx, 0x432d0b | 0x00421a9a mov rsi, r13 | 0x00421a9d mov rdx, rbp | 0x00421aa0 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"); 0x00421aa5 mov edx, 0x422cd0 | 0x00421aaa mov rdi, r12 | 0x00421aad mov rsi, r15 | 0x00421ab0 mov rcx, rbx | 0x00421ab3 call 0x423340 | eax = BloombergLP::bslmt::ThreadUtilImpl::create(unsigned long*,BloombergLP::bslmt::ThreadAttributesconst&,void*(*)(void*),void*) (r12, r15, sym.bslmt_EntryPointFunctorAdapter_invoker, rbx); 0x00421ab8 mov ebp, eax | 0x00421aba test eax, eax | | if (eax != 0) { 0x00421abc je 0x421ae7 | 0x00421abe cmp qword [rbx + 0x30], 0x17 | | if (*((rbx + 0x30)) != 0x17) { 0x00421ac3 je 0x421ad3 | 0x00421ac5 mov rsi, qword [rbx + 0x10] | rsi = *((rbx + 0x10)); 0x00421ac9 mov rdi, qword [rbx + 0x38] | rdi = *((rbx + 0x38)); 0x00421acd mov rax, qword [rdi] | rax = *(rdi); 0x00421ad0 call qword [rax + 0x18] | uint64_t (*rax + 0x18)() (); | } 0x00421ad3 mov qword [rbx + 0x28], 0xffffffffffffffff | *((rbx + 0x28)) = 0xffffffffffffffff; 0x00421adb mov rax, qword [r14] | rax = *(r14); 0x00421ade mov rdi, r14 | rdi = r14; 0x00421ae1 mov rsi, rbx | rsi = rbx; 0x00421ae4 call qword [rax + 0x18] | uint64_t (*rax + 0x18)() (); | } 0x00421ae7 mov eax, ebp | eax = ebp; 0x00421ae9 add rsp, 8 | 0x00421aed pop rbx | 0x00421aee pop r12 | 0x00421af0 pop r13 | 0x00421af2 pop r14 | 0x00421af4 pop r15 | 0x00421af6 pop rbp | 0x00421af7 ret | return rax; | }