//
// sub_100695494 from 0x100695494 to 0x100695568 (212 bytes)
//
// 2 xrefs:
// > sub_100692A04 @ 0x100692ae4
// > sub_100692A04 @ 0x100692b64
//
// 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:34 +0000
//
void __fastcall sub_100695494(__int64 *a1, _OWORD *a2)
{
__int64 *v4; // x0
__int64 *v5; // x19
__int64 **v6; // x8
__int64 **v7; // x22
__int64 v8; // x21
v4 = (__int64 *)off_1009E5FD0(0x10u);
v5 = v4;
if ( v4 )
{
*(_OWORD *)v4 = *a2;
if ( sub_100691E98((__int64)a1) )
{
v6 = (__int64 **)*a1;
if ( *a1 )
{
v7 = nullptr;
do
{
v8 = (__int64)v7;
v7 = v6;
if ( sub_10066F09C(**v6, (*v6)[1], *v5, v5[1]) >= 1 )
break;
v6 = (__int64 **)v7[2];
v8 = (__int64)v7;
}
while ( v6 );
}
else
{
v8 = 0;
}
}
else
{
v8 = 0;
}
if ( !(unsigned int)sub_100691C50(a1, v8, (__int64)v5) )
off_1009E5FD8(v5);
}
}