{"type": "func", "start": 8824628, "end": 8824980, "name": "GJBaseGameLayer::checkpointActivated", "pseudocode": "// \n// GJBaseGameLayer::checkpointActivated from 0x86a734 to 0x86a894 (352 bytes)\n// \n// 4 xrefs:\n// > PlayLayer::checkpointActivated @ 0x5c92c8\n// > LevelEditorLayer::checkpointActivated @ 0x65b594\n// > <???> @ 0x349e0\n// > <???> @ 0x11907d8\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\nvoid GJBaseGameLayer::checkpointActivated(GJBaseGameLayer *a1, CheckpointGameObject *a2)\n{\n  cocos2d::CCDirector *v3; // x0\n  float v4; // s10\n  float v5; // s8\n  float y; // s9\n  float v7; // s0\n  const cocos2d::ccColor3B *v8; // x0\n  __int64 v10; // [xsp+78h] [xbp+78h]\n  cocos2d::CCPoint v11; // [xsp+80h] [xbp+80h] BYREF\n  float v12; // [xsp+8Ch] [xbp+8Ch]\n  cocos2d::CCPoint v13; // [xsp+90h] [xbp+90h] BYREF\n  cocos2d::CCPoint v14; // [xsp+98h] [xbp+98h] BYREF\n  cocos2d::CCPoint v15; // [xsp+A0h] [xbp+A0h] BYREF\n\n  if ( !a2->m_hasNoEffects )\n  {\n    ((void (__fastcall *)(cocos2d::CCPoint *__return_ptr, CheckpointGameObject *))a2->getRealPosition)(&v11, a2);\n    v3 = cocos2d::CCDirector::sharedDirector();\n    cocos2d::CCDirector::getWinSize(v3);\n    v4 = randRange(v11.x - 50.0, v11.x + 100.0);\n    v5 = v12 + 50.0;\n    y = a1->m_gameState.m_cameraPosition.y;\n    v7 = a1->m_objectLayer->getScale(a1->m_objectLayer);\n    cocos2d::CCPoint::CCPoint(&v13, v4, y + (float)(v5 / v7));\n    v8 = a2->m_colorSprite->getColor(a2->m_colorSprite);\n    LOWORD(v10) = *(_WORD *)&v8->r;\n    BYTE2(v10) = v8->b;\n    cocos2d::CCPoint::CCPoint(&v14, &v13);\n    cocos2d::CCPoint::CCPoint(&v15, &v11);\n    GJBaseGameLayer::lightningFlash((__int64)a1, &v14, (__int64)&v15, v10, 0, 0, 5.0, 0.5, 1.0);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::checkpointActivated from 0x86a734 to 0x86a894 (352 bytes)\n; \n; 4 xrefs:\n; > PlayLayer::checkpointActivated @ 0x5c92c8\n; > LevelEditorLayer::checkpointActivated @ 0x65b594\n; > <???> @ 0x349e0\n; > <???> @ 0x11907d8\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\nSTP             X29, X30, [SP,#var_B0]!                                ; +0x0, 0x86a734\nMOV             X29, SP                                                ; +0x4, 0x86a738\nSTP             X19, X20, [SP,#0xB0+var_A0]                            ; +0x8, 0x86a73c\nSTP             D8, D9, [SP,#0xB0+var_70]                              ; +0xc, 0x86a740\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x86a744\nMOV             X20, X0                                                ; +0x14, 0x86a748\nLDRB            W0, [X1,#0x404]                                        ; +0x18, 0x86a74c\nSTP             X21, X22, [SP,#0xB0+var_90]                            ; +0x1c, 0x86a750\nLDR             X2, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x86a754\nSTP             X23, X24, [SP,#0xB0+var_80]                            ; +0x24, 0x86a758\nSTR             D10, [SP,#0xB0+var_60]                                 ; +0x28, 0x86a75c\nLDR             X2, [X2]                                               ; +0x2c, 0x86a760\nSTR             X2, [X29,#0xB0+var_8]                                  ; +0x30, 0x86a764\nCBNZ            W0, loc_86A860                                         ; +0x34, 0x86a768\nLDR             X2, [X1]                                               ; +0x38, 0x86a76c\nADD             X23, X29, #0xB0+var_30                                 ; +0x3c, 0x86a770\nMOV             X0, X1                                                 ; +0x40, 0x86a774\nSTR             X1, [X29,#0xB0+var_48]                                 ; +0x44, 0x86a778\nMOV             X8, X23                                                ; +0x48, 0x86a77c\nADD             X22, X29, #0xB0+var_20                                 ; +0x4c, 0x86a780\nLDR             X3, [X2,#0x540]                                        ; +0x50, 0x86a784\nADD             X21, X29, #0xB0+var_18                                 ; +0x54, 0x86a788\nADD             X24, X29, #0xB0+var_10                                 ; +0x58, 0x86a78c\nBLR             X3                                                     ; +0x5c, 0x86a790\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x60, 0x86a794\nADD             X8, X29, #0xB0+var_28                                  ; +0x64, 0x86a798\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x68, 0x86a79c\nLDR             S2, [X29,#0xB0+var_30]                                 ; +0x6c, 0x86a7a0\nLDR             S8, =0x42480000                                        ; +0x70, 0x86a7a4\nLDR             S1, =0x42C80000                                        ; +0x74, 0x86a7a8\nFSUB            S0, S2, S8; float                                      ; +0x78, 0x86a7ac\nFADD            S1, S2, S1; float                                      ; +0x7c, 0x86a7b0\nBL              _Z9randRangeff; randRange(float,float)                 ; +0x80, 0x86a7b4\nLDR             X3, [X20,#0x1030]                                      ; +0x84, 0x86a7b8\nLDR             S1, [X29,#0xB0+var_24]                                 ; +0x88, 0x86a7bc\nMOV             X0, X3                                                 ; +0x8c, 0x86a7c0\nLDR             X3, [X3]                                               ; +0x90, 0x86a7c4\nFMOV            S10, S0                                                ; +0x94, 0x86a7c8\nFADD            S8, S1, S8                                             ; +0x98, 0x86a7cc\nLDR             S9, [X20,#0x404]                                       ; +0x9c, 0x86a7d0\nLDR             X3, [X3,#0xA8]                                         ; +0xa0, 0x86a7d4\nBLR             X3                                                     ; +0xa4, 0x86a7d8\nFDIV            S1, S8, S0                                             ; +0xa8, 0x86a7dc\nMOV             X0, X22; this                                          ; +0xac, 0x86a7e0\nFMOV            S0, S10; float                                         ; +0xb0, 0x86a7e4\nFADD            S1, S9, S1; float                                      ; +0xb4, 0x86a7e8\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xb8, 0x86a7ec\nLDR             X1, [X29,#0xB0+var_48]                                 ; +0xbc, 0x86a7f0\nLDR             X1, [X1,#0x368]                                        ; +0xc0, 0x86a7f4\nMOV             X0, X1                                                 ; +0xc4, 0x86a7f8\nLDR             X1, [X1]                                               ; +0xc8, 0x86a7fc\nLDR             X1, [X1,#0x3A0]                                        ; +0xcc, 0x86a800\nBLR             X1                                                     ; +0xd0, 0x86a804\nMOV             X3, X0                                                 ; +0xd4, 0x86a808\nMOV             X1, X22; cocos2d::CCPoint *                            ; +0xd8, 0x86a80c\nMOV             X0, X21; this                                          ; +0xdc, 0x86a810\nLDRH            W4, [X3]                                               ; +0xe0, 0x86a814\nLDRB            W3, [X3,#2]                                            ; +0xe4, 0x86a818\nSTRH            W4, [X29,#0xB0+var_38]                                 ; +0xe8, 0x86a81c\nSTRB            W3, [X29,#0xB0+var_38+2]                               ; +0xec, 0x86a820\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0xf0, 0x86a824\nSTR             X24, [X29,#0xB0+var_48]                                ; +0xf4, 0x86a828\nMOV             X0, X24; this                                          ; +0xf8, 0x86a82c\nMOV             X1, X23; cocos2d::CCPoint *                            ; +0xfc, 0x86a830\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x100, 0x86a834\nLDR             X2, [X29,#0xB0+var_48]                                 ; +0x104, 0x86a838\nMOV             X0, X20                                                ; +0x108, 0x86a83c\nLDR             X3, [X29,#0xB0+var_38]                                 ; +0x10c, 0x86a840\nMOV             X1, X21                                                ; +0x110, 0x86a844\nMOV             W4, #0                                                 ; +0x114, 0x86a848\nMOV             W5, #0                                                 ; +0x118, 0x86a84c\nFMOV            S0, #5.0                                               ; +0x11c, 0x86a850\nFMOV            S1, #0.5                                               ; +0x120, 0x86a854\nFMOV            S2, #1.0                                               ; +0x124, 0x86a858\nBL              _ZN15GJBaseGameLayer14lightningFlashEN7cocos2d7CCPointES1_NS0_10_ccColor3BEffibf; GJBaseGameLayer::lightningFlash(cocos2d::CCPoint,cocos2d::CCPoint,cocos2d::_ccColor3B,float,float,int,bool,float) ; +0x128, 0x86a85c\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x12c, 0x86a860\nLDR             X1, [X29,#0xB0+var_8]                                  ; +0x130, 0x86a864\nLDR             X0, [X19]                                              ; +0x134, 0x86a868\nCMP             X1, X0                                                 ; +0x138, 0x86a86c\nB.NE            loc_86A890                                             ; +0x13c, 0x86a870\nLDP             X19, X20, [SP,#0xB0+var_A0]                            ; +0x140, 0x86a874\nLDP             D8, D9, [SP,#0xB0+var_70]                              ; +0x144, 0x86a878\nLDP             X21, X22, [SP,#0xB0+var_90]                            ; +0x148, 0x86a87c\nLDP             X23, X24, [SP,#0xB0+var_80]                            ; +0x14c, 0x86a880\nLDR             D10, [SP,#0xB0+var_60]                                 ; +0x150, 0x86a884\nLDP             X29, X30, [SP+0xB0+var_B0],#0xB0                       ; +0x154, 0x86a888\nRET                                                                    ; +0x158, 0x86a88c\nBL              .__stack_chk_fail                                      ; +0x15c, 0x86a890", "xrefs": ["PlayLayer::checkpointActivated @ 0x5c92c8", "LevelEditorLayer::checkpointActivated @ 0x65b594", "<???> @ 0x349e0", "<???> @ 0x11907d8"], "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"}