//
// sub_100635B54 from 0x100635b54 to 0x100635c0c (184 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009e0850
//
// 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:10:30 +0000
//
__int64 __fastcall sub_100635B54(_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;
}