// // GJBaseGameLayer::checkpointActivated from 0x140350df0 to 0x14035102d (573 bytes) // // 4 xrefs: // > LevelEditorLayer::checkpointActivated @ 0x1404008a7 // > PlayLayer::checkpointActivated @ 0x140514190 // > @ 0x14076b8b8 // > @ 0x1409202dc // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:30:47 +0000 // // Hidden C++ exception states: #wind=1 void __fastcall GJBaseGameLayer::checkpointActivated(__int64 a1, __int64 a2) { __int64 v4; // rcx __int64 v5; // rax float v6; // xmm7_4 float v7; // xmm6_4 float v8; // xmm9_4 float v9; // xmm6_4 float v10; // xmm6_4 __int64 v11; // rax __int64 v12; // rax __int64 v13; // rbx __int64 v14; // rax __int64 v15; // rsi __int64 v16; // rcx const struct cocos2d::CCPoint *v17; // rax const struct cocos2d::CCPoint *v18; // rbx const struct cocos2d::CCPoint *v19; // rax cocos2d::CCObject *v20; // rbx _BYTE v21[8]; // [rsp+20h] [rbp-78h] BYREF _BYTE v22[8]; // [rsp+28h] [rbp-70h] BYREF _BYTE v23[8]; // [rsp+30h] [rbp-68h] BYREF _BYTE v24[8]; // [rsp+38h] [rbp-60h] BYREF void *v25; // [rsp+40h] [rbp-58h] BYREF _BYTE v26[8]; // [rsp+48h] [rbp-50h] BYREF float v27; // [rsp+A8h] [rbp+10h] BYREF __int16 v28; // [rsp+B0h] [rbp+18h] BYREF char v29; // [rsp+B2h] [rbp+1Ah] char v30; // [rsp+B8h] [rbp+20h] BYREF float v31; // [rsp+BCh] [rbp+24h] if ( !*(_BYTE *)(a2 + 1052) ) { (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)a2 + 1208LL))(a2, &v27); v5 = cocos2d::CCDirector::sharedDirector(v4); cocos2d::CCDirector::getWinSize(v5, &v30); v6 = v27 - 50.0; v7 = v27 + 100.0; v8 = (float)((float)((float)rand() / 32767.0) * (float)(v7 - v6)) + v6; v9 = v31 + 50.0; v10 = (float)(v9 / (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4296) + 168LL))(*(_QWORD *)(a1 + 4296))) + *(float *)(a1 + 1044); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, v8, v10); v11 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(*(_QWORD *)(a2 + 896) + 320LL) + 8LL))(*(_QWORD *)(a2 + 896) + 320LL); v28 = *(_WORD *)v11; v29 = *(_BYTE *)(v11 + 2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v23, (const struct cocos2d::CCPoint *)&v27); v13 = v12; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, (const struct cocos2d::CCPoint *)v21); v15 = v14; cocos2d::CCPoint::operator-(v13, v22, v14); v16 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v25 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v25); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v16 = qword_14090BFD0; } if ( !*(_BYTE *)(v16 + 957) ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v25, (const struct cocos2d::CCPoint *)&dword_14090AA70); v18 = v17; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, (const struct cocos2d::CCPoint *)v22); v20 = cocos2d::CCLightning::lightningWithStrikePoint(v19, v18); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v20 + 184LL))(v20, v15); (**((void (__fastcall ***)(__int64, __int16 *))v20 + 40))((__int64)v20 + 320, &v28); *((_DWORD *)v20 + 92) = 1084227584; *((_WORD *)v20 + 186) = 257; *((_DWORD *)v20 + 95) = 1065353216; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *, _QWORD))(**(_QWORD **)(a1 + 4296) + 456LL))( *(_QWORD *)(a1 + 4296), v20, 0); } } }