//
// sub_623AAC from 0x623aac to 0x623b5c (176 bytes)
//
// 7 xrefs:
// > sub_60F254 @ 0x60f562
// > sub_60F254 @ 0x60f68c
// > sub_60F254 @ 0x60f6a0
// > sub_62931C @ 0x6297a6
// > sub_630064 @ 0x630cce
// > sub_634790 @ 0x634b48
// > sub_63A580 @ 0x63a694
//
// 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
//
int __fastcall sub_623AAC(_DWORD *a1, int a2, int a3)
{
_QWORD *v3; // r7
int v5; // r3
int *v6; // r6
int result; // r0
_DWORD *v8; // r0
int v9; // r1
int v10; // r0
int v11; // r0
int v12; // r3
v3 = a1 + 344;
if ( (int)a1[345] < 0 || !a1[137] )
{
v5 = a1[136];
v6 = a1 + 412;
LABEL_4:
*v6 = a2;
v6[1] = a3;
result = v5;
if ( !v5 )
return result;
v8 = a1;
v9 = 1000 * a1[137];
goto LABEL_6;
}
v6 = a1 + 412;
v10 = sub_60FA98();
v5 = a1[136];
if ( !v10 || *v3 >= v5 )
goto LABEL_4;
v11 = sub_60F9D8(a2, a3, *v6, v6[1]);
v12 = a1[137];
v9 = 1000 * v12 - v11;
v8 = a1;
if ( v9 > 0 )
{
LABEL_6:
sub_62FCA8(v8, v9);
return 0;
}
sub_6180F8((int)a1, "Operation too slow. Less than %ld bytes/sec transferred the last %ld seconds", a1[136], v12);
return 28;
}