//
// sub_10069B9E4 from 0x10069b9e4 to 0x10069bb60 (380 bytes)
//
// 2 xrefs:
// > ??> @ 0x1009b1b78
// > ??> @ 0x1009b1bf8
//
// 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:37 +0000
//
__int64 __fastcall sub_10069B9E4(__int64 *a1, __int64 a2)
{
__int64 v2; // x19
__int64 v4; // x8
__int64 v5; // x21
int v6; // w8
_DWORD *v7; // x22
int v8; // w8
__int64 *v9; // x20
v2 = a2;
v4 = *a1;
v5 = *(_QWORD *)(*a1 + 536);
if ( v5 )
{
if ( (_DWORD)a2 )
{
*((_BYTE *)a1 + 737) = 1;
LABEL_20:
off_1009E5FD8(*(void **)(v5 + 8));
*(_QWORD *)(v5 + 8) = 0;
off_1009E5FD8(*(void **)(v5 + 16));
*(_QWORD *)(v5 + 16) = 0;
off_1009E5FD8(*(void **)(v5 + 24));
*(_QWORD *)(v5 + 24) = 0;
off_1009E5FD8(*(void **)(v5 + 32));
*(_QWORD *)(v5 + 32) = 0;
off_1009E5FD8(*(void **)(v5 + 40));
*(_QWORD *)(v5 + 40) = 0;
off_1009E5FD8(*(void **)(v5 + 48));
*(_QWORD *)(v5 + 48) = 0;
off_1009E5FD8(*(void **)(v5 + 56));
*(_QWORD *)(v5 + 56) = 0;
off_1009E5FD8(*(void **)(v5 + 64));
*(_QWORD *)(v5 + 64) = 0;
*(_DWORD *)v5 = 0;
return v2;
}
if ( *(_BYTE *)(v4 + 1345) )
{
v2 = 0;
goto LABEL_20;
}
if ( *(_QWORD *)(v5 + 56) )
{
v2 = 0;
goto LABEL_20;
}
v6 = *(unsigned __int8 *)(v4 + 1313);
if ( *(_QWORD *)(v5 + 24) )
{
if ( !v6 )
{
v7 = a1 + 181;
v8 = 10;
goto LABEL_15;
}
}
else if ( !v6 )
{
v2 = 0;
goto LABEL_20;
}
v2 = sub_1006A0A54(a1 + 167, "%s", "");
if ( (_DWORD)v2 )
goto LABEL_20;
v7 = a1 + 181;
v8 = 12;
LABEL_15:
*((_DWORD *)a1 + 362) = v8;
v9 = a1 + 167;
do
v2 = sub_1006A0704(v9, 1);
while ( !(_DWORD)v2 && *v7 );
goto LABEL_20;
}
return 0;
}