//
// sub_18009B9A0 from 0x18009b9a0 to 0x18009ba01 (97 bytes)
//
// 3 xrefs:
// > sub_18009BA10 @ 0x18009bbd2
// > sub_18009BA10 @ 0x18009bbf0
// > ??> @ 0x1801fabcc
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 10:53:50 +0000
//
__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;
}