//
// GJBaseGameLayer::activateCustomRing from 0x59b8d4 to 0x59b95e (138 bytes)
//
// 1 xrefs:
// > PlayerObject::ringJump @ 0x44996a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:53:13 +0000
//
char **__fastcall GJBaseGameLayer::activateCustomRing(GJBaseGameLayer *this, RingObject *a2)
{
char *v3; // r4
int v4; // r1
int v5; // lr
int v6; // r7
int v7; // r2
void (__fastcall *v8)(GJBaseGameLayer *, int, _DWORD, _DWORD, _DWORD, _DWORD, char **, int, int); // r3
void (__fastcall *v9)(GJBaseGameLayer *, int, int, char **, int, int); // r12
int v10; // r2
char *v12; // [sp+18h] [bp-14h] BYREF
char *v13; // [sp+1Ch] [bp-10h]
char *v14; // [sp+20h] [bp-Ch]
v3 = (char *)*((unsigned __int8 *)a2 + 1649);
v4 = *((_DWORD *)a2 + 321);
v5 = *((_DWORD *)a2 + 195);
v6 = *((_DWORD *)a2 + 373);
v7 = *(_DWORD *)this;
if ( *((_BYTE *)a2 + 1649) )
{
v8 = *(void (__fastcall **)(GJBaseGameLayer *, int, _DWORD, _DWORD, _DWORD, _DWORD, char **, int, int))(v7 + 628);
v12 = nullptr;
v13 = nullptr;
v14 = nullptr;
v8(this, v4, 0, v8, 0, 0, &v12, v5, v6);
}
else
{
v9 = *(void (__fastcall **)(GJBaseGameLayer *, int, int, char **, int, int))(v7 + 620);
v10 = *((unsigned __int8 *)a2 + 1457);
v12 = v3;
v13 = v3;
v14 = v3;
v9(this, v4, v10, &v12, v5, v6);
}
return std::__vector_base::~__vector_base(&v12);
}