; assembly | /* r2dec pseudo code output */ | /* bdlmt_timereventscheduler.t/none @ 0x4206a0 */ | #include | ; (fcn) method.int_BloombergLP::bslmt::ThreadUtil::createWithAllocator_BloombergLP::bdlf::Bind_BloombergLP::bslmf.Nil__void____BloombergLP::bslmt::Barrier__BloombergLP::bdlmt::TimerEventScheduler__BloombergLP::bslmt::TimedSemaphore___BloombergLP::bdlf::Bind_ () | uint64_t method_int_BloombergLP::bslmt::ThreadUtil::createWithAllocator_BloombergLP::bdlf::Bind_BloombergLP::bslmf_Nil_void_BloombergLP::bslmt::Barrier_BloombergLP::bdlmt::TimerEventScheduler_BloombergLP::bslmt::TimedSemaphore_BloombergLP::bdlf::Bind_ (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*, BloombergLP::bdlf::Bind > const&, BloombergLP::bslma::Allocator*) */ 0x004206a0 push rbp | 0x004206a1 push r15 | 0x004206a3 push r14 | 0x004206a5 push rbx | 0x004206a6 sub rsp, 0x48 | 0x004206aa mov r14, rdx | r14 = rdx; 0x004206ad mov rbp, rsi | 0x004206b0 mov r15, rdi | r15 = rdi; 0x004206b3 test rdx, rdx | | if (rdx == 0) { 0x004206b6 jne 0x4206cc | 0x004206b8 mov r14, qword [rip + 0x258369] | r14 = BloombergLP::bslma::Default::s_defaultAllocator; 0x004206bf test r14, r14 | | if (r14 != 0) { 0x004206c2 jne 0x4206cc | goto label_0; | } 0x004206c4 call 0x42a060 | rax = BloombergLP::bslma::Default::determineAndReturnDefaultAllocator() (); 0x004206c9 mov r14, rax | r14 = rax; | } | label_0: 0x004206cc mov rax, qword [r14] | rax = *(r14); 0x004206cf mov esi, 0x58 | esi = 0x58; 0x004206d4 mov rdi, r14 | rdi = r14; 0x004206d7 call qword [rax + 0x10] | rax = uint64_t (*rax + 0x10)() (); 0x004206da mov rbx, rax | rbx = rax; 0x004206dd mov qword [rax], 0x420840 | *(rax) = method.BloombergLP::bslmt::EntryPointFunctorAdapter_BloombergLP::bdlf::Bind_BloombergLP::bslmf.Nil__void____BloombergLP::bslmt::Barrier__BloombergLP::bdlmt::TimerEventScheduler__BloombergLP::bslmt::TimedSemaphore___BloombergLP::bdlf::Bind_BoundTuple3; 0x004206e4 mov rax, qword [rbp] | rax = *(rbp); 0x004206e8 mov qword [rbx + 8], rax | *((rbx + 8)) = rax; 0x004206ec mov rax, qword [rbp + 8] | rax = *((rbp + 8)); 0x004206f0 mov qword [rbx + 0x10], rax | *((rbx + 0x10)) = rax; 0x004206f4 mov rax, qword [rbp + 0x10] | rax = *((rbp + 0x10)); 0x004206f8 mov qword [rbx + 0x18], rax | *((rbx + 0x18)) = rax; 0x004206fc mov rax, qword [rbp + 0x18] | rax = *((rbp + 0x18)); 0x00420700 mov qword [rbx + 0x20], rax | *((rbx + 0x20)) = rax; 0x00420704 lea rdi, [rbx + 0x28] | 0x00420708 mov qword [rbx + 0x28], 0 | *((rbx + 0x28)) = 0; 0x00420710 mov qword [rbx + 0x50], r14 | *((rbx + 0x50)) = r14; 0x00420714 movaps xmm0, xmmword [rip + 0x32cd5] | xmm0 = .comment; 0x0042071b movups xmmword [rbx + 0x40], xmm0 | __asm ("movups xmmword [rbx + 0x40], xmm0"); 0x0042071f mov ecx, 0x4556a7 | 0x00420724 xor esi, esi | 0x00420726 xor edx, edx | 0x00420728 call 0x42efa0 | bsl::basic_string,bsl::allocator>::privateAppend(char const*,unsigned long,char const*) (rbx + 0x28, 0, 0, "string<...>::assign(i,j): string too long"); 0x0042072d mov rdi, rsp | 0x00420730 call 0x42b720 | BloombergLP::bslmt::ThreadAttributes::ThreadAttributes() (rsp); 0x00420735 mov rsi, rsp | 0x00420738 mov edx, 0x42b210 | 0x0042073d mov rdi, r15 | 0x00420740 mov rcx, rbx | 0x00420743 call 0x42bf20 | eax = BloombergLP::bslmt::ThreadUtilImpl::create(unsigned long*,BloombergLP::bslmt::ThreadAttributesconst&,void*(*)(void*),void*) (r15, rsp, sym.bslmt_EntryPointFunctorAdapter_invoker, rbx); 0x00420748 mov ebp, eax | 0x0042074a cmp qword [rsp + 0x38], 0x17 | | if (*((rsp + 0x38)) != 0x17) { 0x00420750 je 0x420762 | 0x00420752 mov rsi, qword [rsp + 0x18] | rsi = *((rsp + 0x18)); 0x00420757 mov rdi, qword [rsp + 0x40] | rdi = *((rsp + 0x40)); 0x0042075c mov rax, qword [rdi] | rax = *(rdi); 0x0042075f call qword [rax + 0x18] | uint64_t (*rax + 0x18)() (); | } 0x00420762 test ebp, ebp | | if (ebp != 0) { 0x00420764 je 0x42078f | 0x00420766 cmp qword [rbx + 0x48], 0x17 | | if (*((rbx + 0x48)) != 0x17) { 0x0042076b je 0x42077b | 0x0042076d mov rsi, qword [rbx + 0x28] | rsi = *((rbx + 0x28)); 0x00420771 mov rdi, qword [rbx + 0x50] | rdi = *((rbx + 0x50)); 0x00420775 mov rax, qword [rdi] | rax = *(rdi); 0x00420778 call qword [rax + 0x18] | uint64_t (*rax + 0x18)() (); | } 0x0042077b mov qword [rbx + 0x40], 0xffffffffffffffff | *((rbx + 0x40)) = 0xffffffffffffffff; 0x00420783 mov rax, qword [r14] | rax = *(r14); 0x00420786 mov rdi, r14 | rdi = r14; 0x00420789 mov rsi, rbx | rsi = rbx; 0x0042078c call qword [rax + 0x18] | uint64_t (*rax + 0x18)() (); | } 0x0042078f mov eax, ebp | eax = ebp; 0x00420791 add rsp, 0x48 | 0x00420795 pop rbx | 0x00420796 pop r14 | 0x00420798 pop r15 | 0x0042079a pop rbp | 0x0042079b ret | return rax; | }