//
// sub_1006A0698 from 0x1006a0698 to 0x1006a0704 (108 bytes)
//
// 1 xrefs:
// > sub_10067AD10 @ 0x10067ad70
//
// 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_1006A0698(__int64 *a1)
{
__int64 *v2; // x20
__int64 v3; // x21
__int64 v4; // x22
__darwin_time_t v5; // x0
int v6; // w1
__int64 v7; // x19
__int64 v8; // x21
__darwin_time_t v9; // x0
int v10; // w1
__int64 v11; // x0
v2 = (__int64 *)a1[11];
v3 = *v2;
v4 = *(_QWORD *)(*v2 + 880);
if ( !v4 )
v4 = a1[10];
v5 = sub_10066F074();
v7 = v4 - sub_10066F09C(v5, v6, a1[8], a1[9]);
v8 = *(_QWORD *)(v3 + 856);
if ( v8 )
{
v9 = sub_10066F074();
v11 = sub_10066F09C(v9, v10, v2[54], v2[55]);
if ( v7 >= v8 - v11 )
return v8 - v11;
}
return v7;
}