//
// GJBaseGameLayer::activateCustomRing from 0x99f780 to 0x99f888 (264 bytes)
//
// 2 xrefs:
// > PlayerObject::ringJump @ 0x76a294
// > ??> @ 0x9afa8
//
// 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:58:06 +0000
//
__int64 __fastcall GJBaseGameLayer::activateCustomRing(GJBaseGameLayer *this, RingObject *a2)
{
int v3; // w2
__int64 v4; // x1
void (__fastcall *v5)(GJBaseGameLayer *, __int64, _QWORD, void **, __int64, __int64, double); // x6
__int64 v6; // x4
__int64 v7; // x1
__int64 v8; // x5
void (__fastcall *v10)(GJBaseGameLayer *, __int64, __int64, void **, __int64, __int64); // x6
__int64 v11; // x2
__int64 v12; // x1
__int64 v13; // x4
__int64 v14; // x5
void *v15; // [xsp+20h] [xbp+20h] BYREF
char *v16; // [xsp+28h] [xbp+28h]
__int64 v17; // [xsp+30h] [xbp+30h]
v3 = *((unsigned __int8 *)a2 + 1841);
v4 = *(_QWORD *)this;
if ( v3 )
{
v5 = *(void (__fastcall **)(GJBaseGameLayer *, __int64, _QWORD, void **, __int64, __int64, double))(v4 + 1256);
v6 = *((unsigned int *)a2 + 229);
v7 = *((unsigned int *)a2 + 366);
v8 = *((unsigned int *)a2 + 418);
v15 = nullptr;
v16 = nullptr;
v17 = 0;
v5(this, v7, 0, &v15, v6, v8, 0.0);
}
else
{
v10 = *(void (__fastcall **)(GJBaseGameLayer *, __int64, __int64, void **, __int64, __int64))(v4 + 1240);
v11 = *((unsigned __int8 *)a2 + 1637);
v12 = *((unsigned int *)a2 + 366);
v13 = *((unsigned int *)a2 + 229);
v14 = *((unsigned int *)a2 + 418);
v15 = nullptr;
v16 = nullptr;
v17 = 0;
v10(this, v12, v11, &v15, v13, v14);
}
if ( v15 )
{
if ( v15 != v16 )
v16 += 4 * ~((unsigned __int64)(v16 - 4 - (_BYTE *)v15) >> 2);
operator delete(v15);
}
return _stack_chk_guard;
}