{"type": "func", "start": 8806760, "end": 8806932, "name": "GJBaseGameLayer::getModifiedDelta", "pseudocode": "// \n// GJBaseGameLayer::getModifiedDelta from 0x866168 to 0x866214 (172 bytes)\n// \n// 3 xrefs:\n// > LevelEditorLayer::updateEditor @ 0x67c0f0\n// > GJBaseGameLayer::update @ 0x89d974\n// > <???> @ 0x98eb0\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\ndouble GJBaseGameLayer::getModifiedDelta(GJBaseGameLayer *a1, float a2)\n{\n  double m_extraDelta; // d1\n  float m_timeWarp; // s2\n  float v5; // s1\n  double v6; // d2\n  double v7; // d1\n  float v8; // s0\n  double result; // d0\n\n  if ( a1->m_resumeTimer <= 0 )\n  {\n    m_timeWarp = a1->m_gameState.m_timeWarp;\n    v5 = a2 + a1->m_extraDelta;\n    if ( m_timeWarp >= 1.0 )\n      goto LABEL_3;\nLABEL_6:\n    v6 = m_timeWarp * 0.00416666667;\n    goto LABEL_4;\n  }\n  cocos2d::CCDirector::sharedDirector();\n  m_extraDelta = a1->m_extraDelta;\n  m_timeWarp = a1->m_gameState.m_timeWarp;\n  --a1->m_resumeTimer;\n  v5 = m_extraDelta + 0.0;\n  if ( m_timeWarp < 1.0 )\n    goto LABEL_6;\nLABEL_3:\n  v6 = 0.00416666667;\nLABEL_4:\n  v7 = v5;\n  v8 = v7 / v6;\n  result = v6 * (double)(int)llroundf(v8);\n  a1->m_extraDelta = v7 - result;\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::getModifiedDelta from 0x866168 to 0x866214 (172 bytes)\n; \n; 3 xrefs:\n; > LevelEditorLayer::updateEditor @ 0x67c0f0\n; > GJBaseGameLayer::update @ 0x89d974\n; > <???> @ 0x98eb0\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\nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0x866168\nMOV             X29, SP                                                ; +0x4, 0x86616c\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0x866170\nMOV             X19, X0                                                ; +0xc, 0x866174\nLDR             W0, [X0,#0x3304]; this                                 ; +0x10, 0x866178\nCMP             W0, WZR                                                ; +0x14, 0x86617c\nB.LE            loc_8661E4                                             ; +0x18, 0x866180\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x1c, 0x866184\nFMOV            D0, XZR                                                ; +0x20, 0x866188\nLDR             W0, [X19,#0x3304]                                      ; +0x24, 0x86618c\nLDR             D1, [X19,#0x32B0]                                      ; +0x28, 0x866190\nLDR             S2, [X19,#0x330]                                       ; +0x2c, 0x866194\nSUB             W0, W0, #1                                             ; +0x30, 0x866198\nSTR             W0, [X19,#0x3304]                                      ; +0x34, 0x86619c\nFADD            D1, D0, D1                                             ; +0x38, 0x8661a0\nFMOV            S0, #1.0                                               ; +0x3c, 0x8661a4\nFCMPE           S2, S0                                                 ; +0x40, 0x8661a8\nFCVT            S1, D1                                                 ; +0x44, 0x8661ac\nB.MI            loc_866204                                             ; +0x48, 0x8661b0\nLDR             D2, =0x3F71111111111111                                ; +0x4c, 0x8661b4\nFCVT            D1, S1                                                 ; +0x50, 0x8661b8\nFDIV            D0, D1, D2                                             ; +0x54, 0x8661bc\nFCVT            S0, D0                                                 ; +0x58, 0x8661c0\nFCVTAS          W0, S0                                                 ; +0x5c, 0x8661c4\nSCVTF           D0, W0                                                 ; +0x60, 0x8661c8\nFMUL            D0, D2, D0                                             ; +0x64, 0x8661cc\nFSUB            D1, D1, D0                                             ; +0x68, 0x8661d0\nSTR             D1, [X19,#0x32B0]                                      ; +0x6c, 0x8661d4\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x70, 0x8661d8\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x74, 0x8661dc\nRET                                                                    ; +0x78, 0x8661e0\nFCVT            D0, S0                                                 ; +0x7c, 0x8661e4\nLDR             D1, [X19,#0x32B0]                                      ; +0x80, 0x8661e8\nLDR             S2, [X19,#0x330]                                       ; +0x84, 0x8661ec\nFADD            D1, D0, D1                                             ; +0x88, 0x8661f0\nFMOV            S0, #1.0                                               ; +0x8c, 0x8661f4\nFCMPE           S2, S0                                                 ; +0x90, 0x8661f8\nFCVT            S1, D1                                                 ; +0x94, 0x8661fc\nB.PL            loc_8661B4                                             ; +0x98, 0x866200\nFCVT            D2, S2                                                 ; +0x9c, 0x866204\nLDR             D0, =0x3F71111111111111                                ; +0xa0, 0x866208\nFMUL            D2, D2, D0                                             ; +0xa4, 0x86620c\nB               loc_8661B8                                             ; +0xa8, 0x866210", "xrefs": ["LevelEditorLayer::updateEditor @ 0x67c0f0", "GJBaseGameLayer::update @ 0x89d974", "<???> @ 0x98eb0"], "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"}