//
// sub_62F40 from 0x62f40 to 0x63000 (192 bytes)
//
// 2 xrefs:
// > sub_78154 @ 0x78244
// > sub_78154 @ 0x78488
//
// 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
//
__int64 __fastcall sub_62F40(__int64 a1, __int64 a2, __int64 *a3)
{
__int64 result; // x0
const void *v6; // x1
const void *v7; // x21
__int64 v8; // x8
__int64 v9; // x0
__int64 v10; // x22
result = 31;
if ( a2 && a3 )
{
sub_635AC(31);
v7 = v6;
v9 = sub_6348C(*(_QWORD *)(*(_QWORD *)v8 + 432LL));
if ( v9 )
{
v10 = v9;
*(_DWORD *)(v9 + 40) = 0;
*(_QWORD *)(v9 + 328) = 0;
*(_QWORD *)(v9 + 360) = 0;
*(_OWORD *)(v9 + 288) = 0u;
*(_OWORD *)(v9 + 304) = 0u;
memcpy((void *)(v9 + 48), v7, 0xE0u);
*a3 = v10;
if ( !*(_QWORD *)(v10 + 136) )
*(_QWORD *)(v10 + 136) = sub_63000;
*(_QWORD *)(v10 + 16) = *(_QWORD *)(a1 + 928) + 70376LL;
return 0;
}
else
{
return 38;
}
}
return result;
}