//
// sub_BA430 from 0xba430 to 0xba4e4 (180 bytes)
//
// 1 xrefs:
// > sub_BA940 @ 0xba944
//
// 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_BA430(_DWORD *a1, int a2, _DWORD *a3, _BYTE *a4)
{
unsigned int v4; // w8
_DWORD *v5; // x8
if ( a3 )
{
v4 = 31;
switch ( a2 )
{
case 1:
v5 = a1 + 230;
goto LABEL_17;
case 2:
v5 = a1 + 231;
goto LABEL_17;
case 3:
v5 = a1 + 232;
goto LABEL_17;
case 4:
v5 = a1 + 233;
goto LABEL_17;
case 5:
v5 = a1 + 234;
goto LABEL_17;
case 7:
v5 = a1 + 236;
goto LABEL_17;
case 8:
v5 = a1 + 237;
goto LABEL_17;
case 12:
v5 = a1 + 142;
goto LABEL_17;
case 13:
v5 = a1 + 143;
goto LABEL_17;
case 15:
v5 = a1 + 243;
goto LABEL_17;
case 16:
v5 = a1 + 245;
goto LABEL_17;
case 17:
v5 = a1 + 244;
goto LABEL_17;
case 21:
v5 = a1 + 238;
LABEL_17:
*a3 = *v5;
v4 = 0;
if ( a4 )
*a4 = 0;
break;
default:
return v4;
}
}
else
{
return 31;
}
return v4;
}