//
// GJHttpResult::create from 0x4b4e38 to 0x4b4f06 (206 bytes)
//
// 4 xrefs:
// > GameLevelManager::handleItDelayed @ 0x4b4f40
// > MusicDownloadManager::handleItDelayed @ 0x56cd04
// > GJAccountManager::handleItDelayed @ 0x5816c0
// > GJMultiplayerManager::handleItDelayed @ 0x6412ac
//
// 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:50:07 +0000
//
int __fastcall GJHttpResult::create(char a1, int a2, int a3, int a4)
{
int v8; // r4
int v9; // r6
int v10; // r3
int v11; // r0
int v13[3]; // [sp+Ch] [bp-1Ch] BYREF
int v14[3]; // [sp+18h] [bp-10h] BYREF
v8 = operator new(0x124u);
cocos2d::CCNode::CCNode((cocos2d::CCNode *)v8);
*(_DWORD *)v8 = &off_C9A640;
*(_BYTE *)(v8 + 262) = 0;
*(_DWORD *)(v8 + 264) = 0;
*(_DWORD *)(v8 + 268) = 0;
*(_DWORD *)(v8 + 272) = 0;
*(_DWORD *)(v8 + 276) = 0;
*(_DWORD *)(v8 + 280) = 0;
*(_DWORD *)(v8 + 284) = 0;
*(_DWORD *)(v8 + 288) = 0;
std::string::basic_string(v13, a2);
std::string::basic_string(v14, a3);
v9 = GJHttpResult::init(v8, a1, (unsigned __int8 *)v13, (unsigned __int8 *)v14, a4);
std::string::~string((int)v14);
std::string::~string((int)v13);
if ( v9 )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v8);
}
else
{
v10 = *(_DWORD *)v8;
v11 = v8;
v8 = 0;
(*(void (__fastcall **)(int))(v10 + 8))(v11);
}
return v8;
}