//
// sub_B1A74 from 0xb1a74 to 0xb1ae8 (116 bytes)
//
// 1 xrefs:
// > sub_B1C1C @ 0xb1c20
//
// This function is hookable on this platform (idp: arm, 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 12:14:37 +0000
//
__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;
}
}