//
// sub_73190 from 0x73190 to 0x73228 (152 bytes)
//
// 1 xrefs:
// > sub_73AD8 @ 0x74620
//
// 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
//
int __fastcall sub_73190(int a1)
{
char v1; // r3
int v2; // r1
int v3; // r2
int v4; // r3
int v5; // r3
int v6; // r4
int v7; // r3
int v8; // r3
char v9; // r2
v1 = *(_BYTE *)(a1 + 234);
v2 = *(_DWORD *)(a1 + 4);
v3 = v1;
v4 = v1 & 0x1F;
switch ( *(_BYTE *)(a1 + 264) )
{
case 0:
case 3:
v5 = byte_E8004[v4];
goto LABEL_6;
case 1:
v5 = (unsigned __int8)((8 * v3) ^ ((unsigned int)v3 >> 7));
goto LABEL_6;
case 2:
v5 = 255;
LABEL_6:
*(_DWORD *)(a1 + 196) = v5;
break;
default:
v5 = *(_DWORD *)(a1 + 196);
break;
}
v6 = (*(unsigned __int8 *)(a1 + 236) * v5) >> 6;
*(_DWORD *)(a1 + 196) = v6;
v7 = *(_DWORD *)(a1 + 188);
if ( v3 < 0 )
{
if ( ((v7 - v6) & 0x8000) != 0 )
{
*(_DWORD *)(a1 + 196) = v7;
v6 = v7;
}
v8 = -v6;
}
else
{
if ( v6 + v7 < 65 )
goto LABEL_14;
v8 = 64 - v7;
}
*(_DWORD *)(a1 + 196) = v8;
LABEL_14:
v9 = v3 + *(_BYTE *)(a1 + 235);
if ( v9 > 31 )
v9 -= 64;
*(_BYTE *)(a1 + 234) = v9;
*(_BYTE *)(v2 + 36) |= 2u;
return 0;
}