{"type": "func", "start": 4297696896, "end": 4297697036, "name": "GJBaseGameLayer::getModifiedDelta", "pseudocode": "// \n// GJBaseGameLayer::getModifiedDelta from 0x10029a680 to 0x10029a70c (140 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::update @ 0x10029a79c\n// > LevelEditorLayer::updateEditor @ 0x1003f7f84\n// \n// This function is hookable on this platform (idp: arm, 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:02:08 +0000\n// \n\ndouble __fastcall GJBaseGameLayer::getModifiedDelta(__int64 a1, float a2)\n{\n  float v3; // s2\n  double v4; // d2\n  float v5; // s0\n  double v6; // d1\n  float v7; // s0\n  double result; // d0\n\n  if ( *(int *)(a1 + 12740) >= 1 )\n  {\n    cocos2d::CCDirector::sharedDirector();\n    --*(_DWORD *)(a1 + 12740);\n    a2 = 0.0;\n  }\n  v3 = *(float *)(a1 + 816);\n  if ( v3 >= 1.0 )\n    v4 = 0.00416666667;\n  else\n    v4 = v3 * 0.00416666667;\n  v5 = *(double *)(a1 + 12656) + a2;\n  v6 = v5;\n  v7 = v5 / v4;\n  result = v4 * (double)(int)llroundf(v7);\n  *(double *)(a1 + 12656) = v6 - result;\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::getModifiedDelta from 0x10029a680 to 0x10029a70c (140 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::update @ 0x10029a79c\n; > LevelEditorLayer::updateEditor @ 0x1003f7f84\n; \n; This function is hookable on this platform (idp: arm, 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:02:08 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x10029a680\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10029a684\nADD             X29, SP, #0x10                                         ; +0x8, 0x10029a688\nMOV             X19, X0                                                ; +0xc, 0x10029a68c\nLDR             W8, [X0,#0x31C4]                                       ; +0x10, 0x10029a690\nCMP             W8, #1                                                 ; +0x14, 0x10029a694\nB.LT            loc_10029A6B0                                          ; +0x18, 0x10029a698\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x1c, 0x10029a69c\nLDR             W8, [X19,#0x31C4]                                      ; +0x20, 0x10029a6a0\nSUB             W8, W8, #1                                             ; +0x24, 0x10029a6a4\nSTR             W8, [X19,#0x31C4]                                      ; +0x28, 0x10029a6a8\nFMOV            S0, WZR                                                ; +0x2c, 0x10029a6ac\nLDR             D1, [X19,#0x3170]                                      ; +0x30, 0x10029a6b0\nLDR             S2, [X19,#0x330]                                       ; +0x34, 0x10029a6b4\nFCVT            D3, S2                                                 ; +0x38, 0x10029a6b8\nADRP            X8, #qword_100763250@PAGE                              ; +0x3c, 0x10029a6bc\nLDR             D4, [X8,#qword_100763250@PAGEOFF]                      ; +0x40, 0x10029a6c0\nFMUL            D3, D3, D4                                             ; +0x44, 0x10029a6c4\nFMOV            S5, #1.0                                               ; +0x48, 0x10029a6c8\nFCMP            S2, S5                                                 ; +0x4c, 0x10029a6cc\nFCSEL           D2, D3, D4, MI                                         ; +0x50, 0x10029a6d0\nFCVT            D0, S0                                                 ; +0x54, 0x10029a6d4\nFADD            D0, D1, D0                                             ; +0x58, 0x10029a6d8\nFCVT            S0, D0                                                 ; +0x5c, 0x10029a6dc\nFCVT            D1, S0                                                 ; +0x60, 0x10029a6e0\nFDIV            D0, D1, D2                                             ; +0x64, 0x10029a6e4\nFCVT            S0, D0                                                 ; +0x68, 0x10029a6e8\nFCVTAS          W8, S0                                                 ; +0x6c, 0x10029a6ec\nSCVTF           D0, W8                                                 ; +0x70, 0x10029a6f0\nFMUL            D0, D2, D0                                             ; +0x74, 0x10029a6f4\nFSUB            D1, D1, D0                                             ; +0x78, 0x10029a6f8\nSTR             D1, [X19,#0x3170]                                      ; +0x7c, 0x10029a6fc\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x80, 0x10029a700\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x84, 0x10029a704\nRET                                                                    ; +0x88, 0x10029a708", "xrefs": ["GJBaseGameLayer::update @ 0x10029a79c", "LevelEditorLayer::updateEditor @ 0x1003f7f84"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}