//
// sub_1000AF258 from 0x1000af258 to 0x1000af330 (216 bytes)
//
// 5 xrefs:
// > sub_1000AEF50 @ 0x1000aefd4
// > sub_1000AF778 @ 0x1000af7c0
// > sub_1000AFC5C @ 0x1000afcb0
// > sub_1000AFF8C @ 0x1000affd8
// > sub_1000B0164 @ 0x1000b01ac
//
// 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_1000AF258(__int64 a1)
{
__int64 v2; // x20
void **v3; // x1
__int64 v4; // x0
std::string::value_type *v5; // x20
__int64 RootSubDictFromString; // x19
void *__p[2]; // [xsp+0h] [xbp-40h] BYREF
char v9; // [xsp+17h] [xbp-29h]
std::string::size_type __n; // [xsp+18h] [xbp-28h] BYREF
__n = 0;
v2 = cocos2d::CCFileUtils::sharedFileUtils(a1);
sub_1000D79F4(__p);
if ( v9 >= 0 )
v3 = __p;
else
v3 = (void **)__p[0];
v4 = (*(__int64 (__fastcall **)(__int64, void **, const char *, std::string::size_type *))(*(_QWORD *)v2 + 32LL))(
v2,
v3,
"r",
&__n);
v5 = (std::string::value_type *)v4;
if ( (v9 & 0x80000000) == 0 )
{
if ( v4 )
goto LABEL_6;
return 0;
}
operator delete(__p[0]);
if ( !v5 )
return 0;
LABEL_6:
cocos2d::ZipUtils::decompressString2((__int64 *)__p, v5, 0, (unsigned int)__n);
operator delete[](v5);
RootSubDictFromString = DS_Dictionary::loadRootSubDictFromString(a1, __p);
if ( v9 < 0 )
operator delete(__p[0]);
return RootSubDictFromString;
}