{"type": "func", "start": 4297692500, "end": 4297692696, "name": "GJBaseGameLayer::applyTimeWarp", "pseudocode": "// \n// GJBaseGameLayer::applyTimeWarp from 0x100299554 to 0x100299618 (196 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1008df9d0\n// > <???> @ 0x100919058\n// > <???> @ 0x10094c580\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:07 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::applyTimeWarp(__int64 a1, float a2)\n{\n  float v2; // s8\n  float v4; // s0\n  float v5; // s0\n  __int64 v6; // x0\n  __int64 result; // x0\n  __int64 v8; // x0\n  float v9; // s8\n  _QWORD *v10; // x0\n\n  v2 = a2;\n  *(float *)(a1 + 824) = a2;\n  v4 = *(float *)(a1 + 13112);\n  if ( fabsf(v4 + -1.0) >= 0.01 )\n  {\n    v5 = v4 * v2;\n    if ( !*(_BYTE *)(a1 + 1982) )\n      v2 = v5;\n  }\n  v6 = cocos2d::CCDirector::sharedDirector();\n  result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 128LL))(v6);\n  if ( *(float *)(result + 56) != v2 && *(_BYTE *)(a1 + 12664) == 1 )\n  {\n    v8 = cocos2d::CCDirector::sharedDirector();\n    *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 128LL))(v8) + 56) = v2;\n    v9 = 1.0;\n    if ( (*(_BYTE *)(a1 + 1982) & 1) == 0 )\n      v9 = *(float *)(a1 + 13116);\n    v10 = (_QWORD *)FMODAudioEngine::sharedEngine();\n    return sub_1001B8114(v10, v9);\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::applyTimeWarp from 0x100299554 to 0x100299618 (196 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1008df9d0\n; > <???> @ 0x100919058\n; > <???> @ 0x10094c580\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:07 +0000\n; \nSTP             D9, D8, [SP,#-0x10+var_20]!                            ; +0x0, 0x100299554\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100299558\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10029955c\nADD             X29, SP, #0x20                                         ; +0xc, 0x100299560\nFMOV            S8, S0                                                 ; +0x10, 0x100299564\nMOV             X19, X0                                                ; +0x14, 0x100299568\nSTR             S0, [X0,#0x338]                                        ; +0x18, 0x10029956c\nLDR             S0, [X0,#0x3338]                                       ; +0x1c, 0x100299570\nFMOV            S1, #-1.0                                              ; +0x20, 0x100299574\nFADD            S1, S0, S1                                             ; +0x24, 0x100299578\nFABS            S1, S1                                                 ; +0x28, 0x10029957c\nADRP            X8, #dword_10075C734@PAGE                              ; +0x2c, 0x100299580\nLDR             S2, [X8,#dword_10075C734@PAGEOFF]                      ; +0x30, 0x100299584\nFCMP            S1, S2                                                 ; +0x34, 0x100299588\nB.LT            loc_1002995A0                                          ; +0x38, 0x10029958c\nLDRB            W8, [X19,#0x7BE]                                       ; +0x3c, 0x100299590\nFMUL            S0, S0, S8                                             ; +0x40, 0x100299594\nCMP             W8, #0                                                 ; +0x44, 0x100299598\nFCSEL           S8, S8, S0, NE                                         ; +0x48, 0x10029959c\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x4c, 0x1002995a0\nLDR             X8, [X0]                                               ; +0x50, 0x1002995a4\nLDR             X8, [X8,#0x80]                                         ; +0x54, 0x1002995a8\nBLR             X8                                                     ; +0x58, 0x1002995ac\nLDR             S0, [X0,#0x38]                                         ; +0x5c, 0x1002995b0\nFCMP            S0, S8                                                 ; +0x60, 0x1002995b4\nB.EQ            loc_100299608                                          ; +0x64, 0x1002995b8\nMOV             W8, #0x3178                                            ; +0x68, 0x1002995bc\nLDRB            W8, [X19,X8]                                           ; +0x6c, 0x1002995c0\nCMP             W8, #1                                                 ; +0x70, 0x1002995c4\nB.NE            loc_100299608                                          ; +0x74, 0x1002995c8\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x78, 0x1002995cc\nLDR             X8, [X0]                                               ; +0x7c, 0x1002995d0\nLDR             X8, [X8,#0x80]                                         ; +0x80, 0x1002995d4\nBLR             X8                                                     ; +0x84, 0x1002995d8\nSTR             S8, [X0,#0x38]                                         ; +0x88, 0x1002995dc\nLDRB            W8, [X19,#0x7BE]                                       ; +0x8c, 0x1002995e0\nFMOV            S8, #1.0                                               ; +0x90, 0x1002995e4\nTBNZ            W8, #0, loc_1002995F0                                  ; +0x94, 0x1002995e8\nLDR             S8, [X19,#0x333C]                                      ; +0x98, 0x1002995ec\nBL              FMODAudioEngine__sharedEngine                          ; +0x9c, 0x1002995f0\nFMOV            S0, S8                                                 ; +0xa0, 0x1002995f4\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xa4, 0x1002995f8\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xa8, 0x1002995fc\nLDP             D9, D8, [SP+0x20+var_20],#0x30                         ; +0xac, 0x100299600\nB               sub_1001B8114                                          ; +0xb0, 0x100299604\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xb4, 0x100299608\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xb8, 0x10029960c\nLDP             D9, D8, [SP+0x20+var_20],#0x30                         ; +0xbc, 0x100299610\nRET                                                                    ; +0xc0, 0x100299614", "xrefs": ["<???> @ 0x1008df9d0", "<???> @ 0x100919058", "<???> @ 0x10094c580"], "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"}