{"type": "func", "start": 4297057592, "end": 4297057732, "name": "GJBaseGameLayer::getModifiedDelta", "pseudocode": "// \n// GJBaseGameLayer::getModifiedDelta from 0x1001fe538 to 0x1001fe5c4 (140 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::update @ 0x1001fe66c\n// > LevelEditorLayer::updateEditor @ 0x100358330\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 __fastcall GJBaseGameLayer::getModifiedDelta(GJBaseGameLayer *a1, float a2)\n{\n  float m_timeWarp; // s2\n  double v4; // d2\n  float v5; // s0\n  double v6; // d1\n  float v7; // s0\n  double result; // d0\n\n  if ( a1->m_resumeTimer >= 1 )\n  {\n    cocos2d::CCDirector::sharedDirector();\n    --a1->m_resumeTimer;\n    a2 = 0.0;\n  }\n  m_timeWarp = a1->m_gameState.m_timeWarp;\n  if ( m_timeWarp >= 1.0 )\n    v4 = 0.00416666667;\n  else\n    v4 = m_timeWarp * 0.00416666667;\n  v5 = a1->m_extraDelta + a2;\n  v6 = v5;\n  v7 = v5 / v4;\n  result = v4 * (double)(int)llroundf(v7);\n  a1->m_extraDelta = v6 - result;\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::getModifiedDelta from 0x1001fe538 to 0x1001fe5c4 (140 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::update @ 0x1001fe66c\n; > LevelEditorLayer::updateEditor @ 0x100358330\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             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1001fe538\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1001fe53c\nADD             X29, SP, #0x10                                         ; +0x8, 0x1001fe540\nMOV             X19, X0                                                ; +0xc, 0x1001fe544\nLDR             W8, [X0,#0x3134]                                       ; +0x10, 0x1001fe548\nCMP             W8, #1                                                 ; +0x14, 0x1001fe54c\nB.LT            loc_1001FE568                                          ; +0x18, 0x1001fe550\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x1c, 0x1001fe554\nLDR             W8, [X19,#0x3134]                                      ; +0x20, 0x1001fe558\nSUB             W8, W8, #1                                             ; +0x24, 0x1001fe55c\nSTR             W8, [X19,#0x3134]                                      ; +0x28, 0x1001fe560\nFMOV            S0, WZR                                                ; +0x2c, 0x1001fe564\nLDR             D1, [X19,#0x30E0]                                      ; +0x30, 0x1001fe568\nLDR             S2, [X19,#0x330]                                       ; +0x34, 0x1001fe56c\nFCVT            D3, S2                                                 ; +0x38, 0x1001fe570\nADRP            X8, #qword_10063A548@PAGE                              ; +0x3c, 0x1001fe574\nLDR             D4, [X8,#qword_10063A548@PAGEOFF]                      ; +0x40, 0x1001fe578\nFMUL            D3, D3, D4                                             ; +0x44, 0x1001fe57c\nFMOV            S5, #1.0                                               ; +0x48, 0x1001fe580\nFCMP            S2, S5                                                 ; +0x4c, 0x1001fe584\nFCSEL           D2, D3, D4, MI                                         ; +0x50, 0x1001fe588\nFCVT            D0, S0                                                 ; +0x54, 0x1001fe58c\nFADD            D0, D1, D0                                             ; +0x58, 0x1001fe590\nFCVT            S0, D0                                                 ; +0x5c, 0x1001fe594\nFCVT            D1, S0                                                 ; +0x60, 0x1001fe598\nFDIV            D0, D1, D2                                             ; +0x64, 0x1001fe59c\nFCVT            S0, D0                                                 ; +0x68, 0x1001fe5a0\nFCVTAS          W8, S0                                                 ; +0x6c, 0x1001fe5a4\nSCVTF           D0, W8                                                 ; +0x70, 0x1001fe5a8\nFMUL            D0, D2, D0                                             ; +0x74, 0x1001fe5ac\nFSUB            D1, D1, D0                                             ; +0x78, 0x1001fe5b0\nSTR             D1, [X19,#0x30E0]                                      ; +0x7c, 0x1001fe5b4\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x80, 0x1001fe5b8\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x84, 0x1001fe5bc\nRET                                                                    ; +0x88, 0x1001fe5c0", "xrefs": ["GJBaseGameLayer::update @ 0x1001fe66c", "LevelEditorLayer::updateEditor @ 0x100358330"], "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"}