//
// sub_10069E140 from 0x10069e140 to 0x10069e1ec (172 bytes)
//
// 2 xrefs:
// > ??> @ 0x1009b1df0
// > ??> @ 0x1009b1e70
//
// 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:38 +0000
//
__int64 __fastcall sub_10069E140(__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) = 10;
while ( !(unsigned int)sub_1006A0704(a1 + 1336, 1) && *(_DWORD *)(a1 + 1448) )
;
}
}
}
sub_1006A0DF8(a1 + 1336);
sub_1006A5F48(a1, *(unsigned int *)(a1 + 1492));
off_1009E5FD8(*(void **)(a1 + 1512));
*(_QWORD *)(a1 + 1512) = 0;
return 0;
}