//
// PlayerObject::resetTouchedRings from 0x100226fa8 to 0x10022703c (148 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::update @ 0x1001fe9e0
// > GJBaseGameLayer::update @ 0x1001fe9f8
//
// 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 __fastcall PlayerObject::resetTouchedRings(PlayerObject *a1, bool a2)
{
cocos2d::CCArray *m_touchingRings; // x0
__int64 v4; // x20
int v5; // [xsp+Ch] [xbp-14h] BYREF
m_touchingRings = a1->m_touchingRings;
if ( a2 )
{
sub_10024A45C(m_touchingRings);
}
else if ( (unsigned int)sub_10024A36C(m_touchingRings) )
{
v4 = 0;
do
{
v5 = *(_DWORD *)(sub_10024A388(a1->m_touchingRings, v4) + 916);
if ( sub_100018814(&a1->m_touchedRings.__table_.__bucket_list_.__ptr_.__value_, &v5) )
v4 = (unsigned int)(v4 + 1);
else
sub_10024A44C(a1->m_touchingRings, v4, 1);
}
while ( (unsigned int)v4 < (unsigned int)sub_10024A36C(a1->m_touchingRings) );
}
sub_100018054(&a1->m_touchedRings.__table_.__bucket_list_.__ptr_.__value_);
}