//
// cocos2d::extension::CCHttpClient::send from 0x1004263b0 to 0x10042643d (141 bytes)
//
// 7 xrefs:
// > GJAccountManager::ProcessHttpRequest @ 0x10009d7df
// > GameLevelManager::performNetworkTest @ 0x10051bf2e
// > GameLevelManager::ProcessHttpRequest @ 0x10051c2f1
// > MusicDownloadManager::ProcessHttpRequest @ 0x10064a018
// > MusicDownloadManager::ProcessHttpGetRequest @ 0x10064a33f
// > MusicDownloadManager::downloadSong @ 0x10064f05f
// > GJMultiplayerManager::ProcessHttpRequest @ 0x1007384db
//
// This function is hookable on this platform (idp: pc, 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 12:30:17 +0000
//
__int64 __fastcall cocos2d::extension::CCHttpClient::send(__int64 a1, __int64 a2)
{
__int64 v2; // rdi
__int64 v3; // rax
_QWORD v5[4]; // [rsp+0h] [rbp-50h] BYREF
_QWORD *v6; // [rsp+20h] [rbp-30h]
if ( a2 )
{
cocos2d::CCObject::retain(a2);
v2 = *(_QWORD *)(a1 + 56);
v5[0] = off_100B41CB0;
v5[1] = a2;
v6 = v5;
sub_100425EB0(v2, (__int64)v5);
if ( v6 == v5 )
{
v3 = 32;
}
else
{
v3 = 40;
if ( !v6 )
return __stack_chk_guard;
}
(*(void (**)(void))(*v6 + v3))();
}
return __stack_chk_guard;
}