//
// sub_10068DB50 from 0x10068db50 to 0x10068dc0c (188 bytes)
//
// 1 xrefs:
// > cocos2d::extension::CCHttpClient::CCHttpClient @ 0x1002ddd64
//
// 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:11:30 +0000
//
__int64 __fastcall sub_10068DB50(__int64 a1)
{
if ( dword_100A0C700++ )
return 0;
off_1009E5FD0 = (void *(__cdecl *)(size_t))&_malloc;
off_1009E5FD8 = (void (__cdecl *)(void *))&_free;
off_1009E5FE0 = (void *(__cdecl *)(void *, size_t))&_realloc;
off_1009E5FE8 = (char *(__cdecl *)(const char *))&strdup;
off_1009E5FF0 = (void *(__cdecl *)(size_t, size_t))&_calloc;
if ( (a1 & 1) == 0 || (unsigned int)sub_1006AD1C0() )
{
if ( (a1 & 4) != 0 )
dword_100A3B35C = 1;
qword_100A0C708 = a1;
sub_100687200();
return 0;
}
return 2;
}