//
// _Unwind_VRS_Get from 0x8e2bcc to 0x8e2c28 (92 bytes)
//
// 11 xrefs:
// > sub_7434BC @ 0x743534
// > sub_7434BC @ 0x7435e8
// > sub_7434BC @ 0x743662
// > sub_7434BC @ 0x7436cc
// > sub_8E2C28 @ 0x8e2c40
// > sub_8E370C @ 0x8e3724
// > __gnu_unwind_execute @ 0x8e3780
// > __gnu_unwind_execute @ 0x8e37c4
// > __gnu_unwind_execute @ 0x8e3870
// > __gnu_unwind_execute @ 0x8e3914
// > ??> @ 0x5966c
//
// 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 Unwind_VRS_Get(int a1, int a2, unsigned int a3, int a4, _DWORD *a5)
{
bool v5; // zf
int v6; // r3
int v7; // r1
int result; // r0
switch ( a2 )
{
case 0:
v5 = a3 == 15;
if ( a3 <= 0xF )
v5 = a4 == 0;
v6 = !v5;
if ( !v5 )
goto LABEL_11;
v7 = *(_DWORD *)(a1 + 4 * a3 + 4);
*a5 = v7;
result = v6;
break;
case 1:
case 3:
case 4:
result = 1;
break;
default:
LABEL_11:
result = 2;
break;
}
return result;
}