//
// sub_100718BD0 from 0x100718bd0 to 0x100718c74 (164 bytes)
//
// 3 xrefs:
// > sub_1006F0C1C @ 0x1006f0f9c
// > sub_1006F1964 @ 0x1006f1aa4
// > sub_1006F1B08 @ 0x1006f1b70
//
// 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:13:01 +0000
//
char **__fastcall sub_100718BD0(__int64 a1, __int64 a2)
{
__int64 v3; // x22
int v4; // w20
unsigned int v5; // w0
char **result; // x0
char **v7; // x21
__int64 v8; // x22
v3 = *(_QWORD *)(a2 + 16);
if ( (v3 & 8) != 0 )
v4 = -1;
else
v4 = 5;
v5 = sub_100711408((unsigned int *)a2);
result = sub_1006B0D04(v5);
v7 = result;
if ( a1 )
{
v8 = v3 & 8;
if ( v8 || *(_QWORD *)(a1 + 8) || (result = (char **)sub_10071F0E8(), (*(_QWORD *)(a1 + 8) = result) != 0) )
{
if ( *(_QWORD *)a1 )
sub_100714840(*(_DWORD **)a1);
*(_QWORD *)a1 = v7;
result = *(char ***)(a1 + 8);
if ( v8 )
{
if ( result )
{
result = (char **)sub_10071F0F4(result);
*(_QWORD *)(a1 + 8) = 0;
}
}
else
{
return (char **)sub_1007164B8((__int64)result, v4, 0);
}
}
}
return result;
}