//
// sub_10051FB44 from 0x10051fb44 to 0x10051fbf4 (176 bytes)
//
// 3 xrefs:
// > sub_1005452FC @ 0x100545614
// > sub_1005467AC @ 0x100546ae8
// > sub_1005490A8 @ 0x100549200
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:07:11 +0000
//
__int64 __fastcall sub_10051FB44(int a1)
{
int v1; // w8
__int64 result; // x0
unsigned __int16 v3; // w0
unsigned __int16 v4; // w0
v1 = a1 - 1;
result = 13172600;
switch ( v1 )
{
case 0:
return result;
case 1:
v4 = -24376;
goto LABEL_15;
case 2:
v4 = -19376;
goto LABEL_15;
case 3:
return 6618980;
case 4:
v4 = -26881;
goto LABEL_15;
case 5:
return 5294335;
case 6:
v4 = -19276;
goto LABEL_15;
case 7:
case 16:
return 9869055;
case 8:
v3 = -8961;
goto LABEL_8;
case 9:
case 10:
case 11:
case 13:
return 9226470;
case 12:
v3 = -19201;
LABEL_8:
result = v3 | 0x780000u;
break;
case 14:
case 17:
result = 12500670;
break;
case 15:
v4 = 30975;
LABEL_15:
result = v4 | 0xFF0000u;
break;
default:
result = 0xFFFFFF;
break;
}
return result;
}