{"type": "func", "start": 5371033520, "end": 5371033672, "name": "GJBaseGameLayer::getModifiedDelta", "pseudocode": "// \n// GJBaseGameLayer::getModifiedDelta from 0x1402377b0 to 0x140237848 (152 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::update @ 0x14023795c\n// > LevelEditorLayer::updateEditor @ 0x1402d8b39\n// > <???> @ 0x1406ce13c\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 v3; // xmm7_8\n  double v4; // xmm6_8\n  double result; // xmm0_8\n\n  if ( a1->m_resumeTimer > 0 )\n  {\n    cocos2d::CCDirector::sharedDirector(a1);\n    --a1->m_resumeTimer;\n    a2 = 0.0;\n  }\n  v3 = fminf(1.0, a1->m_gameState.m_timeWarp) * 0.004166666666666667;\n  v4 = (float)(a2 + a1->m_extraDelta);\n  result = (double)(int)roundf(v4 / v3) * v3;\n  a1->m_extraDelta = v4 - result;\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::getModifiedDelta from 0x1402377b0 to 0x140237848 (152 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::update @ 0x14023795c\n; > LevelEditorLayer::updateEditor @ 0x1402d8b39\n; > <???> @ 0x1406ce13c\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, 0x1402377b0\nsub     rsp, 40h                                                       ; +0x2, 0x1402377b2\ncmp     dword ptr [rcx+32A4h], 0                                       ; +0x6, 0x1402377b6\nmov     rbx, rcx                                                       ; +0xd, 0x1402377bd\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0x10, 0x1402377c0\nmovaps  [rsp+48h+var_28], xmm7                                         ; +0x15, 0x1402377c5\njle     short loc_1402377DB                                            ; +0x1a, 0x1402377ca\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x1c, 0x1402377cc\ndec     dword ptr [rbx+32A4h]                                          ; +0x22, 0x1402377d2\nxorps   xmm1, xmm1                                                     ; +0x28, 0x1402377d8\nmovss   xmm0, cs:flt_140622C24                                         ; +0x2b, 0x1402377db\nminss   xmm0, dword ptr [rbx+330h]                                     ; +0x33, 0x1402377e3\ncvtps2pd xmm7, xmm0                                                    ; +0x3b, 0x1402377eb\nxorps   xmm0, xmm0                                                     ; +0x3e, 0x1402377ee\nmulsd   xmm7, cs:qword_140622BE8                                       ; +0x41, 0x1402377f1\ncvtss2sd xmm0, xmm1                                                    ; +0x49, 0x1402377f9\naddsd   xmm0, qword ptr [rbx+3250h]                                    ; +0x4d, 0x1402377fd\ncvtpd2ps xmm0, xmm0                                                    ; +0x55, 0x140237805\ncvtps2pd xmm6, xmm0                                                    ; +0x59, 0x140237809\nmovaps  xmm1, xmm6                                                     ; +0x5c, 0x14023780c\ndivsd   xmm1, xmm7                                                     ; +0x5f, 0x14023780f\ncvtpd2ps xmm0, xmm1; X                                                 ; +0x63, 0x140237813\ncall    cs:__imp_roundf                                                ; +0x67, 0x140237817\ncvttss2si eax, xmm0                                                    ; +0x6d, 0x14023781d\nxorps   xmm0, xmm0                                                     ; +0x71, 0x140237821\ncvtsi2sd xmm0, eax                                                     ; +0x74, 0x140237824\nmulsd   xmm0, xmm7                                                     ; +0x78, 0x140237828\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0x7c, 0x14023782c\nsubsd   xmm6, xmm0                                                     ; +0x81, 0x140237831\nmovsd   qword ptr [rbx+3250h], xmm6                                    ; +0x85, 0x140237835\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x8d, 0x14023783d\nadd     rsp, 40h                                                       ; +0x92, 0x140237842\npop     rbx                                                            ; +0x96, 0x140237846\nretn                                                                   ; +0x97, 0x140237847", "xrefs": ["GJBaseGameLayer::update @ 0x14023795c", "LevelEditorLayer::updateEditor @ 0x1402d8b39", "<???> @ 0x1406ce13c"], "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"}