//
// sub_BB0824 from 0xbb0824 to 0xbb085c (56 bytes)
//
// 4 xrefs:
// > ??> @ 0x111cf20
// > ??> @ 0x111cf28
// > ??> @ 0x111cfa0
// > ??> @ 0x111cfa8
//
// 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_BB0824(__int64 a1, _DWORD *a2, int a3)
{
__int64 result; // x0
int v5; // w4
__int64 v6; // x2
__int64 v7; // x3
result = 0;
if ( a3 )
{
v5 = *(_DWORD *)(a1 + 608);
v6 = a1 + 1560;
v7 = *(_QWORD *)(a1 + 1616);
result = 0x10000;
*a2 = v5;
if ( !v7 )
{
if ( *(_QWORD *)(v6 + 48) )
return 0x10000;
else
return 1;
}
}
return result;
}