//
// GameLevelManager::verifyContainerOnlyHasLevels from 0x10009afd4 to 0x10009b0f4 (288 bytes)
//
// 1 xrefs:
// > GameLevelManager::dataLoaded @ 0x10009b39c
//
// 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
//
bool __fastcall GameLevelManager::verifyContainerOnlyHasLevels(GameLevelManager *a1, cocos2d::CCDictionary *a2)
{
int v2; // w19
cocos2d::CCDictElement *m_pElements; // x22
cocos2d::CCDictElement *next; // x23
cocos2d::CCObject *m_pObject; // x0
__int64 *i; // x20
bool v7; // w19
void *__p[2]; // [xsp+0h] [xbp-80h] BYREF
__int64 v10; // [xsp+10h] [xbp-70h]
__int128 v11; // [xsp+20h] [xbp-60h] BYREF
__int128 v12; // [xsp+30h] [xbp-50h]
int v13; // [xsp+40h] [xbp-40h]
v11 = 0u;
v12 = 0u;
v13 = 1065353216;
if ( a2 )
{
v2 = (int)a2;
m_pElements = a2->m_pElements;
if ( m_pElements )
{
do
{
next = (cocos2d::CCDictElement *)m_pElements->hh.next;
m_pObject = m_pElements->m_pObject;
if ( !m_pObject
|| !__dynamic_cast(
m_pObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'GJGameLevel,
0) )
{
sub_100009900(__p, m_pElements->m_szKey);
sub_1000B3388(&v11, __p, __p);
if ( SHIBYTE(v10) < 0 )
operator delete(__p[0]);
}
m_pElements = next;
}
while ( next );
for ( i = (__int64 *)v12; i; i = (__int64 *)*i )
{
if ( *((char *)i + 39) < 0 )
{
sub_1000097D0(__p, (void *)i[2], i[3]);
}
else
{
*(_OWORD *)__p = *((_OWORD *)i + 1);
v10 = i[4];
}
cocos2d::CCDictionary::removeObjectForKey_1(v2, (char *)__p);
if ( SHIBYTE(v10) < 0 )
operator delete(__p[0]);
}
}
}
v7 = *((_QWORD *)&v12 + 1) == 0;
sub_1000B3134(&v11);
return v7;
}