//
// cocos2d::extension::CCHttpRequest::CCHttpRequest from 0x4a9d68 to 0x4a9dea (130 bytes)
//
// 5 xrefs:
// > GameLevelManager::performNetworkTest @ 0x4b2ec0
// > GameLevelManager::ProcessHttpRequest @ 0x4b5074
// > MusicDownloadManager::ProcessHttpGetRequest @ 0x56de9c
// > MusicDownloadManager::ProcessHttpRequest @ 0x56df24
// > MusicDownloadManager::downloadSong @ 0x5702f0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:49:57 +0000
//
// Alternative name is '_ZN7cocos2d9extension13CCHttpRequestC1Ev'
cocos2d::extension::CCHttpRequest *__fastcall cocos2d::extension::CCHttpRequest::CCHttpRequest(
cocos2d::extension::CCHttpRequest *this)
{
int v2; // r3
cocos2d::extension::CCHttpRequest *result; // r0
char v4; // r2
cocos2d::CCObject::CCObject(this);
*((_DWORD *)this + 13) = 5;
*(_DWORD *)this = &off_C99410;
*((_DWORD *)this + 14) = 0;
*((_DWORD *)this + 15) = 0;
*((_DWORD *)this + 16) = 0;
*((_DWORD *)this + 17) = 0;
*((_DWORD *)this + 18) = 0;
*((_DWORD *)this + 19) = 0;
*((_DWORD *)this + 20) = 0;
*((_DWORD *)this + 21) = 0;
*((_DWORD *)this + 22) = 0;
*((_DWORD *)this + 27) = 0;
*((_DWORD *)this + 28) = 0;
*((_DWORD *)this + 29) = 0;
*((_BYTE *)this + 57) = 0;
*((_BYTE *)this + 56) = 0;
while ( 1 )
{
v2 = *((_DWORD *)this + 18);
if ( !v2 )
break;
*((_DWORD *)this + 18) = v2 - 1;
}
result = this;
v4 = *((_BYTE *)this + 80) & 1;
if ( v4 )
LOBYTE(dword_0) = 0;
else
*((_BYTE *)this + 81) = 0;
if ( v4 )
*((_DWORD *)this + 21) = 0;
else
*((_BYTE *)this + 80) = 0;
*((_DWORD *)this + 23) = 0;
*((_DWORD *)this + 24) = 0;
*((_DWORD *)this + 25) = 0;
*((_DWORD *)this + 26) = 0;
*((_DWORD *)this + 30) = 0;
*((_BYTE *)this + 124) = 0;
*((_DWORD *)this + 32) = 0;
*((_DWORD *)this + 33) = 0;
*((_DWORD *)this + 34) = 0;
return result;
}