//
// GJBaseGameLayer::checkpointActivated from 0x86a734 to 0x86a894 (352 bytes)
//
// 4 xrefs:
// > PlayLayer::checkpointActivated @ 0x5c92c8
// > LevelEditorLayer::checkpointActivated @ 0x65b594
// > ??> @ 0x349e0
// > ??> @ 0x11907d8
//
// 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 GJBaseGameLayer::checkpointActivated(GJBaseGameLayer *a1, CheckpointGameObject *a2)
{
cocos2d::CCDirector *v3; // x0
float v4; // s10
float v5; // s8
float y; // s9
float v7; // s0
const cocos2d::ccColor3B *v8; // x0
__int64 v10; // [xsp+78h] [xbp+78h]
cocos2d::CCPoint v11; // [xsp+80h] [xbp+80h] BYREF
float v12; // [xsp+8Ch] [xbp+8Ch]
cocos2d::CCPoint v13; // [xsp+90h] [xbp+90h] BYREF
cocos2d::CCPoint v14; // [xsp+98h] [xbp+98h] BYREF
cocos2d::CCPoint v15; // [xsp+A0h] [xbp+A0h] BYREF
if ( !a2->m_hasNoEffects )
{
((void (__fastcall *)(cocos2d::CCPoint *__return_ptr, CheckpointGameObject *))a2->getRealPosition)(&v11, a2);
v3 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v3);
v4 = randRange(v11.x - 50.0, v11.x + 100.0);
v5 = v12 + 50.0;
y = a1->m_gameState.m_cameraPosition.y;
v7 = a1->m_objectLayer->getScale(a1->m_objectLayer);
cocos2d::CCPoint::CCPoint(&v13, v4, y + (float)(v5 / v7));
v8 = a2->m_colorSprite->getColor(a2->m_colorSprite);
LOWORD(v10) = *(_WORD *)&v8->r;
BYTE2(v10) = v8->b;
cocos2d::CCPoint::CCPoint(&v14, &v13);
cocos2d::CCPoint::CCPoint(&v15, &v11);
GJBaseGameLayer::lightningFlash((__int64)a1, &v14, (__int64)&v15, v10, 0, 0, 5.0, 0.5, 1.0);
}
}