// // GameLevelManager::verifyContainerOnlyHasLevels from 0x3cf230 to 0x3cf3be (398 bytes) // // 1 xrefs: // > GameLevelManager::dataLoaded @ 0x3d8874 // // 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 GameLevelManager::verifyContainerOnlyHasLevels(GameLevelManager *a1, cocos2d::CCDictionary *a2) { unsigned int v3; // r0 int *v4; // r6 size_t v5; // r4 _DWORD *i; // r5 cocos2d::CCDictElement *m_pElements; // r4 cocos2d::CCDictElement *next; // r5 cocos2d::CCObject *m_pObject; // r0 unsigned int v10; // r0 unsigned int v11; // r10 unsigned int v12; // r9 _DWORD **v13; // r6 int v14; // r4 _DWORD *v15; // r3 _DWORD *v16; // r11 const void *v17; // r1 size_t v18; // r2 int v19; // r0 _DWORD *v20; // r0 cocos2d::CCDictElement *v21; // r3 int v22; // r4 _DWORD *v24; // [sp+4h] [bp-30h] void *v25; // [sp+Ch] [bp-28h] BYREF int *v26; // [sp+10h] [bp-24h] BYREF unsigned int v27; // [sp+14h] [bp-20h] _DWORD *v28; // [sp+18h] [bp-1Ch] int v29; // [sp+1Ch] [bp-18h] _DWORD v30[2]; // [sp+20h] [bp-14h] BYREF int v31; // [sp+28h] [bp-Ch] BYREF v28 = nullptr; v29 = 0; v30[1] = 0; v30[0] = 1065353216; v3 = sub_773A14(v30, 10); v27 = v3; if ( v3 == 1 ) { v31 = 0; v4 = &v31; } else { if ( v3 >= 0x40000000 ) sub_772FB4(v3); v5 = 4 * v3; v4 = (int *)operator new(4 * v3); memset(v4, 0, v5); } v26 = v4; if ( a2 ) { m_pElements = a2->m_pElements; if ( m_pElements ) next = (cocos2d::CCDictElement *)m_pElements->hh.next; else next = nullptr; while ( m_pElements ) { 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_776584((int)&v25, (char *)m_pElements); v10 = sub_743D18(v25, *((_DWORD *)v25 - 3), -955291385); v11 = v27; v12 = v10; v13 = (_DWORD **)v26[v10 % v27]; v14 = v10 % v27; if ( !v13 ) goto LABEL_23; v15 = *v13; v16 = v25; while ( 1 ) { if ( v12 == v15[2] ) { v17 = (const void *)v15[1]; v18 = *(v16 - 3); if ( v18 == *((_DWORD *)v17 - 3) ) { v24 = v15; v19 = memcmp(v16, v17, v18); v15 = v24; if ( !v19 ) break; } } if ( !*v15 ) goto LABEL_23; v13 = (_DWORD **)v15; if ( *(_DWORD *)(*v15 + 8) % v11 != v14 ) goto LABEL_23; v15 = (_DWORD *)*v15; } if ( !*v13 ) { LABEL_23: v20 = (_DWORD *)operator new(0xCu); *v20 = 0; v20[1] = v25; v25 = &unk_ACDDA8; 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>::_M_insert_unique_node( (int)&v26, v14, v12, v20); } sub_774008(&v25); } if ( next ) v21 = (cocos2d::CCDictElement *)next->hh.next; else v21 = nullptr; m_pElements = next; next = v21; } } for ( i = v28; i; i = (_DWORD *)*i ) { sub_775C20(&v25); cocos2d::CCDictionary::removeObjectForKey(a2); sub_774008(&v25); } v22 = v29; 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>::~_Hashtable((int)&v26); return v22 == 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source