; assembly | /* r2dec pseudo code output */ | /* bslmt_latch.t/none @ 0x409800 */ | #include | ; (fcn) method.int_BloombergLP::bslmt::ChronoUtil::timedWait_BloombergLP::bslmt::Latch__AnotherClock__std::__1::chrono::duration_long_long__std::__1.ratio_1l__1000000000l______BloombergLP::bslmt::Latch__std::__1::chrono::time_point_AnotherClock__std::__1::chron () | uint64_t method_int_BloombergLP::bslmt::ChronoUtil::timedWait_BloombergLP::bslmt::Latch_AnotherClock_std::_1::chrono::duration_long_long_std::_1_ratio_1l_1000000000l_BloombergLP::bslmt::Latch_std::_1::chrono::time_point_AnotherClock_std::_1::chron (uint32_t arg2, int64_t arg1) { | int64_t var_8h; | int64_t var_10h; | rsi = arg2; | rdi = arg1; | /* int BloombergLP::bslmt::ChronoUtil::timedWait > >(BloombergLP::bslmt::Latch*, std::__1::chrono::time_point > > const&) */ 0x00409800 push rbp | 0x00409801 push r15 | 0x00409803 push r14 | 0x00409805 push r13 | 0x00409807 push r12 | 0x00409809 push rbx | 0x0040980a sub rsp, 0x28 | 0x0040980e mov rbx, rsi | rbx = rsi; 0x00409811 mov r13, rdi | r13 = rdi; 0x00409814 call 0x403d30 | rax = std::_1::chrono::steady_clock::now() (); 0x00409819 mov rbp, rax | 0x0040981c add rbp, 0xffffffffffffd8f0 | rbp += 0xffffffffffffd8f0; 0x00409823 mov eax, 0xffffffff | eax = 0xffffffff; 0x00409828 cmp rbp, qword [rbx] | | if (rbp >= *(rbx)) { 0x0040982b jge 0x4098f0 | void (*0x4098f0)() (); | } 0x00409831 movabs r14, 0x112e0be826d694b3 | r14 = 0x112e0be826d694b3; 0x0040983b mov r15, rsp | r15 = rsp; 0x0040983e lea r12, [rsp + 0x10] | r12 = rsp + 0x10; 0x00409843 nop word cs:[rax + rax] | 0x0040984d nop dword [rax] | | label_0: 0x00409850 mov eax, dword [r13 + 0x58] | eax = *((r13 + 0x58)); 0x00409854 test eax, eax | | if (eax != 0) { 0x00409856 je 0x409870 | 0x00409858 cmp eax, 1 | | if (eax != 1) { 0x0040985b jne 0x409880 | goto label_1; | } 0x0040985d call 0x431140 | BloombergLP::bsls::SystemTime::nowMonotonicClock() (); 0x00409862 jmp 0x409875 | | } else { 0x00409870 call 0x4311d0 | eax = BloombergLP::bsls::SystemTime::nowRealtimeClock() (); | } 0x00409875 jmp 0x409884 | goto label_2; | label_1: 0x00409880 xor edx, edx | edx = 0; 0x00409882 xor eax, eax | eax = 0; | label_2: 0x00409884 mov qword [rsp], rax | *(rsp) = rax; 0x00409888 mov dword [rsp + 8], edx | *((rsp + 8)) = edx; 0x0040988c mov rcx, qword [rbx] | rcx = *(rbx); 0x0040988f sub rcx, rbp | rcx -= rbp; 0x00409892 mov rax, rcx | rax = rcx; 0x00409895 imul r14 | rdx:rax = rax * r14; 0x00409898 mov rax, rdx | rax = rdx; 0x0040989b shr rax, 0x3f | rax >>= 0x3f; 0x0040989f sar rdx, 0x1a | rdx >>= 0x1a; 0x004098a3 add rdx, rax | rdx += rax; 0x004098a6 imul eax, edx, 0xc4653600 | eax = edx * 0xc4653600; 0x004098ac add ecx, eax | ecx += eax; 0x004098ae mov rdi, r15 | 0x004098b1 mov rsi, rdx | 0x004098b4 mov edx, ecx | 0x004098b6 call 0x4312f0 | rax = BloombergLP::bsls::TimeInterval::addInterval(long long,int) (r15, rdx, ecx); 0x004098bb movups xmm0, xmmword [rax] | __asm ("movups xmm0, xmmword [rax]"); 0x004098be movaps xmmword [rsp + 0x10], xmm0 | *((rsp + 0x10)) = xmm0; 0x004098c3 mov rdi, r13 | 0x004098c6 mov rsi, r12 | 0x004098c9 call 0x409d30 | eax = BloombergLP::bslmt::Latch::timedWait(BloombergLP::bsls::TimeIntervalconst&) (r13, r12); 0x004098ce cmp eax, 0xffffffff | | if (eax != 0xffffffff) { 0x004098d1 jne 0x4098f0 | void (*0x4098f0)() (); | } 0x004098d3 call 0x403d30 | rax = std::_1::chrono::steady_clock::now() (); 0x004098d8 mov rbp, rax | 0x004098db add rbp, 0xffffffffffffd8f0 | rbp += 0xffffffffffffd8f0; 0x004098e2 cmp rbp, qword [rbx] | | if (rbp < *(rbx)) { 0x004098e5 jl 0x409850 | goto label_0; | } | }