//
// GJHttpResult::init from 0x818f88 to 0x819044 (188 bytes)
//
// 2 xrefs:
// > GJHttpResult::create @ 0x819120
// > ??> @ 0xdbc10
//
// 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 12:54:57 +0000
//
__int64 __fastcall GJHttpResult::init(__int64 a1, char a2, __int64 a3, __int64 a4, int a5)
{
unsigned __int8 v9; // w0
unsigned int v10; // w20
__int64 *v11; // x0
__int64 *v12; // x0
v9 = cocos2d::CCNode::init((cocos2d::CCNode *)a1);
v10 = v9;
if ( v9 )
{
v11 = (__int64 *)(a1 + 320);
*(_BYTE *)(a1 + 314) = a2;
if ( a3 != a1 + 320 )
{
if ( (*(_BYTE *)a3 & 1) != 0 )
std::string::assign(v11, *(const void **)(a3 + 16), *(_QWORD *)(a3 + 8));
else
std::string::assign(v11, (const void *)(a3 + 1), *(_BYTE *)a3 >> 1);
}
v12 = (__int64 *)(a1 + 344);
if ( a4 != a1 + 344 )
{
if ( (*(_BYTE *)a4 & 1) != 0 )
std::string::assign(v12, *(const void **)(a4 + 16), *(_QWORD *)(a4 + 8));
else
std::string::assign(v12, (const void *)(a4 + 1), *(_BYTE *)a4 >> 1);
}
*(_DWORD *)(a1 + 368) = a5;
}
return v10;
}