//
// sub_1108BE4 from 0x1108be4 to 0x1108c44 (96 bytes)
//
// 3 xrefs:
// > sub_1109030 @ 0x1109264
// > sub_1109030 @ 0x11092a4
// > sub_1109030 @ 0x11093fc
//
// 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:30 +0000
//
__int64 __fastcall sub_1108BE4(unsigned __int8 a1, __int64 a2)
{
unsigned int v2; // w0
bool v3; // zf
if ( a1 == 255 )
return 0;
v2 = a1 & 0x70;
if ( v2 == 32 )
return *(_QWORD *)(a2 + 8);
if ( v2 > 0x20 )
{
if ( v2 == 48 )
return *(_QWORD *)(a2 + 16);
v3 = v2 == 80;
goto LABEL_8;
}
v3 = v2 == 16;
if ( v2 )
{
LABEL_8:
if ( !v3 )
abort();
}
return 0;
}