{"type": "func", "start": 6443244528, "end": 6443244805, "name": "cocos2d::CCDirector::drawScene", "pseudocode": "// \n// cocos2d::CCDirector::drawScene from 0x1800c1bf0 to 0x1800c1d05 (277 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCDisplayLinkDirector::mainLoop @ 0x1800c22e6\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c3444\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:22:25 +0000\n// \n\nvoid __fastcall cocos2d::CCDirector::drawScene(cocos2d::CCDirector *this)\n{\n  __int64 v2; // rcx\n  __int64 v3; // rcx\n  __int64 v4; // rcx\n  struct cocos2d::timezone *v5; // r8\n  __int64 v6; // rcx\n  int v7; // [rsp+30h] [rbp+8h] BYREF\n  int v8; // [rsp+34h] [rbp+Ch]\n\n  if ( !*((_BYTE *)this + 256) )\n    (*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 13) + 32LL))(*((_QWORD *)this + 13));\n  v2 = *((_QWORD *)this + 24);\n  if ( v2 )\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 168LL))(v2);\n  glClear(0x4100u);\n  if ( *((_QWORD *)this + 35) )\n    cocos2d::CCDirector::setNextScene(this);\n  kmGLPushMatrix();\n  v3 = *((_QWORD *)this + 34);\n  if ( v3 )\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 744LL))(v3);\n  v4 = *((_QWORD *)this + 43);\n  if ( v4 )\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 744LL))(v4);\n  if ( *((_BYTE *)this + 217) )\n    cocos2d::CCDirector::showStats(this);\n  if ( *((_BYTE *)this + 368) )\n    cocos2d::CCDirector::showFPSLabel(this);\n  kmGLPopMatrix();\n  v6 = *((_QWORD *)this + 24);\n  ++*((_DWORD *)this + 65);\n  if ( v6 )\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 24LL))(v6);\n  if ( *((_BYTE *)this + 217) )\n  {\n    cocos2d::CCTime::gettimeofdayCocos2d((struct cocos2d::cc_timeval *)&v7, nullptr, v5);\n    *((float *)this + 67) = (float)((float)(v8 - *(_DWORD *)(*((_QWORD *)this + 38) + 4LL)) / 1000000.0)\n                          + (float)(v7 - **((_DWORD **)this + 38));\n  }\n}", "assembly": "; \n; cocos2d::CCDirector::drawScene from 0x1800c1bf0 to 0x1800c1d05 (277 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCDisplayLinkDirector::mainLoop @ 0x1800c22e6\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c3444\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:22:25 +0000\n; \npush    rbx                                                            ; +0x0, 0x1800c1bf0\nsub     rsp, 20h                                                       ; +0x2, 0x1800c1bf2\ncmp     byte ptr [rcx+100h], 0                                         ; +0x6, 0x1800c1bf6\nmov     rbx, rcx                                                       ; +0xd, 0x1800c1bfd\njnz     short loc_1800C1C14                                            ; +0x10, 0x1800c1c00\nmov     rcx, [rcx+68h]                                                 ; +0x12, 0x1800c1c02\nmovss   xmm1, dword ptr [rbx+0A8h]                                     ; +0x16, 0x1800c1c06\nmov     rax, [rcx]                                                     ; +0x1e, 0x1800c1c0e\ncall    qword ptr [rax+20h]                                            ; +0x21, 0x1800c1c11\nmov     rcx, [rbx+0C0h]                                                ; +0x24, 0x1800c1c14\ntest    rcx, rcx                                                       ; +0x2b, 0x1800c1c1b\njz      short loc_1800C1C29                                            ; +0x2e, 0x1800c1c1e\nmov     rax, [rcx]                                                     ; +0x30, 0x1800c1c20\ncall    qword ptr [rax+0A8h]                                           ; +0x33, 0x1800c1c23\nmov     ecx, 4100h; mask                                               ; +0x39, 0x1800c1c29\ncall    cs:glClear                                                     ; +0x3e, 0x1800c1c2e\ncmp     qword ptr [rbx+118h], 0                                        ; +0x44, 0x1800c1c34\njz      short loc_1800C1C46                                            ; +0x4c, 0x1800c1c3c\nmov     rcx, rbx; this                                                 ; +0x4e, 0x1800c1c3e\ncall    ?setNextScene@CCDirector@cocos2d@@IEAAXXZ; cocos2d::CCDirector::setNextScene(void) ; +0x51, 0x1800c1c41\ncall    kmGLPushMatrix                                                 ; +0x56, 0x1800c1c46\nmov     rcx, [rbx+110h]                                                ; +0x5b, 0x1800c1c4b\ntest    rcx, rcx                                                       ; +0x62, 0x1800c1c52\njz      short loc_1800C1C60                                            ; +0x65, 0x1800c1c55\nmov     rax, [rcx]                                                     ; +0x67, 0x1800c1c57\ncall    qword ptr [rax+2E8h]                                           ; +0x6a, 0x1800c1c5a\nmov     rcx, [rbx+158h]                                                ; +0x70, 0x1800c1c60\ntest    rcx, rcx                                                       ; +0x77, 0x1800c1c67\njz      short loc_1800C1C75                                            ; +0x7a, 0x1800c1c6a\nmov     rax, [rcx]                                                     ; +0x7c, 0x1800c1c6c\ncall    qword ptr [rax+2E8h]                                           ; +0x7f, 0x1800c1c6f\ncmp     byte ptr [rbx+0D9h], 0                                         ; +0x85, 0x1800c1c75\njz      short loc_1800C1C86                                            ; +0x8c, 0x1800c1c7c\nmov     rcx, rbx; this                                                 ; +0x8e, 0x1800c1c7e\ncall    ?showStats@CCDirector@cocos2d@@IEAAXXZ; cocos2d::CCDirector::showStats(void) ; +0x91, 0x1800c1c81\ncmp     byte ptr [rbx+170h], 0                                         ; +0x96, 0x1800c1c86\njz      short loc_1800C1C97                                            ; +0x9d, 0x1800c1c8d\nmov     rcx, rbx; this                                                 ; +0x9f, 0x1800c1c8f\ncall    ?showFPSLabel@CCDirector@cocos2d@@QEAAXXZ; cocos2d::CCDirector::showFPSLabel(void) ; +0xa2, 0x1800c1c92\ncall    kmGLPopMatrix                                                  ; +0xa7, 0x1800c1c97\nmov     rcx, [rbx+0C0h]                                                ; +0xac, 0x1800c1c9c\ninc     dword ptr [rbx+104h]                                           ; +0xb3, 0x1800c1ca3\ntest    rcx, rcx                                                       ; +0xb9, 0x1800c1ca9\njz      short loc_1800C1CB4                                            ; +0xbc, 0x1800c1cac\nmov     rax, [rcx]                                                     ; +0xbe, 0x1800c1cae\ncall    qword ptr [rax+18h]                                            ; +0xc1, 0x1800c1cb1\ncmp     byte ptr [rbx+0D9h], 0                                         ; +0xc4, 0x1800c1cb4\njz      short loc_1800C1CFF                                            ; +0xcb, 0x1800c1cbb\nxor     edx, edx; void *                                               ; +0xcd, 0x1800c1cbd\nlea     rcx, [rsp+28h+arg_0]; struct cocos2d::cc_timeval *             ; +0xcf, 0x1800c1cbf\ncall    ?gettimeofdayCocos2d@CCTime@cocos2d@@SAHPEAUcc_timeval@2@PEAX@Z; cocos2d::CCTime::gettimeofdayCocos2d(cocos2d::cc_timeval *,void *) ; +0xd4, 0x1800c1cc4\nmov     rcx, [rbx+130h]                                                ; +0xd9, 0x1800c1cc9\nmov     eax, [rsp+28h+arg_4]                                           ; +0xe0, 0x1800c1cd0\nsub     eax, [rcx+4]                                                   ; +0xe4, 0x1800c1cd4\nmovd    xmm1, eax                                                      ; +0xe7, 0x1800c1cd7\nmov     eax, [rsp+28h+arg_0]                                           ; +0xeb, 0x1800c1cdb\nsub     eax, [rcx]                                                     ; +0xef, 0x1800c1cdf\ncvtdq2ps xmm1, xmm1                                                    ; +0xf1, 0x1800c1ce1\nmovd    xmm0, eax                                                      ; +0xf4, 0x1800c1ce4\ndivss   xmm1, cs:dword_18010DCF8                                       ; +0xf8, 0x1800c1ce8\ncvtdq2ps xmm0, xmm0                                                    ; +0x100, 0x1800c1cf0\naddss   xmm1, xmm0                                                     ; +0x103, 0x1800c1cf3\nmovss   dword ptr [rbx+10Ch], xmm1                                     ; +0x107, 0x1800c1cf7\nadd     rsp, 20h                                                       ; +0x10f, 0x1800c1cff\npop     rbx                                                            ; +0x113, 0x1800c1d03\nretn                                                                   ; +0x114, 0x1800c1d04", "xrefs": ["cocos2d::CCDisplayLinkDirector::mainLoop @ 0x1800c22e6", "<???> @ 0x18014cf68", "<???> @ 0x1801c3444"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}