//
// sub_10057A530 from 0x10057a530 to 0x10057a59c (108 bytes)
//
// 1 xrefs:
// > sub_100554BA8 @ 0x100554c08
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_10057A530(__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_100548F0C();
v7 = v4 - sub_100548F34(v5, v6, a1[8], a1[9]);
v8 = *(_QWORD *)(v3 + 856);
if ( v8 )
{
v9 = sub_100548F0C();
v11 = sub_100548F34(v9, v10, v2[54], v2[55]);
if ( v7 >= v8 - v11 )
return v8 - v11;
}
return v7;
}