//
// cocos2d::extension::CCHttpClient::send from 0x1002ddfd0 to 0x1002de078 (168 bytes)
//
// 7 xrefs:
// > sub_10009104C @ 0x10009116c
// > GameLevelManager::ProcessHttpRequest @ 0x10009143c
// > MusicDownloadManager::ProcessHttpRequest @ 0x1001d214c
// > MusicDownloadManager::ProcessHttpGetRequest @ 0x1001d2378
// > MusicDownloadManager::downloadSong @ 0x1001d4fc8
// > GJMultiplayerManager::ProcessHttpRequest @ 0x10026655c
// > GJAccountManager::ProcessHttpRequest @ 0x1004450a4
//
// 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:02:46 +0000
//
__int64 __fastcall cocos2d::extension::CCHttpClient::send(__int64 result, __int64 a2)
{
__int64 v3; // x20
__int64 v4; // x0
__int64 v5; // x8
_QWORD v6[3]; // [xsp+8h] [xbp-38h] BYREF
_QWORD *v7; // [xsp+20h] [xbp-20h]
if ( a2 )
{
v3 = result;
cocos2d::CCObject::retain(a2);
v4 = *(_QWORD *)(v3 + 56);
v6[0] = &off_100922C88;
v6[1] = a2;
v7 = v6;
sub_1002DDC74(v4, (__int64)v6);
result = (__int64)v7;
if ( v7 == v6 )
{
v5 = 32;
}
else
{
if ( !v7 )
return result;
v5 = 40;
}
return (*(__int64 (**)(void))(*v7 + v5))();
}
return result;
}