{"type": "func", "start": 4297740160, "end": 4297740440, "name": "GJBaseGameLayer::checkpointActivated", "pseudocode": "// \n// GJBaseGameLayer::checkpointActivated from 0x1002a4f80 to 0x1002a5098 (280 bytes)\n// \n// 3 xrefs:\n// > PlayLayer::checkpointActivated @ 0x100148cb4\n// > LevelEditorLayer::checkpointActivated @ 0x1004056a4\n// > <???> @ 0x100919090\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:14 +0000\n// \n\nvoid __fastcall GJBaseGameLayer::checkpointActivated(__int64 a1, _BYTE *a2)\n{\n  _BYTE *v2; // x20\n  __int64 v4; // x0\n  float v5; // s8\n  float v6; // s9\n  float v7; // s10\n  float v8; // s0\n  unsigned __int16 *v9; // x0\n  float32x2_t v10; // [xsp+8h] [xbp-58h] BYREF\n  float32x2_t v11; // [xsp+10h] [xbp-50h] BYREF\n  double v12; // [xsp+18h] [xbp-48h] BYREF\n  __int64 v13; // [xsp+20h] [xbp-40h] BYREF\n  __int64 v14; // [xsp+28h] [xbp-38h] BYREF\n\n  if ( (a2[1044] & 1) == 0 )\n  {\n    v2 = a2;\n    (*(void (__fastcall **)(__int64 *__return_ptr, _BYTE *))(*(_QWORD *)a2 + 1360LL))(&v14, a2);\n    v4 = cocos2d::CCDirector::sharedDirector();\n    cocos2d::CCDirector::getWinSize(v4, &v13);\n    v5 = sub_10039AFAC(*(float *)&v14 + -50.0, *(float *)&v14 + 100.0);\n    v6 = *(float *)(a1 + 996);\n    v7 = *((float *)&v13 + 1) + 50.0;\n    v8 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 3920) + 168LL))(*(_QWORD *)(a1 + 3920));\n    sub_1000262BC((float *)&v12, v5, v6 + (float)(v7 / v8));\n    v9 = (unsigned __int16 *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v2 + 111) + 944LL))(*((_QWORD *)v2 + 111));\n    LODWORD(v2) = *v9 | (*((unsigned __int8 *)v9 + 2) << 16);\n    sub_1000262F4(&v11, &v12);\n    sub_1000262F4(&v10, (double *)&v14);\n    GJBaseGameLayer::lightningFlash(a1, &v11, &v10, (int)v2, 0, 0, 5.0, 0.5, 1.0);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::checkpointActivated from 0x1002a4f80 to 0x1002a5098 (280 bytes)\n; \n; 3 xrefs:\n; > PlayLayer::checkpointActivated @ 0x100148cb4\n; > LevelEditorLayer::checkpointActivated @ 0x1004056a4\n; > <???> @ 0x100919090\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:14 +0000\n; \nLDRB            W8, [X1,#0x414]                                        ; +0x0, 0x1002a4f80\nTBNZ            W8, #0, locret_1002A5094                               ; +0x4, 0x1002a4f84\nSUB             SP, SP, #0x70                                          ; +0x8, 0x1002a4f88\nSTP             D11, D10, [SP,#0x60+var_30]                            ; +0xc, 0x1002a4f8c\nSTP             D9, D8, [SP,#0x60+var_20]                              ; +0x10, 0x1002a4f90\nSTP             X20, X19, [SP,#0x60+var_10]                            ; +0x14, 0x1002a4f94\nSTP             X29, X30, [SP,#0x60+var_s0]                            ; +0x18, 0x1002a4f98\nADD             X29, SP, #0x60                                         ; +0x1c, 0x1002a4f9c\nMOV             X20, X1                                                ; +0x20, 0x1002a4fa0\nMOV             X19, X0                                                ; +0x24, 0x1002a4fa4\nLDR             X8, [X1]                                               ; +0x28, 0x1002a4fa8\nLDR             X9, [X8,#0x550]                                        ; +0x2c, 0x1002a4fac\nADD             X8, SP, #0x60+var_38                                   ; +0x30, 0x1002a4fb0\nMOV             X0, X1                                                 ; +0x34, 0x1002a4fb4\nBLR             X9                                                     ; +0x38, 0x1002a4fb8\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x3c, 0x1002a4fbc\nADD             X8, SP, #0x60+var_40                                   ; +0x40, 0x1002a4fc0\nBL              cocos2d__CCDirector__getWinSize                        ; +0x44, 0x1002a4fc4\nLDR             S1, [SP,#0x60+var_38]                                  ; +0x48, 0x1002a4fc8\nMOV             W8, #0xC2480000                                        ; +0x4c, 0x1002a4fcc\nFMOV            S0, W8                                                 ; +0x50, 0x1002a4fd0\nFADD            S0, S1, S0                                             ; +0x54, 0x1002a4fd4\nMOV             W8, #0x42C80000                                        ; +0x58, 0x1002a4fd8\nFMOV            S2, W8                                                 ; +0x5c, 0x1002a4fdc\nFADD            S1, S1, S2                                             ; +0x60, 0x1002a4fe0\nBL              sub_10039AFAC                                          ; +0x64, 0x1002a4fe4\nFMOV            S8, S0                                                 ; +0x68, 0x1002a4fe8\nLDR             S9, [X19,#0x3E4]                                       ; +0x6c, 0x1002a4fec\nLDR             S0, [SP,#0x60+var_3C]                                  ; +0x70, 0x1002a4ff0\nMOV             W8, #0x42480000                                        ; +0x74, 0x1002a4ff4\nFMOV            S1, W8                                                 ; +0x78, 0x1002a4ff8\nFADD            S10, S0, S1                                            ; +0x7c, 0x1002a4ffc\nLDR             X0, [X19,#0xF50]                                       ; +0x80, 0x1002a5000\nLDR             X8, [X0]                                               ; +0x84, 0x1002a5004\nLDR             X8, [X8,#0xA8]                                         ; +0x88, 0x1002a5008\nBLR             X8                                                     ; +0x8c, 0x1002a500c\nFDIV            S0, S10, S0                                            ; +0x90, 0x1002a5010\nFADD            S1, S9, S0                                             ; +0x94, 0x1002a5014\nADD             X0, SP, #0x60+var_48                                   ; +0x98, 0x1002a5018\nFMOV            S0, S8                                                 ; +0x9c, 0x1002a501c\nBL              sub_1000262BC                                          ; +0xa0, 0x1002a5020\nLDR             X0, [X20,#0x378]                                       ; +0xa4, 0x1002a5024\nLDR             X8, [X0]                                               ; +0xa8, 0x1002a5028\nLDR             X8, [X8,#0x3B0]                                        ; +0xac, 0x1002a502c\nBLR             X8                                                     ; +0xb0, 0x1002a5030\nLDRB            W8, [X0,#2]                                            ; +0xb4, 0x1002a5034\nLDRH            W9, [X0]                                               ; +0xb8, 0x1002a5038\nORR             X20, X9, X8,LSL#16                                     ; +0xbc, 0x1002a503c\nADD             X0, SP, #0x60+var_50                                   ; +0xc0, 0x1002a5040\nADD             X1, SP, #0x60+var_48                                   ; +0xc4, 0x1002a5044\nBL              sub_1000262F4                                          ; +0xc8, 0x1002a5048\nADD             X0, SP, #0x60+var_58                                   ; +0xcc, 0x1002a504c\nADD             X1, SP, #0x60+var_38                                   ; +0xd0, 0x1002a5050\nBL              sub_1000262F4                                          ; +0xd4, 0x1002a5054\nADD             X1, SP, #0x60+var_50                                   ; +0xd8, 0x1002a5058\nADD             X2, SP, #0x60+var_58                                   ; +0xdc, 0x1002a505c\nFMOV            S0, #5.0                                               ; +0xe0, 0x1002a5060\nFMOV            S1, #0.5                                               ; +0xe4, 0x1002a5064\nFMOV            S2, #1.0                                               ; +0xe8, 0x1002a5068\nMOV             X0, X19                                                ; +0xec, 0x1002a506c\nMOV             X3, X20                                                ; +0xf0, 0x1002a5070\nMOV             W4, #0                                                 ; +0xf4, 0x1002a5074\nMOV             W5, #0                                                 ; +0xf8, 0x1002a5078\nBL              GJBaseGameLayer__lightningFlash                        ; +0xfc, 0x1002a507c\nLDP             X29, X30, [SP,#0x60+var_s0]                            ; +0x100, 0x1002a5080\nLDP             X20, X19, [SP,#0x60+var_10]                            ; +0x104, 0x1002a5084\nLDP             D9, D8, [SP,#0x60+var_20]                              ; +0x108, 0x1002a5088\nLDP             D11, D10, [SP,#0x60+var_30]                            ; +0x10c, 0x1002a508c\nADD             SP, SP, #0x70 ; 'p'                                    ; +0x110, 0x1002a5090\nRET                                                                    ; +0x114, 0x1002a5094", "xrefs": ["PlayLayer::checkpointActivated @ 0x100148cb4", "LevelEditorLayer::checkpointActivated @ 0x1004056a4", "<???> @ 0x100919090"], "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"}