//
// sub_18009B9A0 from 0x18009b9a0 to 0x18009ba01 (97 bytes)
//
// 3 xrefs:
// > sub_18009BA10 @ 0x18009bbd2
// > sub_18009BA10 @ 0x18009bbf0
// > ??> @ 0x1801fabcc
//
// 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_18009B9A0(__int64 a1, _BYTE *a2, char a3)
{
char v3; // al
v3 = a2[530];
if ( a3 )
{
if ( !v3 )
{
a2[530] = 1;
++*(_DWORD *)(*(_QWORD *)(a1 + 168) + 67936LL);
return 0;
}
}
else if ( v3 )
{
memset(a2, 0, 0x214u);
--*(_DWORD *)(*(_QWORD *)(a1 + 168) + 67936LL);
}
return 0;
}