//
// sub_10071127C from 0x10071127c to 0x100711384 (264 bytes)
//
// 4 xrefs:
// > sub_1006E8434 @ 0x1006e86c4
// > sub_1006F9FD8 @ 0x1006fa45c
// > sub_1006F9FD8 @ 0x1006fa558
// > sub_100739AC4 @ 0x100739d88
//
// 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:12:57 +0000
//
__int64 __fastcall sub_10071127C(unsigned int *a1)
{
__int64 v1; // x19
__int64 result; // x0
char **v3; // x0
v1 = *a1;
if ( (int)v1 > 649 )
{
switch ( (int)v1 )
{
case 650:
case 653:
return 421;
case 651:
case 654:
return 425;
case 652:
case 655:
return 429;
case 656:
case 657:
case 658:
case 659:
return 30;
default:
goto LABEL_24;
}
}
result = 37;
if ( (int)v1 <= 165 )
{
if ( (int)v1 > 96 )
{
if ( (_DWORD)v1 != 97 )
{
if ( (_DWORD)v1 == 98 )
return result;
goto LABEL_24;
}
}
else
{
if ( (int)v1 > 36 )
{
if ( (_DWORD)v1 == 37 )
return result;
if ( (_DWORD)v1 != 61 )
goto LABEL_24;
return 30;
}
if ( (_DWORD)v1 != 5 )
{
if ( (_DWORD)v1 != 30 )
goto LABEL_24;
return 30;
}
}
return 5;
}
if ( (int)v1 > 424 )
{
if ( (_DWORD)v1 == 425 )
return 425;
if ( (_DWORD)v1 == 429 )
return 429;
}
else
{
if ( (_DWORD)v1 == 166 )
return result;
if ( (_DWORD)v1 == 421 )
return 421;
}
LABEL_24:
v3 = sub_1006B0D04(v1);
if ( !v3 || !v3[3] )
v1 = 0;
sub_100714840(v3);
return v1;
}