{"type": "func", "start": 6443236944, "end": 6443237099, "name": "cocos2d::CCDirector::showStats", "pseudocode": "// \n// cocos2d::CCDirector::showStats from 0x1800bfe50 to 0x1800bfeeb (155 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCDirector::drawScene @ 0x1800be461\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b93f0\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall cocos2d::CCDirector::showStats(cocos2d::CCDirector *this)\n{\n  bool v1; // zf\n  float v3; // xmm0_4\n\n  v1 = !this->m_bDisplayStats;\n  v3 = this->m_fDeltaTime + this->m_fAccumDt;\n  this->m_fAccumDt = v3;\n  if ( !v1 && this->m_pDrawsLabel )\n  {\n    if ( v3 > 0.5 )\n    {\n      this->m_fAccumDt = 0.0;\n      sub_180009530(this->m_pszFPS, \"%4lu\", g_uNumberOfDraws);\n      ((void (__fastcall *)(cocos2d::CCLabelProtocol *, char *))this->m_pDrawsLabel->setString)(\n        &this->m_pDrawsLabel->cocos2d::CCLabelProtocol,\n        this->m_pszFPS);\n    }\n    ((void (__fastcall *)(cocos2d::CCLabelAtlas *))this->m_pDrawsLabel->visit)(this->m_pDrawsLabel);\n  }\n  g_uNumberOfDraws = 0;\n}", "assembly": "; \n; cocos2d::CCDirector::showStats from 0x1800bfe50 to 0x1800bfeeb (155 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCDirector::drawScene @ 0x1800be461\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b93f0\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rdi                                                            ; +0x0, 0x1800bfe50\nsub     rsp, 20h                                                       ; +0x2, 0x1800bfe52\ncmp     byte ptr [rcx+0D1h], 0                                         ; +0x6, 0x1800bfe56\nmov     rdi, rcx                                                       ; +0xd, 0x1800bfe5d\nmovss   xmm0, dword ptr [rcx+0A0h]                                     ; +0x10, 0x1800bfe60\naddss   xmm0, dword ptr [rcx+0D8h]                                     ; +0x18, 0x1800bfe68\nmovss   dword ptr [rcx+0D8h], xmm0                                     ; +0x20, 0x1800bfe70\njz      short loc_1800BFEDB                                            ; +0x28, 0x1800bfe78\ncmp     qword ptr [rcx+0F0h], 0                                        ; +0x2a, 0x1800bfe7a\njz      short loc_1800BFEDB                                            ; +0x32, 0x1800bfe82\ncomiss  xmm0, cs:dword_1800E6308                                       ; +0x34, 0x1800bfe84\njbe     short loc_1800BFECB                                            ; +0x3b, 0x1800bfe8b\nmov     dword ptr [rcx+0D8h], 0                                        ; +0x3d, 0x1800bfe8d\nlea     rdx, a4lu; \"%4lu\"                                              ; +0x47, 0x1800bfe97\nmov     r8d, cs:?g_uNumberOfDraws@@3IA; uint g_uNumberOfDraws          ; +0x4e, 0x1800bfe9e\nmov     rcx, [rcx+148h]; Buffer                                        ; +0x55, 0x1800bfea5\ncall    sub_180009530                                                  ; +0x5c, 0x1800bfeac\nmov     rcx, [rdi+0F0h]                                                ; +0x61, 0x1800bfeb1\nmov     rdx, [rdi+148h]                                                ; +0x68, 0x1800bfeb8\nadd     rcx, 198h                                                      ; +0x6f, 0x1800bfebf\nmov     rax, [rcx]                                                     ; +0x76, 0x1800bfec6\ncall    qword ptr [rax]                                                ; +0x79, 0x1800bfec9\nmov     rcx, [rdi+0F0h]                                                ; +0x7b, 0x1800bfecb\nmov     rax, [rcx]                                                     ; +0x82, 0x1800bfed2\ncall    qword ptr [rax+2D8h]                                           ; +0x85, 0x1800bfed5\nmov     cs:?g_uNumberOfDraws@@3IA, 0; uint g_uNumberOfDraws            ; +0x8b, 0x1800bfedb\nadd     rsp, 20h                                                       ; +0x95, 0x1800bfee5\npop     rdi                                                            ; +0x99, 0x1800bfee9\nretn                                                                   ; +0x9a, 0x1800bfeea", "xrefs": ["cocos2d::CCDirector::drawScene @ 0x1800be461", "<???> @ 0x1801438a8", "<???> @ 0x1801b93f0"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}