//
// sub_7808EA from 0x7808ea to 0x780906 (28 bytes)
//
// 2 xrefs:
// > sub_7808D8 @ 0x7808e6
// > sub_77FAEA @ 0x77fda8
//
// 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_7808EA(int a1)
{
int v1; // r7
int v2; // r3
bool v3; // zf
bool v4; // nf
bool v5; // vf
v2 = *(_DWORD *)(v1 + 4);
v5 = __OFSUB__(v2, 1);
v3 = v2 == 1;
v4 = v2 - 1 < 0;
if ( v2 == 1 )
a1 = sub_77FDC0();
if ( !(v4 ^ v5 | v3) )
{
if ( v2 != 2 )
{
if ( v2 != 3 )
sub_780906(a1);
JUMPOUT(0x78053C);
}
JUMPOUT(0x78090C);
}
return sub_780FDC(a1);
}