//
// CCURLObject::init from 0x71d8c4 to 0x71d948 (132 bytes)
//
// 2 xrefs:
// > CCURLObject::create @ 0x71da28
// > ??> @ 0x73ac8
//
// 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:52:21 +0000
//
__int64 __fastcall CCURLObject::init(__int64 a1, __int64 *a2, __int64 a3)
{
__int64 *v4; // x0
const void *v6; // x3
size_t v7; // x2
__int64 *v8; // x0
v4 = (__int64 *)(a1 + 56);
if ( v4 != a2 )
{
if ( (*(_BYTE *)a2 & 1) != 0 )
{
v6 = (const void *)a2[2];
v7 = a2[1];
}
else
{
v6 = (char *)a2 + 1;
v7 = *(_BYTE *)a2 >> 1;
}
std::string::assign(v4, v6, v7);
}
v8 = (__int64 *)(a1 + 80);
if ( a1 + 80 != a3 )
{
if ( (*(_BYTE *)a3 & 1) != 0 )
std::string::assign(v8, *(const void **)(a3 + 16), *(_QWORD *)(a3 + 8));
else
std::string::assign(v8, (const void *)(a3 + 1), *(_BYTE *)a3 >> 1);
}
return 1;
}