//
// sub_B6A0C from 0xb6a0c to 0xb6a40 (52 bytes)
//
// 1 xrefs:
// > ??> @ 0x119808
//
// 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_B6A0C(__int64 *a1, int a2, unsigned int a3)
{
__int64 v3; // x8
unsigned int v4; // w9
bool v5; // cf
int v6; // w9
v3 = *a1;
if ( !a2 )
{
v6 = 4;
LABEL_7:
*(_DWORD *)(v3 + 1160) = v6;
return 0;
}
v4 = *(_DWORD *)(v3 + 1160);
if ( v4 )
{
v5 = v4 >= a3;
v6 = v4 - a3;
if ( !v5 )
v6 = 0;
goto LABEL_7;
}
return 11;
}