//
// sub_10069F8C8 from 0x10069f8c8 to 0x10069f974 (172 bytes)
//
// 2 xrefs:
// > ??> @ 0x1009b2020
// > ??> @ 0x1009b20a0
//
// 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:39 +0000
//
__int64 __fastcall sub_10069F8C8(__int64 a1, char a2)
{
__int64 v3; // x8
if ( (a2 & 1) == 0 )
{
v3 = *(_QWORD *)(a1 + 1424);
if ( v3 )
{
if ( *(_BYTE *)(v3 + 748) && !(unsigned int)sub_1006A0A54(a1 + 1336, "%s", "QUIT") )
{
*(_DWORD *)(a1 + 1448) = 12;
while ( !(unsigned int)sub_1006A0704(a1 + 1336, 1) && *(_DWORD *)(a1 + 1448) )
;
}
}
}
sub_1006A0DF8(a1 + 1336);
sub_1006A5F48(a1, *(unsigned int *)(a1 + 1484));
off_1009E5FD8(*(void **)(a1 + 1456));
*(_QWORD *)(a1 + 1456) = 0;
return 0;
}