//
// sub_100560FC0 from 0x100560fc0 to 0x100561098 (216 bytes)
//
// 7 xrefs:
// > sub_100548630 @ 0x100548a60
// > sub_100548630 @ 0x100548c40
// > sub_100548630 @ 0x100548cd4
// > sub_100565E88 @ 0x100566a7c
// > sub_10056DB30 @ 0x10056e324
// > sub_100571EB4 @ 0x100571f18
// > sub_10057A59C @ 0x10057a6cc
//
// 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_100560FC0(_QWORD *a1, __int64 a2, __int64 a3)
{
__int64 v6; // x0
__int64 v7; // x0
__int64 v8; // x8
__int64 v9; // x1
if ( (a1[252] & 0x8000000000000000LL) == 0 )
{
if ( a1[115] )
{
nullsub_1();
if ( v6 )
{
if ( a1[252] < a1[114] )
{
v7 = sub_100548F34(a2, a3, a1[293], a1[294]);
v8 = a1[115];
v9 = 1000 * v8 - v7;
if ( v9 <= 0 )
{
sub_100552734(
(__int64)a1,
"Operation too slow. Less than %ld bytes/sec transferred the last %ld seconds",
a1[114],
v8);
return 28;
}
goto LABEL_9;
}
}
}
}
a1[293] = a2;
a1[294] = a3;
if ( a1[114] )
{
v9 = 1000LL * a1[115];
LABEL_9:
sub_10056F400(a1, v9);
}
return 0;
}