//
// GJBaseGameLayer::activateCustomRing from 0x100135d60 to 0x100135df6 (150 bytes)
//
// 1 xrefs:
// > PlayerObject::ringJump @ 0x1004146e9
//
// 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::activateCustomRing(GJBaseGameLayer *a1, RingObject *a2)
{
__int64 m_targetGroupID; // rsi
_BOOL8 m_activateGroup; // rdx
void *__p[2]; // [rsp+0h] [rbp-20h] BYREF
__int64 v6; // [rsp+10h] [rbp-10h]
m_targetGroupID = (unsigned int)a2->m_targetGroupID;
if ( a2->m_isSpawnOnly )
{
*(_OWORD *)__p = 0;
v6 = 0;
((void (__fastcall *)(GJBaseGameLayer *, __int64, _QWORD, void **, _QWORD, _QWORD, double))a1->spawnGroup)(
a1,
m_targetGroupID,
0,
__p,
(unsigned int)a2->m_uniqueID,
(unsigned int)a2->m_controlID,
0.0);
}
else
{
m_activateGroup = a2->m_activateGroup;
*(_OWORD *)__p = 0;
v6 = 0;
((void (__fastcall *)(GJBaseGameLayer *, __int64, _BOOL8, void **, _QWORD, _QWORD))a1->toggleGroupTriggered)(
a1,
m_targetGroupID,
m_activateGroup,
__p,
(unsigned int)a2->m_uniqueID,
(unsigned int)a2->m_controlID);
}
if ( __p[0] )
{
__p[1] = __p[0];
operator delete(__p[0]);
}
}