// // PlayerObject::resetTouchedRings from 0x1403982e0 to 0x140398423 (323 bytes) // // 5 xrefs: // > GJBaseGameLayer::update @ 0x14023809e // > GJBaseGameLayer::update @ 0x1402380b5 // > @ 0x140697f90 // > @ 0x140697fa0 // > @ 0x1406d64e8 // // 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) { cocos2d::CCArray *m_touchingRings; // rcx unsigned int v4; // ebx cocos2d::CCObjectType m_eObjType; // r8d std::_Simple_types>, std::_Iterator_base0>>::value_type *v6; // rcx std::_List_unchecked_const_iterator>, std::_Iterator_base0>::_Nodeptr Ptr; // rax std::_List_unchecked_const_iterator>, std::_Iterator_base0>::_Nodeptr v8; // rcx m_touchingRings = a1->m_touchingRings; if ( a2 ) { cocos2d::CCArray::removeAllObjects(m_touchingRings); sub_14005E0D0(&a1->m_touchedRings._Traitsobj._Mypair._Myval2._Myval2); return; } v4 = 0; if ( cocos2d::CCArray::count(m_touchingRings) ) { while ( 1 ) { m_eObjType = cocos2d::CCArray::objectAtIndex(a1->m_touchingRings, v4)[16].m_eObjType; v6 = &a1->m_touchedRings._Vec._Mypair._Myval2._Myfirst[2 * ((0x100000001B3LL * (((unsigned __int64)(unsigned int)m_eObjType >> 24) ^ (0x100000001B3LL * (BYTE2(m_eObjType) ^ (0x100000001B3LL * ((0x100000001B3LL * ((unsigned __int8)m_eObjType ^ 0xCBF29CE484222325uLL)) ^ BYTE1(m_eObjType))))))) & a1->m_touchedRings._Mask)]; Ptr = v6[1]._Ptr; if ( Ptr == a1->m_touchedRings._List._Mypair._Myval2._Myhead ) goto LABEL_9; v8 = v6->_Ptr; if ( m_eObjType != *((_DWORD *)Ptr + 4) ) break; LABEL_10: if ( Ptr ) ++v4; else cocos2d::CCArray::removeObjectAtIndex(a1->m_touchingRings, v4, 1); if ( v4 >= cocos2d::CCArray::count(a1->m_touchingRings) ) goto LABEL_14; } while ( Ptr != v8 ) { Ptr = *((std::_List_unchecked_const_iterator>, std::_Iterator_base0>::_Nodeptr *)Ptr + 1); if ( m_eObjType == *((_DWORD *)Ptr + 4) ) goto LABEL_10; } LABEL_9: Ptr = nullptr; goto LABEL_10; } LABEL_14: sub_14005E0D0(&a1->m_touchedRings._Traitsobj._Mypair._Myval2._Myval2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source