{"type": "func", "start": 6443251360, "end": 6443251515, "name": "cocos2d::CCDirector::showStats", "pseudocode": "// \n// cocos2d::CCDirector::showStats from 0x1800c36a0 to 0x1800c373b (155 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCDirector::drawScene @ 0x1800c1c81\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c36b4\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:26 +0000\n// \n\nvoid __fastcall cocos2d::CCDirector::showStats(cocos2d::CCDirector *this)\n{\n  bool v1; // zf\n  float v3; // xmm0_4\n\n  v1 = *((_BYTE *)this + 217) == 0;\n  v3 = *((float *)this + 42) + *((float *)this + 56);\n  *((float *)this + 56) = v3;\n  if ( !v1 && *((_QWORD *)this + 31) )\n  {\n    if ( v3 > 0.5 )\n    {\n      *((_DWORD *)this + 56) = 0;\n      sub_1800095F0(*((char **)this + 42), \"%4lu\", g_uNumberOfDraws);\n      (**(void (__fastcall ***)(__int64, _QWORD))(*((_QWORD *)this + 31) + 408LL))(\n        *((_QWORD *)this + 31) + 408LL,\n        *((_QWORD *)this + 42));\n    }\n    (*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 31) + 744LL))(*((_QWORD *)this + 31));\n  }\n  g_uNumberOfDraws = 0;\n}", "assembly": "; \n; cocos2d::CCDirector::showStats from 0x1800c36a0 to 0x1800c373b (155 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCDirector::drawScene @ 0x1800c1c81\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c36b4\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:26 +0000\n; \npush    rdi                                                            ; +0x0, 0x1800c36a0\nsub     rsp, 20h                                                       ; +0x2, 0x1800c36a2\ncmp     byte ptr [rcx+0D9h], 0                                         ; +0x6, 0x1800c36a6\nmov     rdi, rcx                                                       ; +0xd, 0x1800c36ad\nmovss   xmm0, dword ptr [rcx+0A8h]                                     ; +0x10, 0x1800c36b0\naddss   xmm0, dword ptr [rcx+0E0h]                                     ; +0x18, 0x1800c36b8\nmovss   dword ptr [rcx+0E0h], xmm0                                     ; +0x20, 0x1800c36c0\njz      short loc_1800C372B                                            ; +0x28, 0x1800c36c8\ncmp     qword ptr [rcx+0F8h], 0                                        ; +0x2a, 0x1800c36ca\njz      short loc_1800C372B                                            ; +0x32, 0x1800c36d2\ncomiss  xmm0, cs:dword_1800EC358                                       ; +0x34, 0x1800c36d4\njbe     short loc_1800C371B                                            ; +0x3b, 0x1800c36db\nmov     dword ptr [rcx+0E0h], 0                                        ; +0x3d, 0x1800c36dd\nlea     rdx, a4lu; \"%4lu\"                                              ; +0x47, 0x1800c36e7\nmov     r8d, cs:?g_uNumberOfDraws@@3IA; uint g_uNumberOfDraws          ; +0x4e, 0x1800c36ee\nmov     rcx, [rcx+150h]; Buffer                                        ; +0x55, 0x1800c36f5\ncall    sub_1800095F0                                                  ; +0x5c, 0x1800c36fc\nmov     rcx, [rdi+0F8h]                                                ; +0x61, 0x1800c3701\nmov     rdx, [rdi+150h]                                                ; +0x68, 0x1800c3708\nadd     rcx, 198h                                                      ; +0x6f, 0x1800c370f\nmov     rax, [rcx]                                                     ; +0x76, 0x1800c3716\ncall    qword ptr [rax]                                                ; +0x79, 0x1800c3719\nmov     rcx, [rdi+0F8h]                                                ; +0x7b, 0x1800c371b\nmov     rax, [rcx]                                                     ; +0x82, 0x1800c3722\ncall    qword ptr [rax+2E8h]                                           ; +0x85, 0x1800c3725\nmov     cs:?g_uNumberOfDraws@@3IA, 0; uint g_uNumberOfDraws            ; +0x8b, 0x1800c372b\nadd     rsp, 20h                                                       ; +0x95, 0x1800c3735\npop     rdi                                                            ; +0x99, 0x1800c3739\nretn                                                                   ; +0x9a, 0x1800c373a", "xrefs": ["cocos2d::CCDirector::drawScene @ 0x1800c1c81", "<???> @ 0x18014cf68", "<???> @ 0x1801c36b4"], "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"}