//
// sub_10009104C from 0x10009104c to 0x10009119c (336 bytes)
//
// 1 xrefs:
// > sub_1003052AC @ 0x1003052bc
//
// 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:23 +0000
//
void __fastcall sub_10009104C(__int64 a1)
{
char *v2; // x19
void **v3; // x20
std::string *v4; // x0
__int64 Instance; // x0
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v7; // [xsp+1Fh] [xbp-21h]
if ( (*(_BYTE *)(a1 + 1536) & 1) == 0 )
{
*(_BYTE *)(a1 + 1536) = 1;
sub_100009900(__p, "temp");
v2 = (char *)operator new(0xD8u);
cocos2d::CCObject::CCObject((__int64)v2);
*(_QWORD *)v2 = off_1008CEAF0;
*((_OWORD *)v2 + 7) = 0u;
*((_QWORD *)v2 + 22) = 0;
*((_QWORD *)v2 + 23) = 0;
*((_QWORD *)v2 + 21) = 0;
*((_QWORD *)v2 + 16) = 0;
*((_OWORD *)v2 + 5) = 0u;
*((_OWORD *)v2 + 6) = 0u;
*((_OWORD *)v2 + 4) = 0u;
*((_DWORD *)v2 + 14) = 5;
*((_DWORD *)v2 + 48) = 0;
v2[196] = 0;
*((_QWORD *)v2 + 25) = 0;
*((_DWORD *)v2 + 52) = 0;
*(_OWORD *)(v2 + 151) = 0u;
v2[167] = 0;
*(_OWORD *)(v2 + 135) = 0u;
std::string::assign((std::string *)(v2 + 64), "https://www.google.com");
*((_DWORD *)v2 + 51) = 1;
*((_DWORD *)v2 + 14) = 1;
*((_QWORD *)v2 + 17) = a1;
*((_QWORD *)v2 + 18) = GameLevelManager::onProcessHttpRequestCompleted;
*((_QWORD *)v2 + 19) = 0;
cocos2d::CCObject::retain(a1);
if ( v7 >= 0 )
v3 = __p;
else
v3 = (void **)__p[0];
strlen((const char *)v3);
sub_1000D788C((_DWORD)v2 + 88, v3);
v4 = std::string::assign((std::string *)(v2 + 112), "tag");
*((_DWORD *)v2 + 48) = 62;
Instance = cocos2d::extension::CCHttpClient::getInstance(v4);
cocos2d::extension::CCHttpClient::send(Instance, v2);
cocos2d::CCObject::release(v2);
if ( v7 < 0 )
operator delete(__p[0]);
}
}