{"type": "func", "start": 4680080, "end": 4680218, "name": "GJBaseGameLayer::getModifiedDelta", "pseudocode": "// \n// GJBaseGameLayer::getModifiedDelta from 0x476990 to 0x476a1a (138 bytes)\n// \n// 2 xrefs:\n// > LevelEditorLayer::updateEditor @ 0x37621c\n// > GJBaseGameLayer::update @ 0x497126\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 v4; // d9\n  double v5; // d8\n  float m_timeWarp; // s14\n  float v7; // s16\n  double result; // r0\n\n  if ( a1->m_resumeTimer > 0 )\n  {\n    cocos2d::CCDirector::sharedDirector();\n    a2 = 0.0;\n    --a1->m_resumeTimer;\n  }\n  v4 = 0.00416666667;\n  v5 = a2 + a1->m_extraDelta;\n  m_timeWarp = a1->m_gameState.m_timeWarp;\n  if ( m_timeWarp < 1.0 )\n    v4 = m_timeWarp * 0.00416666667;\n  v7 = v5;\n  result = (double)lroundf() * v4;\n  a1->m_extraDelta = v7 - result;\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::getModifiedDelta from 0x476990 to 0x476a1a (138 bytes)\n; \n; 2 xrefs:\n; > LevelEditorLayer::updateEditor @ 0x37621c\n; > GJBaseGameLayer::update @ 0x497126\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            {R3-R5,LR}                                             ; +0x0, 0x476990\nMOVW            R5, #0x2B44                                            ; +0x2, 0x476992\nLDR             R3, [R0,R5]                                            ; +0x6, 0x476996\nMOV             R4, R0                                                 ; +0x8, 0x476998\nVPUSH           {D8-D9}                                                ; +0xa, 0x47699a\nCMP             R3, #0                                                 ; +0xe, 0x47699e\nVMOV            S14, R1                                                ; +0x10, 0x4769a0\nBLE             loc_4769B4                                             ; +0x14, 0x4769a4\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x16, 0x4769a6\nVLDR            S14, =0.0                                              ; +0x1a, 0x4769aa\nLDR             R3, [R4,R5]                                            ; +0x1e, 0x4769ae\nSUBS            R3, #1                                                 ; +0x20, 0x4769b0\nSTR             R3, [R4,R5]                                            ; +0x22, 0x4769b2\nVCVT.F64.F32    D7, S14                                                ; +0x24, 0x4769b4\nADD.W           R5, R4, #0x2B00                                        ; +0x28, 0x4769b8\nADDS            R5, #8                                                 ; +0x2c, 0x4769bc\nVLDR            D9, =0.00416666667                                     ; +0x2e, 0x4769be\nVLDR            D8, [R5]                                               ; +0x32, 0x4769c2\nVADD.F64        D8, D7, D8                                             ; +0x36, 0x4769c6\nVLDR            S14, [R4,#0x2D0]                                       ; +0x3a, 0x4769ca\nVMOV.F32        S15, #1.0                                              ; +0x3e, 0x4769ce\nVCMPE.F32       S14, S15                                               ; +0x42, 0x4769d2\nVMRS            APSR_nzcv, FPSCR                                       ; +0x46, 0x4769d6\nITT MI                                                                 ; +0x4a, 0x4769da\nVCVTMI.F64.F32  D7, S14                                                ; +0x4c, 0x4769dc\nVMULMI.F64      D9, D7, D9                                             ; +0x50, 0x4769e0\nVCVT.F32.F64    S16, D8                                                ; +0x54, 0x4769e4\nVCVT.F64.F32    D8, S16                                                ; +0x58, 0x4769e8\nVDIV.F64        D7, D8, D9                                             ; +0x5c, 0x4769ec\nVCVT.F32.F64    S15, D7                                                ; +0x60, 0x4769f0\nVMOV            R0, S15                                                ; +0x64, 0x4769f4\nBLX             lroundf                                                ; +0x68, 0x4769f8\nVMOV            S15, R0                                                ; +0x6c, 0x4769fc\nVCVT.F64.S32    D7, S15                                                ; +0x70, 0x476a00\nVMUL.F64        D9, D7, D9                                             ; +0x74, 0x476a04\nVSUB.F64        D8, D8, D9                                             ; +0x78, 0x476a08\nVMOV            R0, R1, D9                                             ; +0x7c, 0x476a0c\nVSTR            D8, [R5]                                               ; +0x80, 0x476a10\nVPOP            {D8-D9}                                                ; +0x84, 0x476a14\nPOP             {R3-R5,PC}                                             ; +0x88, 0x476a18", "xrefs": ["LevelEditorLayer::updateEditor @ 0x37621c", "GJBaseGameLayer::update @ 0x497126"], "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"}