//
// sub_B1AE8 from 0xb1ae8 to 0xb1b50 (104 bytes)
//
// 1 xrefs:
// > sub_B1C24 @ 0xb1c28
//
// 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_B1AE8(__int64 a1, int a2, int *a3, __int64 a4)
{
int *v4; // x8
int v5; // w8
v4 = (int *)(a1 + 34004);
if ( a2 == 1 )
{
v5 = *(_DWORD *)(a1 + 34008);
*a3 = v5;
if ( a4 )
goto LABEL_6;
return 0;
}
if ( !a2 )
{
*a3 = *v4;
if ( a4 )
{
v5 = *v4;
LABEL_6:
sub_E3FC8(a4, 32, "%d", v5);
}
return 0;
}
return 31;
}