//
// sub_1106EB8 from 0x1106eb8 to 0x1106f30 (120 bytes)
//
// 4 xrefs:
// > sub_1106F30 @ 0x1107018
// > sub_1107428 @ 0x11076e4
// > sub_1107428 @ 0x11077e0
// > sub_110784C @ 0x1107a6c
//
// 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 13:18:29 +0000
//
__int64 __fastcall sub_1106EB8(unsigned __int8 a1, __int64 a2)
{
unsigned int v2; // w2
if ( a1 == 255 )
return 0;
v2 = a1 & 0x70;
if ( v2 == 32 )
return Unwind_GetTextRelBase(a2);
if ( v2 <= 0x20 )
{
if ( (a1 & 0x70) == 0 || v2 == 16 )
return 0;
LABEL_13:
abort();
}
if ( v2 == 64 )
return Unwind_GetRegionStart(a2);
if ( v2 != 80 )
{
if ( v2 == 48 )
return Unwind_GetDataRelBase(a2);
goto LABEL_13;
}
return 0;
}