//
// sub_100428A04 from 0x100428a04 to 0x100428a88 (132 bytes)
//
// 1 xrefs:
// > ??> @ 0x100826d00
//
// 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_100428A04(_QWORD *a1, __int64 a2)
{
__int64 v2; // x21
__int64 v4; // x19
__int64 v5; // x9
__int64 v6; // x21
if ( !a2 )
return 31;
v2 = a2;
v4 = a1[8];
sub_1004B5C70(v4);
v5 = a1[6];
*(_QWORD *)(v2 + 8) = a1 + 5;
*(_QWORD *)(v2 + 16) = v5;
v2 += 8;
a1[6] = v2;
**(_QWORD **)(v2 + 8) = v2;
v6 = 28;
if ( (_QWORD *)a1[2] == a1 + 2 )
{
if ( (_QWORD *)a1[3] == a1 + 2 )
v6 = 0;
else
v6 = 28;
}
sub_1004B5CA0(v4);
return v6;
}