//
// sub_10050F9EC from 0x10050f9ec to 0x10050faa4 (184 bytes)
//
// 1 xrefs:
// > ??> @ 0x100858730
//
// 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_10050F9EC(_QWORD *a1, int a2, _DWORD *a3, _BYTE *a4)
{
__int64 result; // x0
_DWORD *v6; // x8
_DWORD *v7; // x8
if ( !a3 )
return 31;
result = 31;
v6 = (_DWORD *)*a1;
switch ( a2 )
{
case 1:
v7 = v6 + 228;
goto LABEL_17;
case 2:
v7 = v6 + 229;
goto LABEL_17;
case 3:
v7 = v6 + 230;
goto LABEL_17;
case 4:
v7 = v6 + 231;
goto LABEL_17;
case 5:
v7 = v6 + 232;
goto LABEL_17;
case 7:
v7 = v6 + 234;
goto LABEL_17;
case 8:
v7 = v6 + 235;
goto LABEL_17;
case 12:
v7 = v6 + 140;
goto LABEL_17;
case 13:
v7 = v6 + 141;
goto LABEL_17;
case 15:
v7 = v6 + 241;
goto LABEL_17;
case 16:
v7 = v6 + 243;
goto LABEL_17;
case 17:
v7 = v6 + 242;
goto LABEL_17;
case 21:
v7 = v6 + 236;
LABEL_17:
*a3 = *v7;
result = 0;
if ( a4 )
*a4 = 0;
break;
default:
return result;
}
return result;
}