// // PlayerObject::resetTouchedRings from 0x623dc4 to 0x623e94 (208 bytes) // // 4 xrefs: // > PlayerObject::resetObject @ 0x63245c // > GJBaseGameLayer::update @ 0x89de78 // > GJBaseGameLayer::update @ 0x89e338 // > @ 0xc6528 // // 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) { unsigned int v3; // w19 std::unordered_set *p_m_touchedRings; // x21 unsigned int v5; // w0 unsigned int v6; // w1 __int64 v7; // x0 unsigned int v8; // w0 std::__detail::_Hash_node_base *M_nxt; // x0 std::__detail::_Hash_node_base *v10; // x19 if ( a2 ) { p_m_touchedRings = &a1->m_touchedRings; cocos2d::CCArray::removeAllObjects(a1->m_touchingRings); } else { v3 = 0; p_m_touchedRings = &a1->m_touchedRings; while ( 1 ) { v5 = cocos2d::CCArray::count(a1->m_touchingRings); v6 = v3; if ( v3 >= v5 ) break; while ( 1 ) { v7 = cocos2d::CCArray::objectAtIndex(a1->m_touchingRings, v6); if ( !sub_6210AC(p_m_touchedRings, *(_DWORD *)(v7 + 900)) ) break; ++v3; v8 = cocos2d::CCArray::count(a1->m_touchingRings); v6 = v3; if ( v3 >= v8 ) goto LABEL_6; } cocos2d::CCArray::removeObjectAtIndex(a1->m_touchingRings, v3, 1); } } LABEL_6: M_nxt = a1->m_touchedRings._M_h._M_before_begin._M_nxt; if ( M_nxt ) { do { v10 = M_nxt->_M_nxt; operator delete(M_nxt); M_nxt = v10; } while ( v10 ); } memset(a1->m_touchedRings._M_h._M_buckets, 0, 8 * p_m_touchedRings->_M_h._M_bucket_count); p_m_touchedRings->_M_h._M_element_count = 0; p_m_touchedRings->_M_h._M_before_begin._M_nxt = nullptr; }
GD Web Decomp Icon

GD Web Decomp

Raw Source