//
// sub_1000B1364 from 0x1000b1364 to 0x1000b1484 (288 bytes)
//
// 1 xrefs:
// > GameLevelManager::dataLoaded @ 0x1000b172c
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 10:58:38 +0000
//
bool __fastcall sub_1000B1364(__int64 a1, __int64 a2)
{
int v2; // w19
__int64 v3; // x22
__int64 v4; // x23
const void *v5; // x0
__int64 *i; // x20
_BOOL8 v7; // x19
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 = a2;
v3 = *(_QWORD *)(a2 + 56);
if ( v3 )
{
do
{
v4 = *(_QWORD *)(v3 + 288);
v5 = *(const void **)(v3 + 264);
if ( !v5
|| !__dynamic_cast(
v5,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'GJGameLevel,
0) )
{
sub_100009900(__p, (char *)v3);
sub_10008DE14((unsigned __int64)&v11, (__int64)__p, (__int64)__p);
if ( SHIBYTE(v10) < 0 )
operator delete(__p[0]);
}
v3 = v4;
}
while ( v4 );
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(v2, (char *)__p);
if ( SHIBYTE(v10) < 0 )
operator delete(__p[0]);
}
}
}
v7 = *((_QWORD *)&v12 + 1) == 0;
sub_10008DD98((void **)&v11);
return v7;
}