//
// LevelEditorLayer::checkpointActivated from 0x65b50c to 0x65b5dc (208 bytes)
//
// 2 xrefs:
// > ??> @ 0x74e20
// > ??> @ 0x1155358
//
// 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 LevelEditorLayer::checkpointActivated(LevelEditorLayer *a1, CheckpointGameObject *a2)
{
__int64 m_targetGroupID; // x1
__int64 m_uniqueID; // x4
__int64 m_controlID; // x5
void (__fastcall *spawnGroup)(GJBaseGameLayer *__hidden, int, bool, double, const std::vector *, int, int); // x6
void *p[3]; // [xsp+30h] [xbp+30h] BYREF
m_targetGroupID = (unsigned int)a2->m_targetGroupID;
if ( (int)m_targetGroupID > 0 )
{
m_uniqueID = (unsigned int)a2->m_uniqueID;
m_controlID = (unsigned int)a2->m_controlID;
spawnGroup = a1->spawnGroup;
memset(p, 0, sizeof(p));
((void (__fastcall *)(LevelEditorLayer *, __int64, _QWORD, void **, __int64, __int64, double))spawnGroup)(
a1,
m_targetGroupID,
0,
p,
m_uniqueID,
m_controlID,
0.0);
if ( p[0] )
operator delete(p[0]);
}
GJBaseGameLayer::gameEventTriggered(a1, Checkpoint, 0, 0);
GJBaseGameLayer::checkpointActivated(a1, a2);
}