//
// PlayerObject::resetTouchedRings from 0x34790e to 0x347964 (86 bytes)
//
// 3 xrefs:
// > PlayerObject::resetObject @ 0x347b48
// > GJBaseGameLayer::update @ 0x4976a0
// > GJBaseGameLayer::update @ 0x4976b0
//
// 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 PlayerObject::resetTouchedRings(PlayerObject *a1, bool a2)
{
std::unordered_set *p_m_touchedRings; // r6
unsigned int v4; // r4
int v5; // r0
p_m_touchedRings = &a1->m_touchedRings;
if ( a2 )
{
cocos2d::CCArray::removeAllObjects(a1->m_touchingRings);
}
else
{
v4 = 0;
while ( v4 < cocos2d::CCArray::count(a1->m_touchingRings) )
{
v5 = cocos2d::CCArray::objectAtIndex(a1->m_touchingRings, v4);
if ( sub_33C318(p_m_touchedRings, *(_DWORD *)(v5 + 772)) )
++v4;
else
cocos2d::CCArray::removeObjectAtIndex(a1->m_touchingRings, v4, 1);
}
}
std::_Hashtable,std::__detail::_Identity,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits>::clear((int)p_m_touchedRings);
}