; ; cocos2d::CCDirector::drawScene from 0x1800be3d0 to 0x1800be4e5 (277 bytes) ; ; 3 xrefs: ; > cocos2d::CCDisplayLinkDirector::mainLoop @ 0x1800beb06 ; > @ 0x1801438a8 ; > @ 0x1801b918c ; ; 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 rbx ; +0x0, 0x1800be3d0 sub rsp, 20h ; +0x2, 0x1800be3d2 cmp byte ptr [rcx+0F8h], 0 ; +0x6, 0x1800be3d6 mov rbx, rcx ; +0xd, 0x1800be3dd jnz short loc_1800BE3F4 ; +0x10, 0x1800be3e0 mov rcx, [rcx+68h] ; +0x12, 0x1800be3e2 movss xmm1, dword ptr [rbx+0A0h] ; +0x16, 0x1800be3e6 mov rax, [rcx] ; +0x1e, 0x1800be3ee call qword ptr [rax+20h] ; +0x21, 0x1800be3f1 mov rcx, [rbx+0B8h] ; +0x24, 0x1800be3f4 test rcx, rcx ; +0x2b, 0x1800be3fb jz short loc_1800BE409 ; +0x2e, 0x1800be3fe mov rax, [rcx] ; +0x30, 0x1800be400 call qword ptr [rax+0A8h] ; +0x33, 0x1800be403 mov ecx, 4100h; mask ; +0x39, 0x1800be409 call cs:glClear ; +0x3e, 0x1800be40e cmp qword ptr [rbx+110h], 0 ; +0x44, 0x1800be414 jz short loc_1800BE426 ; +0x4c, 0x1800be41c mov rcx, rbx; this ; +0x4e, 0x1800be41e call ?setNextScene@CCDirector@cocos2d@@IEAAXXZ; cocos2d::CCDirector::setNextScene(void) ; +0x51, 0x1800be421 call kmGLPushMatrix ; +0x56, 0x1800be426 mov rcx, [rbx+108h] ; +0x5b, 0x1800be42b test rcx, rcx ; +0x62, 0x1800be432 jz short loc_1800BE440 ; +0x65, 0x1800be435 mov rax, [rcx] ; +0x67, 0x1800be437 call qword ptr [rax+2D8h] ; +0x6a, 0x1800be43a mov rcx, [rbx+150h] ; +0x70, 0x1800be440 test rcx, rcx ; +0x77, 0x1800be447 jz short loc_1800BE455 ; +0x7a, 0x1800be44a mov rax, [rcx] ; +0x7c, 0x1800be44c call qword ptr [rax+2D8h] ; +0x7f, 0x1800be44f cmp byte ptr [rbx+0D1h], 0 ; +0x85, 0x1800be455 jz short loc_1800BE466 ; +0x8c, 0x1800be45c mov rcx, rbx; this ; +0x8e, 0x1800be45e call ?showStats@CCDirector@cocos2d@@IEAAXXZ; cocos2d::CCDirector::showStats(void) ; +0x91, 0x1800be461 cmp byte ptr [rbx+168h], 0 ; +0x96, 0x1800be466 jz short loc_1800BE477 ; +0x9d, 0x1800be46d mov rcx, rbx; this ; +0x9f, 0x1800be46f call ?showFPSLabel@CCDirector@cocos2d@@QEAAXXZ; cocos2d::CCDirector::showFPSLabel(void) ; +0xa2, 0x1800be472 call kmGLPopMatrix ; +0xa7, 0x1800be477 mov rcx, [rbx+0B8h] ; +0xac, 0x1800be47c inc dword ptr [rbx+0FCh] ; +0xb3, 0x1800be483 test rcx, rcx ; +0xb9, 0x1800be489 jz short loc_1800BE494 ; +0xbc, 0x1800be48c mov rax, [rcx] ; +0xbe, 0x1800be48e call qword ptr [rax+18h] ; +0xc1, 0x1800be491 cmp byte ptr [rbx+0D1h], 0 ; +0xc4, 0x1800be494 jz short loc_1800BE4DF ; +0xcb, 0x1800be49b xor edx, edx; void * ; +0xcd, 0x1800be49d lea rcx, [rsp+28h+arg_0]; struct cocos2d::cc_timeval * ; +0xcf, 0x1800be49f call ?gettimeofdayCocos2d@CCTime@cocos2d@@SAHPEAUcc_timeval@2@PEAX@Z; cocos2d::CCTime::gettimeofdayCocos2d(cocos2d::cc_timeval *,void *) ; +0xd4, 0x1800be4a4 mov rcx, [rbx+128h] ; +0xd9, 0x1800be4a9 mov eax, [rsp+28h+arg_4] ; +0xe0, 0x1800be4b0 sub eax, [rcx+4] ; +0xe4, 0x1800be4b4 movd xmm1, eax ; +0xe7, 0x1800be4b7 mov eax, [rsp+28h+arg_0] ; +0xeb, 0x1800be4bb sub eax, [rcx] ; +0xef, 0x1800be4bf cvtdq2ps xmm1, xmm1 ; +0xf1, 0x1800be4c1 movd xmm0, eax ; +0xf4, 0x1800be4c4 divss xmm1, cs:dword_1801075A4 ; +0xf8, 0x1800be4c8 cvtdq2ps xmm0, xmm0 ; +0x100, 0x1800be4d0 addss xmm1, xmm0 ; +0x103, 0x1800be4d3 movss dword ptr [rbx+104h], xmm1 ; +0x107, 0x1800be4d7 add rsp, 20h ; +0x10f, 0x1800be4df pop rbx ; +0x113, 0x1800be4e3 retn ; +0x114, 0x1800be4e4