//
// sub_63E64 from 0x63e64 to 0x63eec (136 bytes)
//
// 1 xrefs:
// > ??> @ 0x10c8c8
//
// 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_63E64(_QWORD *a1, __int64 a2)
{
__int64 v3; // x20
__int64 v4; // x0
__int64 v5; // x8
unsigned int v6; // w20
if ( a2 )
{
v3 = a2;
v4 = sub_642EC(a1[8]);
v5 = a1[6];
*(_QWORD *)(v3 + 8) = a1 + 5;
v3 += 8;
*(_QWORD *)(v3 + 8) = v5;
a1[6] = v3;
**(_QWORD **)(v3 + 8) = v3;
v6 = 28;
if ( (_QWORD *)a1[2] == a1 + 2 )
{
if ( (_QWORD *)a1[3] == a1 + 2 )
v6 = 0;
else
v6 = 28;
}
sub_642D8(v4);
}
else
{
return 31;
}
return v6;
}