//
// sub_B1A74 from 0xb1a74 to 0xb1ae8 (116 bytes)
//
// 1 xrefs:
// > sub_B1C1C @ 0xb1c20
//
// 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_B1A74(__int64 a1, int a2, int a3)
{
if ( a2 == 1 )
{
*(_DWORD *)(a1 + 34008) = a3;
return 0;
}
else if ( !a2
&& (a3 == 128
|| a3 == 256
|| a3 == 512
|| a3 == 1024
|| a3 == 2048
|| a3 == 4096
|| a3 == 0x4000
|| a3 == 0x2000) )
{
*(_DWORD *)(a1 + 34004) = a3;
return 0;
}
else
{
return 31;
}
}