; ; cocos2d::CCDirector::drawScene from 0x1800c1bf0 to 0x1800c1d05 (277 bytes) ; ; 3 xrefs: ; > cocos2d::CCDisplayLinkDirector::mainLoop @ 0x1800c22e6 ; > @ 0x18014cf68 ; > @ 0x1801c3444 ; ; 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 rbx ; +0x0, 0x1800c1bf0 sub rsp, 20h ; +0x2, 0x1800c1bf2 cmp byte ptr [rcx+100h], 0 ; +0x6, 0x1800c1bf6 mov rbx, rcx ; +0xd, 0x1800c1bfd jnz short loc_1800C1C14 ; +0x10, 0x1800c1c00 mov rcx, [rcx+68h] ; +0x12, 0x1800c1c02 movss xmm1, dword ptr [rbx+0A8h] ; +0x16, 0x1800c1c06 mov rax, [rcx] ; +0x1e, 0x1800c1c0e call qword ptr [rax+20h] ; +0x21, 0x1800c1c11 mov rcx, [rbx+0C0h] ; +0x24, 0x1800c1c14 test rcx, rcx ; +0x2b, 0x1800c1c1b jz short loc_1800C1C29 ; +0x2e, 0x1800c1c1e mov rax, [rcx] ; +0x30, 0x1800c1c20 call qword ptr [rax+0A8h] ; +0x33, 0x1800c1c23 mov ecx, 4100h; mask ; +0x39, 0x1800c1c29 call cs:glClear ; +0x3e, 0x1800c1c2e cmp qword ptr [rbx+118h], 0 ; +0x44, 0x1800c1c34 jz short loc_1800C1C46 ; +0x4c, 0x1800c1c3c mov rcx, rbx; this ; +0x4e, 0x1800c1c3e call ?setNextScene@CCDirector@cocos2d@@IEAAXXZ; cocos2d::CCDirector::setNextScene(void) ; +0x51, 0x1800c1c41 call kmGLPushMatrix ; +0x56, 0x1800c1c46 mov rcx, [rbx+110h] ; +0x5b, 0x1800c1c4b test rcx, rcx ; +0x62, 0x1800c1c52 jz short loc_1800C1C60 ; +0x65, 0x1800c1c55 mov rax, [rcx] ; +0x67, 0x1800c1c57 call qword ptr [rax+2E8h] ; +0x6a, 0x1800c1c5a mov rcx, [rbx+158h] ; +0x70, 0x1800c1c60 test rcx, rcx ; +0x77, 0x1800c1c67 jz short loc_1800C1C75 ; +0x7a, 0x1800c1c6a mov rax, [rcx] ; +0x7c, 0x1800c1c6c call qword ptr [rax+2E8h] ; +0x7f, 0x1800c1c6f cmp byte ptr [rbx+0D9h], 0 ; +0x85, 0x1800c1c75 jz short loc_1800C1C86 ; +0x8c, 0x1800c1c7c mov rcx, rbx; this ; +0x8e, 0x1800c1c7e call ?showStats@CCDirector@cocos2d@@IEAAXXZ; cocos2d::CCDirector::showStats(void) ; +0x91, 0x1800c1c81 cmp byte ptr [rbx+170h], 0 ; +0x96, 0x1800c1c86 jz short loc_1800C1C97 ; +0x9d, 0x1800c1c8d mov rcx, rbx; this ; +0x9f, 0x1800c1c8f call ?showFPSLabel@CCDirector@cocos2d@@QEAAXXZ; cocos2d::CCDirector::showFPSLabel(void) ; +0xa2, 0x1800c1c92 call kmGLPopMatrix ; +0xa7, 0x1800c1c97 mov rcx, [rbx+0C0h] ; +0xac, 0x1800c1c9c inc dword ptr [rbx+104h] ; +0xb3, 0x1800c1ca3 test rcx, rcx ; +0xb9, 0x1800c1ca9 jz short loc_1800C1CB4 ; +0xbc, 0x1800c1cac mov rax, [rcx] ; +0xbe, 0x1800c1cae call qword ptr [rax+18h] ; +0xc1, 0x1800c1cb1 cmp byte ptr [rbx+0D9h], 0 ; +0xc4, 0x1800c1cb4 jz short loc_1800C1CFF ; +0xcb, 0x1800c1cbb xor edx, edx; void * ; +0xcd, 0x1800c1cbd lea rcx, [rsp+28h+arg_0]; struct cocos2d::cc_timeval * ; +0xcf, 0x1800c1cbf call ?gettimeofdayCocos2d@CCTime@cocos2d@@SAHPEAUcc_timeval@2@PEAX@Z; cocos2d::CCTime::gettimeofdayCocos2d(cocos2d::cc_timeval *,void *) ; +0xd4, 0x1800c1cc4 mov rcx, [rbx+130h] ; +0xd9, 0x1800c1cc9 mov eax, [rsp+28h+arg_4] ; +0xe0, 0x1800c1cd0 sub eax, [rcx+4] ; +0xe4, 0x1800c1cd4 movd xmm1, eax ; +0xe7, 0x1800c1cd7 mov eax, [rsp+28h+arg_0] ; +0xeb, 0x1800c1cdb sub eax, [rcx] ; +0xef, 0x1800c1cdf cvtdq2ps xmm1, xmm1 ; +0xf1, 0x1800c1ce1 movd xmm0, eax ; +0xf4, 0x1800c1ce4 divss xmm1, cs:dword_18010DCF8 ; +0xf8, 0x1800c1ce8 cvtdq2ps xmm0, xmm0 ; +0x100, 0x1800c1cf0 addss xmm1, xmm0 ; +0x103, 0x1800c1cf3 movss dword ptr [rbx+10Ch], xmm1 ; +0x107, 0x1800c1cf7 add rsp, 20h ; +0x10f, 0x1800c1cff pop rbx ; +0x113, 0x1800c1d03 retn ; +0x114, 0x1800c1d04