//
// PlayerObject::resetTouchedRings from 0x1002c3bdc to 0x1002c3c70 (148 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::update @ 0x10029ab08
// > GJBaseGameLayer::update @ 0x10029ab20
//
// 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:02:32 +0000
//
_QWORD *__fastcall PlayerObject::resetTouchedRings(__int64 a1, char a2)
{
__int64 v3; // x0
__int64 v4; // x20
int v6; // [xsp+Ch] [xbp-14h] BYREF
v3 = *(_QWORD *)(a1 + 2544);
if ( (a2 & 1) != 0 )
{
sub_1002E7674(v3);
}
else if ( (unsigned int)sub_1002E757C(v3) )
{
v4 = 0;
do
{
v6 = *(_DWORD *)(sub_1002E75A0(*(_QWORD *)(a1 + 2544), v4) + 916);
if ( sub_100019268((_QWORD *)(a1 + 2552), &v6) )
v4 = (unsigned int)(v4 + 1);
else
sub_1002E7664(*(_QWORD *)(a1 + 2544), v4, 1);
}
while ( (unsigned int)v4 < (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 2544)) );
}
return sub_100018AA8((_QWORD *)(a1 + 2552));
}