//
// sub_B7D7D0 from 0xb7d7d0 to 0xb7d868 (152 bytes)
//
// 2 xrefs:
// > ??> @ 0x111c350
// > ??> @ 0x111c3d0
//
// 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_B7D7D0(__int64 *a1, _DWORD *a2, unsigned int a3)
{
unsigned int v3; // w3
__int64 v5; // x1
int v6; // w2
int v7; // w1
int v8; // w2
__int64 v10; // x2
v3 = a3;
if ( !a3 )
return v3;
if ( *((_DWORD *)a1 + 434) )
{
v10 = a1[201];
*a2 = *(_DWORD *)(a1[206] + 608);
if ( v10 )
return 0x10000;
else
return 1;
}
else
{
v5 = *a1;
*a2 = *((_DWORD *)a1 + 152);
if ( !*(_BYTE *)(v5 + 1558) )
{
v6 = *((_DWORD *)a1 + 154);
if ( v6 == -1 )
{
v7 = 1;
v3 = 1;
}
else
{
v7 = 2;
a2[1] = v6;
v3 = 131073;
}
v8 = *((_DWORD *)a1 + 155);
if ( v8 != -1 )
{
a2[v7] = v8;
v3 |= 1 << (v7 + 16);
}
return v3;
}
a2[1] = *((_DWORD *)a1 + 153);
return 131075;
}
}