//
// GJBaseGameLayer::playerTouchedRing from 0x140217e40 to 0x140217f47 (263 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::collisionCheckObjects @ 0x140215a3b
// > GJBaseGameLayer::collisionCheckObjects @ 0x140215a4b
// > ??> @ 0x1406cd1f4
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GJBaseGameLayer::playerTouchedRing(GJBaseGameLayer *a1, PlayerObject *a2, RingObject *a3)
{
_BYTE v6[24]; // [rsp+20h] [rbp-18h] BYREF
int m_uniqueID; // [rsp+40h] [rbp+8h] BYREF
if ( !a3->m_isRingPoweredOn )
{
m_uniqueID = a3->m_uniqueID;
*(_QWORD *)(*(_QWORD *)sub_1402505B0(&a1->m_gameState.m_stateObjects, v6, &m_uniqueID) + 24LL) = a3;
GJBaseGameLayer::gameEventTriggered(a1, OrbTouched, 0, 0);
}
if ( !cocos2d::CCArray::containsObject(a2->m_touchingRings, a3) )
cocos2d::CCArray::addObject(a2->m_touchingRings, a3);
m_uniqueID = a3->m_uniqueID;
sub_140060D70((__int64)&a2->m_touchedRings, (__int64)v6, (unsigned __int8 *)&m_uniqueID);
a3->powerOnObject(a3, a1->m_gameState.m_commandIndex);
if ( !a2->m_isShip && !a2->m_isBird && !a2->m_isDart && !a2->m_isSwing && !a3->m_claimTouch )
PlayerObject::ringJump(a2, a3, 0);
}