//
// sub_1000B0A1C from 0x1000b0a1c to 0x1000b0ad8 (188 bytes)
//
// 1 xrefs:
// > sub_1000B0AD8 @ 0x1000b0af4
//
// 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
//
__int64 __fastcall sub_1000B0A1C(__int64 a1)
{
__int64 v2; // x19
__int64 v3; // x22
__int64 v4; // x23
__int64 v5; // x20
__int64 v6; // x2
__int64 v7; // x21
v2 = cocos2d::CCDictionary::create(a1);
v3 = cocos2d::CCNode::create(v2);
if ( (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 1520)) )
{
v4 = 0;
LODWORD(v5) = 0;
do
{
v6 = *(int *)(sub_1002E75A0(*(_QWORD *)(a1 + 1520), v4) + 192);
if ( (int)v6 <= (int)v5 )
v5 = (unsigned int)v5;
else
v5 = (unsigned int)v6;
cocos2d::CCDictionary::setObject_1(v2, v3, v6);
v4 = (unsigned int)(v4 + 1);
}
while ( (unsigned int)v4 < (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 1520)) );
}
else
{
v5 = 0;
}
v7 = 1;
while ( cocos2d::CCDictionary::objectForKey_1(v2, v7) )
{
if ( ++v7 == 1001 )
return v5;
}
return v7;
}