//
// LevelEditorLayer::checkpointActivated from 0x786fac to 0x78711c (368 bytes)
//
// 2 xrefs:
// > ??> @ 0x9ccb8
// > ??> @ 0x1435f98
//
// This function is hookable on this platform (idp: arm, 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 12:53:25 +0000
//
__int64 __fastcall LevelEditorLayer::checkpointActivated(LevelEditorLayer *this, CheckpointGameObject *a2)
{
__int64 v4; // x1
__int64 v5; // x4
__int64 v6; // x5
void (__fastcall *v7)(LevelEditorLayer *, __int64, _QWORD, void **, __int64, __int64, double); // x6
__int64 v8; // x1
__int64 v9; // x4
__int64 v10; // x5
void (__fastcall *v11)(LevelEditorLayer *, __int64, _QWORD, void **, __int64, __int64, double); // x6
void *v13; // [xsp+30h] [xbp+30h] BYREF
char *v14; // [xsp+38h] [xbp+38h]
__int64 v15; // [xsp+40h] [xbp+40h]
v4 = *((unsigned int *)a2 + 462);
if ( (int)v4 > 0 )
{
v5 = *((unsigned int *)a2 + 229);
v6 = *((unsigned int *)a2 + 418);
v7 = *(void (__fastcall **)(LevelEditorLayer *, __int64, _QWORD, void **, __int64, __int64, double))(*(_QWORD *)this + 1256LL);
v13 = nullptr;
v14 = nullptr;
v15 = 0;
v7(this, v4, 0, &v13, v5, v6, 0.0);
if ( v13 )
{
if ( v13 != v14 )
v14 += 4 * ~((unsigned __int64)(v14 - 4 - (_BYTE *)v13) >> 2);
operator delete(v13);
}
}
v8 = *((unsigned int *)a2 + 366);
if ( (int)v8 > 0 )
{
v9 = *((unsigned int *)a2 + 229);
v10 = *((unsigned int *)a2 + 418);
v11 = *(void (__fastcall **)(LevelEditorLayer *, __int64, _QWORD, void **, __int64, __int64, double))(*(_QWORD *)this + 1256LL);
v13 = nullptr;
v14 = nullptr;
v15 = 0;
v11(this, v8, 0, &v13, v9, v10, 0.0);
if ( v13 )
{
if ( v14 != v13 )
v14 += 4 * ~((unsigned __int64)(v14 - 4 - (_BYTE *)v13) >> 2);
operator delete(v13);
}
}
GJBaseGameLayer::gameEventTriggered(this, 60, 0, 0);
GJBaseGameLayer::checkpointActivated(this, a2);
return _stack_chk_guard;
}