; ; cocos2d::CCDirector::calculateDeltaTime from 0x1800be020 to 0x1800be0c7 (167 bytes) ; ; 2 xrefs: ; > @ 0x1801438a8 ; > @ 0x1801b9150 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; push rdi ; +0x0, 0x1800be020 sub rsp, 20h ; +0x2, 0x1800be022 mov rdi, rcx ; +0x6, 0x1800be026 xor edx, edx; void * ; +0x9, 0x1800be029 lea rcx, [rsp+28h+arg_8]; struct cocos2d::cc_timeval * ; +0xb, 0x1800be02b call ?gettimeofdayCocos2d@CCTime@cocos2d@@SAHPEAUcc_timeval@2@PEAX@Z; cocos2d::CCTime::gettimeofdayCocos2d(cocos2d::cc_timeval *,void *) ; +0x10, 0x1800be030 test eax, eax ; +0x15, 0x1800be035 jz short loc_1800BE048 ; +0x17, 0x1800be037 xor eax, eax ; +0x19, 0x1800be039 mov [rdi+0A0h], rax ; +0x1b, 0x1800be03b add rsp, 20h ; +0x22, 0x1800be042 pop rdi ; +0x26, 0x1800be046 retn ; +0x27, 0x1800be047 cmp byte ptr [rdi+130h], 0 ; +0x28, 0x1800be048 mov [rsp+28h+arg_0], rbx ; +0x2f, 0x1800be04f mov rbx, [rsp+28h+arg_8] ; +0x34, 0x1800be054 jz short loc_1800BE067 ; +0x39, 0x1800be059 mov byte ptr [rdi+130h], 0 ; +0x3b, 0x1800be05b xorps xmm0, xmm0 ; +0x42, 0x1800be062 jmp short loc_1800BE09A ; +0x45, 0x1800be065 mov rcx, [rdi+128h] ; +0x47, 0x1800be067 mov eax, dword ptr [rsp+28h+arg_8+4] ; +0x4e, 0x1800be06e sub eax, [rcx+4] ; +0x52, 0x1800be072 movd xmm1, eax ; +0x55, 0x1800be075 mov eax, ebx ; +0x59, 0x1800be079 sub eax, [rcx] ; +0x5b, 0x1800be07b cvtdq2ps xmm1, xmm1 ; +0x5d, 0x1800be07d movd xmm0, eax ; +0x60, 0x1800be080 divss xmm1, cs:dword_1801075A4 ; +0x64, 0x1800be084 cvtdq2ps xmm0, xmm0 ; +0x6c, 0x1800be08c addss xmm1, xmm0 ; +0x6f, 0x1800be08f xorps xmm0, xmm0 ; +0x73, 0x1800be093 maxss xmm0, xmm1 ; +0x76, 0x1800be096 movss dword ptr [rdi+0A0h], xmm0 ; +0x7a, 0x1800be09a mov rcx, rdi; this ; +0x82, 0x1800be0a2 movss dword ptr [rdi+0A4h], xmm0 ; +0x85, 0x1800be0a5 call ?applySmoothFix@CCDirector@cocos2d@@QEAAXXZ; cocos2d::CCDirector::applySmoothFix(void) ; +0x8d, 0x1800be0ad mov rax, [rdi+128h] ; +0x92, 0x1800be0b2 mov [rax], rbx ; +0x99, 0x1800be0b9 mov rbx, [rsp+28h+arg_0] ; +0x9c, 0x1800be0bc add rsp, 20h ; +0xa1, 0x1800be0c1 pop rdi ; +0xa5, 0x1800be0c5 retn ; +0xa6, 0x1800be0c6