//
// GJBaseGameLayer::playerTouchedRing from 0x100284a60 to 0x100284b24 (196 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::collisionCheckObjects @ 0x100283c74
// > GJBaseGameLayer::collisionCheckObjects @ 0x100283fbc
//
// 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 11:01:57 +0000
//
__int64 __fastcall GJBaseGameLayer::playerTouchedRing(__int64 a1, __int64 a2, __int64 a3)
{
__int64 result; // x0
int v7; // [xsp+0h] [xbp-30h] BYREF
int *v8; // [xsp+8h] [xbp-28h] BYREF
if ( (*(_BYTE *)(a3 + 760) & 1) == 0 )
{
v7 = *(_DWORD *)(a3 + 916);
v8 = &v7;
sub_10001A978(a1 + 1264, &v7, (__int64)&unk_100763014, &v8)[3] = a3;
GJBaseGameLayer::gameEventTriggered(a1, 7, 0, 0);
}
sub_1002C5AE0(a2, a3);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a3 + 1824LL))(a3, *(unsigned int *)(a1 + 944));
result = PlayerObject::isFlying(a2);
if ( (result & 1) == 0 && (*(_BYTE *)(a3 + 1840) & 1) == 0 )
return PlayerObject::ringJump(a2, a3, 0);
return result;
}