//
// sub_BA64C from 0xba64c to 0xba6d0 (132 bytes)
//
// 1 xrefs:
// > sub_BA950 @ 0xba954
//
// 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_BA64C(__int64 a1, int a2, _DWORD *a3, _BYTE *a4)
{
unsigned int v4; // w8
int v5; // w8
if ( a3 )
{
v4 = 31;
switch ( a2 )
{
case 6:
v5 = *(_DWORD *)(a1 + 940);
goto LABEL_12;
case 7:
case 8:
case 10:
case 12:
case 13:
case 15:
case 16:
case 17:
case 19:
return v4;
case 9:
v5 = *(_DWORD *)(a1 + 988);
goto LABEL_12;
case 11:
v5 = *(_DWORD *)(a1 + 956);
goto LABEL_12;
case 14:
v5 = *(_DWORD *)(a1 + 968);
goto LABEL_12;
case 18:
v5 = *(unsigned __int8 *)(a1 + 984);
goto LABEL_12;
case 20:
v5 = *(_DWORD *)(a1 + 916);
goto LABEL_12;
default:
if ( a2 )
return v4;
v5 = *(_DWORD *)(a1 + 912);
LABEL_12:
*a3 = v5;
v4 = 0;
if ( a4 )
*a4 = 0;
break;
}
}
else
{
return 31;
}
return v4;
}