//
// sub_1006A7B98 from 0x1006a7b98 to 0x1006a7c4c (180 bytes)
//
// 2 xrefs:
// > sub_100694E54 @ 0x100695014
// > sub_100695188 @ 0x10069531c
//
// 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:11:43 +0000
//
__int64 __fastcall sub_1006A7B98(const char **a1, __int64 **a2)
{
__int64 *v4; // x20
__int64 *v5; // x21
const char *v6; // x0
const char **v7; // x22
char *v8; // x8
const char *v9; // t1
v4 = *a2;
if ( a1 )
{
v5 = sub_100691C0C((__int64)sub_1006A7C4C);
if ( !v5 )
return 3;
v6 = *a1;
if ( *a1 )
{
v7 = a1 + 1;
do
{
v8 = off_1009E5FE8(v6);
if ( !v8 || !(unsigned int)sub_100691C50(v5, v5[1], (__int64)v8) )
return 3;
v9 = *v7++;
v6 = v9;
}
while ( v9 );
}
}
else
{
v5 = nullptr;
}
if ( v4 )
sub_100691DB4(v4, 0);
*a2 = v5;
return 0;
}