//
// cocos2d::extension::CCHttpClient::send from 0x100240f7c to 0x100241024 (168 bytes)
//
// 7 xrefs:
// > GameLevelManager::performNetworkTest @ 0x100087d8c
// > GameLevelManager::ProcessHttpRequest @ 0x100088034
// > MusicDownloadManager::ProcessHttpRequest @ 0x1001536c4
// > MusicDownloadManager::ProcessHttpGetRequest @ 0x1001538f0
// > MusicDownloadManager::downloadSong @ 0x100156540
// > GJMultiplayerManager::ProcessHttpRequest @ 0x1001ce638
// > GJAccountManager::ProcessHttpRequest @ 0x10039eb6c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall cocos2d::extension::CCHttpClient::send(
cocos2d::extension::CCHttpClient *a1,
cocos2d::extension::CCHttpRequest *a2)
{
__int64 v4; // x0
__int64 v5; // x8
_QWORD v6[3]; // [xsp+8h] [xbp-38h] BYREF
_QWORD *v7; // [xsp+20h] [xbp-20h]
if ( a2 )
{
cocos2d::CCObject::retain(a2);
v4 = *(_QWORD *)&a1->_timeoutForConnect;
v6[0] = &off_1007CA5B8;
v6[1] = a2;
v7 = v6;
sub_100240C18(v4, (__int64)v6);
if ( v7 == v6 )
{
v5 = 32;
}
else
{
if ( !v7 )
return;
v5 = 40;
}
(*(void (**)(void))(*v7 + v5))();
}
}