//
// sub_1001E1488 from 0x1001e1488 to 0x1001e1550 (200 bytes)
//
// 3 xrefs:
// > sub_100518264 @ 0x100518cd4
// > sub_1005192D4 @ 0x1005193b4
// > sub_100519720 @ 0x100519810
//
// 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 11:00:30 +0000
//
__int64 __fastcall sub_1001E1488(__int64 a1, __int64 a2)
{
void *v3; // x0
void *v4; // x19
std::string *p_p; // x1
__int64 v6; // x19
void *v8[2]; // [xsp+0h] [xbp-60h] BYREF
__int64 v9; // [xsp+10h] [xbp-50h]
std::string __p; // [xsp+20h] [xbp-40h] BYREF
void *v11[2]; // [xsp+38h] [xbp-28h] BYREF
char v12; // [xsp+4Fh] [xbp-11h]
v3 = (void *)cocos2d::CCFileUtils::sharedFileUtils(a1);
v4 = v3;
if ( *(char *)(a2 + 23) < 0 )
{
v3 = sub_1000097D0(v8, *(void **)a2, *(_QWORD *)(a2 + 8));
}
else
{
*(_OWORD *)v8 = *(_OWORD *)a2;
v9 = *(_QWORD *)(a2 + 16);
}
sub_1001E12D4((__int64)v3, (__int64)v8, &__p);
if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
p_p = &__p;
else
p_p = (std::string *)__p.__r_.__value_.__r.__words[0];
sub_100009900(v11, (char *)p_p);
v6 = (*(__int64 (__fastcall **)(void *, void **))(*(_QWORD *)v4 + 160LL))(v4, v11);
if ( v12 < 0 )
operator delete(v11[0]);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
if ( SHIBYTE(v9) < 0 )
operator delete(v8[0]);
return v6;
}