{"type": "func", "start": 6443229392, "end": 6443229473, "name": "cocos2d::CCDirector::calculateMPF", "pseudocode": "// \n// cocos2d::CCDirector::calculateMPF from 0x1800be0d0 to 0x1800be121 (81 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b915c\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::calculateMPF(cocos2d::CCDirector *this, __int64 a2, struct cocos2d::timezone *a3)\n{\n  struct cocos2d::cc_timeval v4; // [rsp+30h] [rbp+8h] BYREF\n\n  cocos2d::CCTime::gettimeofdayCocos2d(&v4, nullptr, a3);\n  this->m_fSecondsPerFrame = (float)((float)(v4.tv_usec - this->m_pLastUpdate->tv_usec) / 1000000.0)\n                           + (float)(v4.tv_sec - this->m_pLastUpdate->tv_sec);\n}", "assembly": "; \n; cocos2d::CCDirector::calculateMPF from 0x1800be0d0 to 0x1800be121 (81 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b915c\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    rbx                                                            ; +0x0, 0x1800be0d0\nsub     rsp, 20h                                                       ; +0x2, 0x1800be0d2\nmov     rbx, rcx                                                       ; +0x6, 0x1800be0d6\nxor     edx, edx; void *                                               ; +0x9, 0x1800be0d9\nlea     rcx, [rsp+28h+arg_0]; struct cocos2d::cc_timeval *             ; +0xb, 0x1800be0db\ncall    ?gettimeofdayCocos2d@CCTime@cocos2d@@SAHPEAUcc_timeval@2@PEAX@Z; cocos2d::CCTime::gettimeofdayCocos2d(cocos2d::cc_timeval *,void *) ; +0x10, 0x1800be0e0\nmov     rdx, [rbx+128h]                                                ; +0x15, 0x1800be0e5\nmov     eax, [rsp+28h+arg_4]                                           ; +0x1c, 0x1800be0ec\nsub     eax, [rdx+4]                                                   ; +0x20, 0x1800be0f0\nmovd    xmm1, eax                                                      ; +0x23, 0x1800be0f3\nmov     eax, [rsp+28h+arg_0]                                           ; +0x27, 0x1800be0f7\nsub     eax, [rdx]                                                     ; +0x2b, 0x1800be0fb\ncvtdq2ps xmm1, xmm1                                                    ; +0x2d, 0x1800be0fd\nmovd    xmm0, eax                                                      ; +0x30, 0x1800be100\ndivss   xmm1, cs:dword_1801075A4                                       ; +0x34, 0x1800be104\ncvtdq2ps xmm0, xmm0                                                    ; +0x3c, 0x1800be10c\naddss   xmm1, xmm0                                                     ; +0x3f, 0x1800be10f\nmovss   dword ptr [rbx+104h], xmm1                                     ; +0x43, 0x1800be113\nadd     rsp, 20h                                                       ; +0x4b, 0x1800be11b\npop     rbx                                                            ; +0x4f, 0x1800be11f\nretn                                                                   ; +0x50, 0x1800be120", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b915c"], "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"}