//
// GJBaseGameLayer::playerTouchedRing from 0x14031f5a0 to 0x14031f6a8 (264 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::collisionCheckObjects @ 0x14031cdcc
// > GJBaseGameLayer::collisionCheckObjects @ 0x14031cddc
// > ??> @ 0x14091ed34
//
// This function is hookable on this platform (idp: pc, 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:30:22 +0000
//
__int64 __fastcall GJBaseGameLayer::playerTouchedRing(__int64 a1, __int64 a2, __int64 a3)
{
__int64 result; // rax
_BYTE v7[24]; // [rsp+20h] [rbp-18h] BYREF
int v8; // [rsp+40h] [rbp+8h] BYREF
if ( !*(_BYTE *)(a3 + 760) )
{
v8 = *(_DWORD *)(a3 + 924);
*(_QWORD *)(*(_QWORD *)sub_140358760(a1 + 1352, v7, &v8) + 24LL) = a3;
GJBaseGameLayer::gameEventTriggered(a1, 7, 0, 0);
}
if ( !cocos2d::CCArray::containsObject(*(cocos2d::CCArray **)(a2 + 2624), (struct cocos2d::CCObject *)a3) )
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a2 + 2624), (struct cocos2d::CCObject *)a3);
v8 = *(_DWORD *)(a3 + 924);
sub_140068190(a2 + 2632, (__int64)v7, (unsigned __int8 *)&v8);
result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a3 + 1672LL))(a3, *(unsigned int *)(a1 + 992));
if ( !*(_BYTE *)(a2 + 2497)
&& !*(_BYTE *)(a2 + 2498)
&& !*(_BYTE *)(a2 + 2500)
&& !*(_BYTE *)(a2 + 2508)
&& !*(_BYTE *)(a3 + 1856) )
{
return PlayerObject::ringJump(a2, a3, 0);
}
return result;
}