{"type": "func", "start": 4691760, "end": 4692006, "name": "GJBaseGameLayer::checkpointActivated", "pseudocode": "// \n// GJBaseGameLayer::checkpointActivated from 0x479730 to 0x479826 (246 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::checkpointActivated @ 0x30e61e\n// > LevelEditorLayer::checkpointActivated @ 0x36e660\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  _BOOL4 m_hasNoEffects; // r8\n  cocos2d::CCDirector *v5; // r0\n  float v6; // r0\n  float y; // s17\n  float v8; // s16\n  float v9; // r10\n  float v10; // r0\n  const cocos2d::ccColor3B *v11; // r0\n  int v12; // [sp+18h] [bp-30h]\n  cocos2d::CCPoint v13; // [sp+1Ch] [bp-2Ch] BYREF\n  cocos2d::CCSize v14; // [sp+24h] [bp-24h] BYREF\n  cocos2d::CCPoint v15; // [sp+2Ch] [bp-1Ch] BYREF\n  cocos2d::CCPoint v16; // [sp+34h] [bp-14h] BYREF\n  cocos2d::CCPoint v17; // [sp+3Ch] [bp-Ch] BYREF\n\n  m_hasNoEffects = a2->m_hasNoEffects;\n  if ( !a2->m_hasNoEffects )\n  {\n    ((void (__fastcall *)(cocos2d::CCPoint *))a2->getRealPosition)(&v13);\n    v5 = cocos2d::CCDirector::sharedDirector();\n    cocos2d::CCDirector::getWinSize(&v14, v5);\n    v6 = randRange(v13.x - 50.0, v13.x + 100.0);\n    y = a1->m_gameState.m_cameraPosition.y;\n    v8 = v14.height + 50.0;\n    v9 = v6;\n    v10 = a1->m_objectLayer->getScale(a1->m_objectLayer);\n    cocos2d::CCPoint::CCPoint(&v15, v9, y + (float)(v8 / v10));\n    v11 = a2->m_colorSprite->getColor(a2->m_colorSprite);\n    LOWORD(v12) = *(_WORD *)&v11->r;\n    BYTE2(v12) = v11->b;\n    cocos2d::CCPoint::CCPoint(&v16, &v15);\n    cocos2d::CCPoint::CCPoint(&v17, &v13);\n    GJBaseGameLayer::lightningFlash((int)a1, &v16, (int)&v17, v12, 5.0, 1056964608, m_hasNoEffects, m_hasNoEffects, 1.0);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::checkpointActivated from 0x479730 to 0x479826 (246 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::checkpointActivated @ 0x30e61e\n; > LevelEditorLayer::checkpointActivated @ 0x36e660\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\nLDR             R3, =(__stack_chk_guard_ptr - 0x47973A)                ; +0x0, 0x479730\nPUSH.W          {R4-R10,LR}                                            ; +0x2, 0x479732\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x479736\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x479738\nVPUSH           {D8}                                                   ; +0xa, 0x47973a\nMOV             R7, R0                                                 ; +0xe, 0x47973e\nLDR             R2, [R3]                                               ; +0x10, 0x479740\nMOV             R9, R1                                                 ; +0x12, 0x479742\nLDRB.W          R8, [R1,#0x384]                                        ; +0x14, 0x479744\nMOV             R6, R3                                                 ; +0x18, 0x479748\nSUB             SP, SP, #0x48                                          ; +0x1a, 0x47974a\nSTR             R2, [SP,#0x48+var_4]                                   ; +0x1c, 0x47974c\nCMP.W           R8, #0                                                 ; +0x1e, 0x47974e\nBNE             loc_479810                                             ; +0x22, 0x479752\nLDR             R3, [R1]                                               ; +0x24, 0x479754\nADD             R4, SP, #0x48+var_2C                                   ; +0x26, 0x479756\nVLDR            S16, =50.0                                             ; +0x28, 0x479758\nADD             R5, SP, #0x48+var_1C                                   ; +0x2c, 0x47975c\nMOV             R0, R4                                                 ; +0x2e, 0x47975e\nLDR.W           R3, [R3,#0x2A0]                                        ; +0x30, 0x479760\nBLX             R3                                                     ; +0x34, 0x479764\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x36, 0x479766\nMOV             R1, R0                                                 ; +0x3a, 0x47976a\nADD             R0, SP, #0x48+var_24; this                             ; +0x3c, 0x47976c\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x3e, 0x47976e\nVLDR            S15, [SP,#0x48+var_2C]                                 ; +0x42, 0x479772\nVSUB.F32        S14, S15, S16                                          ; +0x46, 0x479776\nVMOV            R0, S14; float                                         ; +0x4a, 0x47977a\nVLDR            S14, =100.0                                            ; +0x4e, 0x47977e\nVADD.F32        S15, S15, S14                                          ; +0x52, 0x479782\nVMOV            R1, S15; float                                         ; +0x56, 0x479786\nBL              _Z9randRangeff; randRange(float,float)                 ; +0x5a, 0x47978a\nVLDR            S15, [SP,#0x48+var_20]                                 ; +0x5e, 0x47978e\nVLDR            S17, [R7,#0x364]                                       ; +0x62, 0x479792\nVADD.F32        S16, S15, S16                                          ; +0x66, 0x479796\nMOV             R10, R0                                                ; +0x6a, 0x47979a\nLDR.W           R0, [R7,#0x9F0]                                        ; +0x6c, 0x47979c\nLDR             R3, [R0]                                               ; +0x70, 0x4797a0\nLDR             R3, [R3,#0x54]                                         ; +0x72, 0x4797a2\nBLX             R3                                                     ; +0x74, 0x4797a4\nMOV             R1, R10; float                                         ; +0x76, 0x4797a6\nVMOV            S15, R0                                                ; +0x78, 0x4797a8\nMOV             R0, R5; this                                           ; +0x7c, 0x4797ac\nVDIV.F32        S16, S16, S15                                          ; +0x7e, 0x4797ae\nVADD.F32        S15, S17, S16                                          ; +0x82, 0x4797b2\nVMOV            R2, S15; float                                         ; +0x86, 0x4797b6\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x8a, 0x4797ba\nLDR.W           R0, [R9,#0x2EC]                                        ; +0x8e, 0x4797be\nADD.W           R9, SP, #0x48+var_14                                   ; +0x92, 0x4797c2\nLDR             R3, [R0]                                               ; +0x96, 0x4797c6\nLDR.W           R3, [R3,#0x1D0]                                        ; +0x98, 0x4797c8\nBLX             R3                                                     ; +0x9c, 0x4797cc\nMOV             R1, R5; cocos2d::CCPoint *                             ; +0x9e, 0x4797ce\nADD             R5, SP, #0x48+var_C                                    ; +0xa0, 0x4797d0\nLDRH            R2, [R0]                                               ; +0xa2, 0x4797d2\nLDRB            R3, [R0,#2]                                            ; +0xa4, 0x4797d4\nMOV             R0, R9; this                                           ; +0xa6, 0x4797d6\nSTRH.W          R2, [SP,#0x48+var_30]                                  ; +0xa8, 0x4797d8\nSTRB.W          R3, [SP,#0x48+var_30+2]                                ; +0xac, 0x4797dc\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0xb0, 0x4797e0\nMOV             R1, R4; cocos2d::CCPoint *                             ; +0xb4, 0x4797e4\nMOV             R0, R5; this                                           ; +0xb6, 0x4797e6\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0xb8, 0x4797e8\nLDR             R3, =0x40A00000                                        ; +0xbc, 0x4797ec\nSTR.W           R8, [SP,#0x48+var_40]                                  ; +0xbe, 0x4797ee\nMOV             R0, R7                                                 ; +0xc2, 0x4797f2\nSTR.W           R8, [SP,#0x48+var_3C]                                  ; +0xc4, 0x4797f4\nMOV             R1, R9                                                 ; +0xc8, 0x4797f8\nSTR             R3, [SP,#0x48+var_48]                                  ; +0xca, 0x4797fa\nMOV             R2, R5                                                 ; +0xcc, 0x4797fc\nMOV.W           R3, #0x3F000000                                        ; +0xce, 0x4797fe\nSTR             R3, [SP,#0x48+var_44]                                  ; +0xd2, 0x479802\nMOV.W           R3, #0x3F800000                                        ; +0xd4, 0x479804\nSTR             R3, [SP,#0x48+var_38]                                  ; +0xd8, 0x479808\nLDR             R3, [SP,#0x48+var_30]                                  ; +0xda, 0x47980a\nBL              _ZN15GJBaseGameLayer14lightningFlashEN7cocos2d7CCPointES1_NS0_10_ccColor3BEffibf; GJBaseGameLayer::lightningFlash(cocos2d::CCPoint,cocos2d::CCPoint,cocos2d::_ccColor3B,float,float,int,bool,float) ; +0xdc, 0x47980c\nLDR             R2, [SP,#0x48+var_4]                                   ; +0xe0, 0x479810\nLDR             R3, [R6]                                               ; +0xe2, 0x479812\nCMP             R2, R3                                                 ; +0xe4, 0x479814\nBEQ             loc_47981C                                             ; +0xe6, 0x479816\nBLX             __stack_chk_fail                                       ; +0xe8, 0x479818\nADD             SP, SP, #0x48 ; 'H'                                    ; +0xec, 0x47981c\nVPOP            {D8}                                                   ; +0xee, 0x47981e\nPOP.W           {R4-R10,PC}                                            ; +0xf2, 0x479822", "xrefs": ["PlayLayer::checkpointActivated @ 0x30e61e", "LevelEditorLayer::checkpointActivated @ 0x36e660"], "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"}