; ; cocos2d::CCDirector::calculateDeltaTime from 0x1800c1840 to 0x1800c18e7 (167 bytes) ; ; 2 xrefs: ; > @ 0x18014cf68 ; > @ 0x1801c3408 ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:22:25 +0000 ; push rdi ; +0x0, 0x1800c1840 sub rsp, 20h ; +0x2, 0x1800c1842 mov rdi, rcx ; +0x6, 0x1800c1846 xor edx, edx; void * ; +0x9, 0x1800c1849 lea rcx, [rsp+28h+arg_8]; struct cocos2d::cc_timeval * ; +0xb, 0x1800c184b call ?gettimeofdayCocos2d@CCTime@cocos2d@@SAHPEAUcc_timeval@2@PEAX@Z; cocos2d::CCTime::gettimeofdayCocos2d(cocos2d::cc_timeval *,void *) ; +0x10, 0x1800c1850 test eax, eax ; +0x15, 0x1800c1855 jz short loc_1800C1868 ; +0x17, 0x1800c1857 xor eax, eax ; +0x19, 0x1800c1859 mov [rdi+0A8h], rax ; +0x1b, 0x1800c185b add rsp, 20h ; +0x22, 0x1800c1862 pop rdi ; +0x26, 0x1800c1866 retn ; +0x27, 0x1800c1867 cmp byte ptr [rdi+138h], 0 ; +0x28, 0x1800c1868 mov [rsp+28h+arg_0], rbx ; +0x2f, 0x1800c186f mov rbx, [rsp+28h+arg_8] ; +0x34, 0x1800c1874 jz short loc_1800C1887 ; +0x39, 0x1800c1879 mov byte ptr [rdi+138h], 0 ; +0x3b, 0x1800c187b xorps xmm0, xmm0 ; +0x42, 0x1800c1882 jmp short loc_1800C18BA ; +0x45, 0x1800c1885 mov rcx, [rdi+130h] ; +0x47, 0x1800c1887 mov eax, dword ptr [rsp+28h+arg_8+4] ; +0x4e, 0x1800c188e sub eax, [rcx+4] ; +0x52, 0x1800c1892 movd xmm1, eax ; +0x55, 0x1800c1895 mov eax, ebx ; +0x59, 0x1800c1899 sub eax, [rcx] ; +0x5b, 0x1800c189b cvtdq2ps xmm1, xmm1 ; +0x5d, 0x1800c189d movd xmm0, eax ; +0x60, 0x1800c18a0 divss xmm1, cs:dword_18010DCF8 ; +0x64, 0x1800c18a4 cvtdq2ps xmm0, xmm0 ; +0x6c, 0x1800c18ac addss xmm1, xmm0 ; +0x6f, 0x1800c18af xorps xmm0, xmm0 ; +0x73, 0x1800c18b3 maxss xmm0, xmm1 ; +0x76, 0x1800c18b6 movss dword ptr [rdi+0A8h], xmm0 ; +0x7a, 0x1800c18ba mov rcx, rdi; this ; +0x82, 0x1800c18c2 movss dword ptr [rdi+0ACh], xmm0 ; +0x85, 0x1800c18c5 call ?applySmoothFix@CCDirector@cocos2d@@QEAAXXZ; cocos2d::CCDirector::applySmoothFix(void) ; +0x8d, 0x1800c18cd mov rax, [rdi+130h] ; +0x92, 0x1800c18d2 mov [rax], rbx ; +0x99, 0x1800c18d9 mov rbx, [rsp+28h+arg_0] ; +0x9c, 0x1800c18dc add rsp, 20h ; +0xa1, 0x1800c18e1 pop rdi ; +0xa5, 0x1800c18e5 retn ; +0xa6, 0x1800c18e6