//
// sub_100706EBC from 0x100706ebc to 0x100706f3c (128 bytes)
//
// 22 xrefs:
// > sub_1007407BC @ 0x1007407f0
// > sub_1007407BC @ 0x1007407fc
// > sub_100741FBC @ 0x100741ffc
// > sub_100741FBC @ 0x100742008
// > sub_100742D70 @ 0x100742db0
// > sub_100742D70 @ 0x100742dbc
// > sub_100742D70 @ 0x100742dc8
// > sub_100743780 @ 0x1007437c0
// > sub_100743780 @ 0x1007437cc
// > sub_100743780 @ 0x1007437d8
// > sub_1007455A0 @ 0x1007455e0
// > sub_1007455A0 @ 0x1007455ec
// > sub_1007455A0 @ 0x1007455f8
// > sub_100746F6C @ 0x100746fac
// > sub_100746F6C @ 0x100746fb8
// > sub_100746F6C @ 0x100746fc4
// > sub_1007476F8 @ 0x10074772c
// > sub_1007476F8 @ 0x100747738
// > sub_1007476F8 @ 0x100747744
// > sub_1007492C8 @ 0x100749308
// > sub_1007492C8 @ 0x100749314
// > sub_1007492C8 @ 0x100749320
//
// 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:51 +0000
//
__int64 __fastcall sub_100706EBC(__int64 result, __int64 *a2)
{
__int64 *v2; // x19
__int64 v3; // x8
__int64 v4; // x20
__int64 v5; // t1
__int64 v6; // t1
v2 = a2;
v3 = *a2;
if ( *a2 )
{
v4 = (unsigned int)((_DWORD)result << 24);
if ( (_DWORD)result )
{
do
{
*v2 = v3 | v4;
result = (*(__int64 (__fastcall **)(__int64 *))(qword_100A0CD78 + 32))(v2);
v5 = v2[2];
v2 += 2;
v3 = v5;
}
while ( v5 );
}
else
{
do
{
result = (*(__int64 (__fastcall **)(__int64 *))(qword_100A0CD78 + 32))(v2);
v6 = v2[2];
v2 += 2;
}
while ( v6 );
}
}
return result;
}