//
// GJHttpResult::create from 0x3cd9f0 to 0x3cdab6 (198 bytes)
//
// 4 xrefs:
// > GameLevelManager::handleItDelayed @ 0x3cdaf4
// > MusicDownloadManager::handleItDelayed @ 0x457d00
// > GJAccountManager::handleItDelayed @ 0x4643a8
// > GJMultiplayerManager::handleItDelayed @ 0x50fd1c
//
// 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
//
int __fastcall GJHttpResult::create(char a1, int a2, int a3, int a4)
{
int v6; // r4
_BOOL4 v7; // r6
int v8; // r3
int v9; // r0
_BYTE v11[4]; // [sp+Ch] [bp-Ch] BYREF
_BYTE v12[4]; // [sp+10h] [bp-8h] BYREF
v6 = operator new(0x114u);
cocos2d::CCNode::CCNode((cocos2d::CCNode *)v6);
*(_BYTE *)(v6 + 262) = 0;
*(_DWORD *)v6 = &off_A51198;
*(_DWORD *)(v6 + 272) = 0;
*(_DWORD *)(v6 + 264) = &unk_ACDDA8;
*(_DWORD *)(v6 + 268) = &unk_ACDDA8;
sub_775C20(v11);
sub_775C20(v12);
v7 = GJHttpResult::init(v6, a1, (int)v11, (int)v12, a4);
sub_774008(v12);
sub_774008(v11);
if ( v7 )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);
}
else
{
v8 = *(_DWORD *)v6;
v9 = v6;
v6 = 0;
(*(void (__fastcall **)(int))(v8 + 8))(v9);
}
return v6;
}