//
// sub_180069FB0 from 0x180069fb0 to 0x18006a01e (110 bytes)
//
// 1 xrefs:
// > ??> @ 0x1801acbe8
//
// 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:27 +0000
//
__int64 __fastcall sub_180069FB0(__int64 *a1, int a2, int a3)
{
__int64 v3; // r9
v3 = *a1;
if ( a2 )
{
if ( a2 == 1 )
{
*(_DWORD *)(v3 + 34008) = a3;
return 0;
}
return 31;
}
if ( a3 != 128 && a3 != 256 && a3 != 512 && a3 != 1024 && a3 != 2048 && a3 != 4096 && a3 != 0x2000 && a3 != 0x4000 )
return 31;
*(_DWORD *)(v3 + 34004) = a3;
return 0;
}