//
// sub_100554950 from 0x100554950 to 0x1005549e0 (144 bytes)
//
// 2 xrefs:
// > ??> @ 0x10082da90
// > ??> @ 0x10082db10
//
// 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_100554950(_DWORD *a1, _DWORD *a2, int a3)
{
__int64 result; // x0
int v5; // w9
unsigned int v6; // w9
int v7; // w8
if ( !a3 )
return 0;
if ( a1[378] )
return sub_10057ABCC(a1 + 334);
result = 131073;
*a2 = a1[116];
if ( *(_BYTE *)(*(_QWORD *)a1 + 1302LL) )
{
a2[1] = a1[117];
}
else
{
v5 = a1[118];
if ( v5 == -1 )
{
result = 1;
v6 = 1;
}
else
{
a2[1] = v5;
v6 = 2;
}
v7 = a1[119];
if ( v7 != -1 )
{
a2[v6] = v7;
return (1 << (v6 | 0x10)) | (unsigned int)result;
}
}
return result;
}