//
// GJBaseGameLayer::checkpointActivated from 0x100163520 to 0x100163651 (305 bytes)
//
// 3 xrefs:
// > PlayLayer::checkpointActivated @ 0x1000bb145
// > LevelEditorLayer::checkpointActivated @ 0x1000f33c6
// > ??> @ 0x1008c1990
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall GJBaseGameLayer::checkpointActivated(GJBaseGameLayer *a1, CheckpointGameObject *a2)
{
float v2; // xmm3_4
CheckpointGameObject *v3; // r15
cocos2d::CCDirector *v4; // rsi
float v5; // xmm0_4
float v6; // xmm4_4
int v7; // [rsp-64h] [rbp-64h] BYREF
int v8; // [rsp-5Ch] [rbp-5Ch] BYREF
int v9; // [rsp-54h] [rbp-54h] BYREF
float v10; // [rsp-4Ch] [rbp-4Ch] BYREF
float v11[2]; // [rsp-44h] [rbp-44h] BYREF
float v12; // [rsp-3Ch] [rbp-3Ch]
float y; // [rsp-38h] [rbp-38h]
float v14; // [rsp-34h] [rbp-34h]
__int64 v15; // [rsp-8h] [rbp-8h] BYREF
if ( !a2->m_hasNoEffects )
{
v3 = a2;
((void (__fastcall *)(float *))a2->getRealPosition)(&v10);
v4 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v11);
v12 = sub_1001F9D80(v11, v4, v10 + -50.0, v10 + 100.0);
y = a1->m_gameState.m_cameraPosition.y;
v14 = v11[1] + 50.0;
v5 = ((float (__fastcall *)(cocos2d::CCLayer *))a1->m_objectLayer->getScale)(a1->m_objectLayer);
sub_10028CBE0(&v7, v12, (float)(v14 / v5) + y);
LOWORD(v3) = *(_WORD *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v3->m_colorSprite->getColor)(v3->m_colorSprite);
sub_10028CC60(&v8);
sub_10028CC60(&v9);
GJBaseGameLayer::lightningFlash(
a1,
(cocos2d::CCPoint)1084227584LL,
(cocos2d::CCPoint)1056964608LL,
(cocos2d::ccColor3B)&v8,
1.0,
v2,
(unsigned int)&v15 - 76,
(bool)v3,
v6);
}
}