//
// sub_1106A08 from 0x1106a08 to 0x1106a48 (64 bytes)
//
// 9 xrefs:
// > sub_1106A48 @ 0x1106abc
// > sub_1106F30 @ 0x1107248
// > sub_1106F30 @ 0x1107290
// > sub_1106F30 @ 0x11072b8
// > sub_1106F30 @ 0x11072f8
// > sub_1107428 @ 0x1107618
// > sub_110784C @ 0x1107a28
// > sub_110784C @ 0x1107ae8
// > sub_110784C @ 0x1107b28
//
// 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
//
char *__fastcall sub_1106A08(char *result, _QWORD *a2)
{
__int64 v2; // x2
unsigned int v3; // w3
char v4; // w4
char v5; // t1
unsigned __int64 v6; // x5
v2 = 0;
v3 = 0;
do
{
v5 = *result++;
v4 = v5;
v6 = (unsigned __int64)(v5 & 0x7F) << v3;
v3 += 7;
v2 |= v6;
}
while ( v5 < 0 );
if ( v3 <= 0x3F && (v4 & 0x40) != 0 )
v2 |= -1LL << v3;
*a2 = v2;
return result;
}