//
// GJBaseGameLayer::playerTouchedRing from 0x9c9150 to 0x9c91f8 (168 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::collisionCheckObjects @ 0x9e89c8
// > GJBaseGameLayer::collisionCheckObjects @ 0x9e9328
// > ??> @ 0xa8658
//
// 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:34 +0000
//
__int64 __fastcall GJBaseGameLayer::playerTouchedRing(GJBaseGameLayer *this, cocos2d::CCArray **a2, RingObject *a3)
{
__int64 result; // x0
if ( !*((_BYTE *)a3 + 760) )
{
GJBaseGameLayer::registerStateObject(this, a3);
GJBaseGameLayer::gameEventTriggered((__int64)this, 7u, 0, 0);
}
PlayerObject::addToTouchedRings(a2, a3);
(*(void (__fastcall **)(RingObject *, _QWORD))(*(_QWORD *)a3 + 1824LL))(a3, *((unsigned int *)this + 236));
result = (unsigned __int8)PlayerObject::isFlying((PlayerObject *)a2);
if ( !(_BYTE)result )
{
result = *((unsigned __int8 *)a3 + 1840);
if ( !*((_BYTE *)a3 + 1840) )
return PlayerObject::ringJump((PlayerObject *)a2, a3, 0);
}
return result;
}