//
// sub_1000BA8D8 from 0x1000ba8d8 to 0x1000ba988 (176 bytes)
//
// 2 xrefs:
// > sub_1000B9B2C @ 0x1000ba4e8
// > sub_1000BAD30 @ 0x1000bad34
//
// 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:43 +0000
//
void __fastcall sub_1000BA8D8(__int64 a1, int a2)
{
__int64 v4; // x21
__int64 v5; // x20
__int64 v6; // x0
char *CString; // x0
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v9; // [xsp+1Fh] [xbp-21h]
if ( (unsigned int)cocos2d::CCDictionary::count(*(_QWORD *)(a1 + 792)) >= 0x64 )
{
cocos2d::CCDictionary::getFirstKey(__p, *(_QWORD *)(a1 + 792));
cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 792), (char *)__p);
if ( v9 < 0 )
operator delete(__p[0]);
}
v4 = *(_QWORD *)(a1 + 792);
v5 = *(_QWORD *)(a1 + 1512);
v6 = sub_1003065B0("%i", a2);
CString = (char *)cocos2d::CCString::getCString(v6);
sub_100009900(__p, CString);
cocos2d::CCDictionary::setObject(v4, v5, __p);
if ( v9 < 0 )
operator delete(__p[0]);
}