{"type": "func", "start": 4296348256, "end": 4296348420, "name": "GJBaseGameLayer::getModifiedDelta", "pseudocode": "// \n// GJBaseGameLayer::getModifiedDelta from 0x100151260 to 0x100151304 (164 bytes)\n// \n// 1 xrefs:\n// > LevelEditorLayer::updateEditor @ 0x1000dd5e4\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; // xmm2_4\n  double v3; // xmm1_8\n  float v4; // xmm0_4\n  double v5; // xmm2_8\n  double v6; // xmm0_8\n  __m128 v7; // xmm3\n  double result; // xmm0_8\n\n  if ( a1->m_resumeTimer > 0 )\n  {\n    cocos2d::CCDirector::sharedDirector();\n    --a1->m_resumeTimer;\n    a2 = 0.0;\n  }\n  m_timeWarp = a1->m_gameState.m_timeWarp;\n  v3 = 0.004166666666666667;\n  if ( m_timeWarp < 1.0 )\n    v3 = 0.004166666666666667 * m_timeWarp;\n  v4 = a2 + a1->m_extraDelta;\n  v5 = v4;\n  v6 = v5 / v3;\n  *(float *)&v6 = v5 / v3;\n  v7 = _mm_or_ps(_mm_and_ps((__m128)xmmword_1008150B0, (__m128)*(unsigned __int64 *)&v6), (__m128)xmmword_1008150C0);\n  v7.f32[0] = v7.f32[0] + *(float *)&v6;\n  result = _mm_cvtepi32_pd(_mm_cvttps_epi32(_mm_round_ss((__m128)0LL, v7, 11))).f64[0] * v3;\n  a1->m_extraDelta = v5 - result;\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::getModifiedDelta from 0x100151260 to 0x100151304 (164 bytes)\n; \n; 1 xrefs:\n; > LevelEditorLayer::updateEditor @ 0x1000dd5e4\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    rbp                                                            ; +0x0, 0x100151260\nmov     rbp, rsp                                                       ; +0x1, 0x100151261\npush    rbx                                                            ; +0x4, 0x100151264\npush    rax                                                            ; +0x5, 0x100151265\nmov     rbx, rdi                                                       ; +0x6, 0x100151266\ncmp     dword ptr [rdi+310Ch], 0                                       ; +0x9, 0x100151269\njle     short loc_100151280                                            ; +0x10, 0x100151270\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x12, 0x100151272\ndec     dword ptr [rbx+310Ch]                                          ; +0x17, 0x100151277\nxorps   xmm0, xmm0                                                     ; +0x1d, 0x10015127d\nmovss   xmm2, dword ptr [rbx+330h]                                     ; +0x20, 0x100151280\nmovss   xmm1, cs:alpha                                                 ; +0x28, 0x100151288\nucomiss xmm1, xmm2                                                     ; +0x30, 0x100151290\nmovsd   xmm1, cs:qword_100816A10                                       ; +0x33, 0x100151293\njbe     short loc_1001512A5                                            ; +0x3b, 0x10015129b\ncvtss2sd xmm2, xmm2                                                    ; +0x3d, 0x10015129d\nmulsd   xmm1, xmm2                                                     ; +0x41, 0x1001512a1\ncvtss2sd xmm0, xmm0                                                    ; +0x45, 0x1001512a5\naddsd   xmm0, qword ptr [rbx+30B8h]                                    ; +0x49, 0x1001512a9\ncvtsd2ss xmm0, xmm0                                                    ; +0x51, 0x1001512b1\nxorps   xmm2, xmm2                                                     ; +0x55, 0x1001512b5\ncvtss2sd xmm2, xmm0                                                    ; +0x58, 0x1001512b8\nmovaps  xmm0, xmm2                                                     ; +0x5c, 0x1001512bc\ndivsd   xmm0, xmm1                                                     ; +0x5f, 0x1001512bf\ncvtsd2ss xmm0, xmm0                                                    ; +0x63, 0x1001512c3\nmovaps  xmm3, cs:xmmword_1008150B0                                     ; +0x67, 0x1001512c7\nandps   xmm3, xmm0                                                     ; +0x6e, 0x1001512ce\norps    xmm3, cs:xmmword_1008150C0                                     ; +0x71, 0x1001512d1\naddss   xmm3, xmm0                                                     ; +0x78, 0x1001512d8\nxorps   xmm0, xmm0                                                     ; +0x7c, 0x1001512dc\nroundss xmm0, xmm3, 0Bh                                                ; +0x7f, 0x1001512df\ncvttps2dq xmm0, xmm0                                                   ; +0x85, 0x1001512e5\ncvtdq2pd xmm0, xmm0                                                    ; +0x89, 0x1001512e9\nmulsd   xmm0, xmm1                                                     ; +0x8d, 0x1001512ed\nsubsd   xmm2, xmm0                                                     ; +0x91, 0x1001512f1\nmovsd   qword ptr [rbx+30B8h], xmm2                                    ; +0x95, 0x1001512f5\nadd     rsp, 8                                                         ; +0x9d, 0x1001512fd\npop     rbx                                                            ; +0xa1, 0x100151301\npop     rbp                                                            ; +0xa2, 0x100151302\nretn                                                                   ; +0xa3, 0x100151303", "xrefs": ["LevelEditorLayer::updateEditor @ 0x1000dd5e4"], "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"}