//
// sub_1005DA2B4 from 0x1005da2b4 to 0x1005da37c (200 bytes)
//
// 3 xrefs:
// > sub_1005D2328 @ 0x1005d23f0
// > sub_1005D2328 @ 0x1005d2434
// > sub_1005DA37C @ 0x1005da3e8
//
// 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:09:36 +0000
//
__int64 __fastcall sub_1005DA2B4(int a1, char *a2, int a3)
{
__int64 result; // x0
__int64 v7; // x23
int v8; // [xsp+4h] [xbp-3Ch] BYREF
unsigned int v9; // [xsp+8h] [xbp-38h]
int v10; // [xsp+Ch] [xbp-34h] BYREF
v10 = 0;
sub_1005DB990(&v10);
v9 = 0;
result = sub_10061C140(a1, a2);
if ( (_DWORD)result == 45 )
{
while ( 1 )
{
v7 = v9;
sub_1005DB9D4(1);
sub_1005DB990(&v8);
if ( v8 - v10 >= dword_1009DB3B0 )
break;
a3 -= v7;
a2 += v7;
v9 = 0;
result = sub_10061C140(a1, a2);
if ( (_DWORD)result != 45 )
return result;
}
return 43;
}
return result;
}