//
// sub_10050F678 from 0x10050f678 to 0x10050f6f8 (128 bytes)
//
// 0 xrefs:
//
// 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_10050F678(__int64 a1, int a2, _DWORD *a3, _BYTE *a4)
{
__int64 result; // x0
int v6; // w8
if ( !a3 )
return 31;
result = 31;
switch ( a2 )
{
case 0:
v6 = *(_DWORD *)(a1 + 904);
goto LABEL_11;
case 6:
v6 = *(_DWORD *)(a1 + 932);
goto LABEL_11;
case 9:
v6 = *(_DWORD *)(a1 + 980);
goto LABEL_11;
case 11:
v6 = *(_DWORD *)(a1 + 948);
goto LABEL_11;
case 14:
v6 = *(_DWORD *)(a1 + 960);
goto LABEL_11;
case 18:
v6 = *(unsigned __int8 *)(a1 + 976);
goto LABEL_11;
case 20:
v6 = *(_DWORD *)(a1 + 908);
LABEL_11:
*a3 = v6;
result = 0;
if ( a4 )
*a4 = 0;
break;
default:
return result;
}
return result;
}