{"type": "func", "start": 6443251152, "end": 6443251345, "name": "cocos2d::CCDirector::showFPSLabel", "pseudocode": "// \n// cocos2d::CCDirector::showFPSLabel from 0x1800c35d0 to 0x1800c3691 (193 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCDirector::drawScene @ 0x1800c1c92\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c36a8\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::showFPSLabel(cocos2d::CCDirector *this)\n{\n  int v2; // eax\n  float v3; // xmm1_4\n  float v4; // xmm0_4\n\n  if ( *((_QWORD *)this + 47) )\n  {\n    v2 = *((_DWORD *)this + 66) + 1;\n    v3 = *((float *)this + 42) + *((float *)this + 55);\n    *((_DWORD *)this + 66) = v2;\n    *((float *)this + 55) = v3;\n    if ( v3 > 0.1 )\n    {\n      *((_DWORD *)this + 66) = 0;\n      *((_DWORD *)this + 55) = 0;\n      v4 = (float)v2 / v3;\n      *((float *)this + 57) = v4;\n      roundf(v4);\n      sub_1800C3B80(*((char **)this + 42), 0x10u, \"FPS: %i\");\n      (**(void (__fastcall ***)(__int64, _QWORD))(*((_QWORD *)this + 47) + 360LL))(\n        *((_QWORD *)this + 47) + 360LL,\n        *((_QWORD *)this + 42));\n    }\n    (*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 47) + 744LL))(*((_QWORD *)this + 47));\n  }\n}", "assembly": "; \n; cocos2d::CCDirector::showFPSLabel from 0x1800c35d0 to 0x1800c3691 (193 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCDirector::drawScene @ 0x1800c1c92\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c36a8\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    rbx                                                            ; +0x0, 0x1800c35d0\nsub     rsp, 20h                                                       ; +0x2, 0x1800c35d2\ncmp     qword ptr [rcx+178h], 0                                        ; +0x6, 0x1800c35d6\nmov     rbx, rcx                                                       ; +0xe, 0x1800c35de\njz      loc_1800C368B                                                  ; +0x11, 0x1800c35e1\nmov     eax, [rcx+108h]                                                ; +0x17, 0x1800c35e7\nmovss   xmm1, dword ptr [rcx+0A8h]                                     ; +0x1d, 0x1800c35ed\ninc     eax                                                            ; +0x25, 0x1800c35f5\naddss   xmm1, dword ptr [rcx+0DCh]                                     ; +0x27, 0x1800c35f7\nmov     [rcx+108h], eax                                                ; +0x2f, 0x1800c35ff\ncomiss  xmm1, cs:flt_1800EED9C                                         ; +0x35, 0x1800c3605\nmovss   dword ptr [rcx+0DCh], xmm1                                     ; +0x3c, 0x1800c360c\njbe     short loc_1800C3675                                            ; +0x44, 0x1800c3614\nxorps   xmm0, xmm0                                                     ; +0x46, 0x1800c3616\ncvtsi2ss xmm0, rax                                                     ; +0x49, 0x1800c3619\nxor     eax, eax                                                       ; +0x4e, 0x1800c361e\nmov     [rcx+108h], eax                                                ; +0x50, 0x1800c3620\nmov     [rcx+0DCh], eax                                                ; +0x56, 0x1800c3626\ndivss   xmm0, xmm1; X                                                  ; +0x5c, 0x1800c362c\nmovss   dword ptr [rcx+0E4h], xmm0                                     ; +0x60, 0x1800c3630\ncall    cs:__imp_roundf                                                ; +0x68, 0x1800c3638\nmov     rcx, [rbx+150h]; Buffer                                        ; +0x6e, 0x1800c363e\nlea     r8, aFpsI; \"FPS: %i\"                                           ; +0x75, 0x1800c3645\ncvttss2si r9d, xmm0                                                    ; +0x7c, 0x1800c364c\nmov     edx, 10h; BufferCount                                          ; +0x81, 0x1800c3651\ncall    sub_1800C3B80                                                  ; +0x86, 0x1800c3656\nmov     rcx, [rbx+178h]                                                ; +0x8b, 0x1800c365b\nmov     rdx, [rbx+150h]                                                ; +0x92, 0x1800c3662\nadd     rcx, 168h                                                      ; +0x99, 0x1800c3669\nmov     rax, [rcx]                                                     ; +0xa0, 0x1800c3670\ncall    qword ptr [rax]                                                ; +0xa3, 0x1800c3673\nmov     rcx, [rbx+178h]                                                ; +0xa5, 0x1800c3675\nmov     rax, [rcx]                                                     ; +0xac, 0x1800c367c\nadd     rsp, 20h                                                       ; +0xaf, 0x1800c367f\npop     rbx                                                            ; +0xb3, 0x1800c3683\njmp     qword ptr [rax+2E8h]                                           ; +0xb4, 0x1800c3684\nadd     rsp, 20h                                                       ; +0xbb, 0x1800c368b\npop     rbx                                                            ; +0xbf, 0x1800c368f\nretn                                                                   ; +0xc0, 0x1800c3690", "xrefs": ["cocos2d::CCDirector::drawScene @ 0x1800c1c92", "<???> @ 0x18014cf68", "<???> @ 0x1801c36a8"], "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"}