//
// sub_E0AAF8 from 0xe0aaf8 to 0xe0abbc (196 bytes)
//
// 1 xrefs:
// > cocos2d::extension::CCHttpClient::CCHttpClient @ 0xd1d574
//
// 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 13:09:35 +0000
//
__int64 __fastcall sub_E0AAF8(__int64 a1)
{
if ( dword_1562810++ )
return 0;
off_154A3C0 = (void *(*)(size_t))&malloc;
off_154A3C8 = (void (*)(void *))&free;
off_154A3D0 = (void *(*)(void *, size_t))&realloc;
off_154A3D8 = (char *(*)(const char *))&strdup;
off_154A3E0 = (void *(*)(size_t, size_t))&calloc;
if ( (a1 & 1) == 0 || (unsigned int)sub_E30030() )
{
sub_E156EC();
if ( (a1 & 4) != 0 )
dword_1562820 = 1;
qword_1562818 = a1;
sub_E01444();
return 0;
}
return 2;
}