//
// sub_1006DB74C from 0x1006db74c to 0x1006db804 (184 bytes)
//
// 1 xrefs:
// > sub_1006EB1C8 @ 0x1006eb344
//
// 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:12:31 +0000
//
__int64 __fastcall sub_1006DB74C(__int64 a1, __int64 *a2, int *a3, __int64 *a4)
{
_QWORD *v8; // x0
__int64 v9; // x23
__int64 v10; // x20
if ( *a3 )
{
sub_1006D1DF8((__int64)a4);
v8 = sub_1006D1F64(a4);
v9 = (__int64)v8;
if ( v8 )
{
if ( (unsigned int)sub_1006D1670((__int64)v8, *a3 - 1) )
v10 = sub_1006DB5E0(a1, a2, v9, a3, a4);
else
v10 = 0;
}
else
{
v10 = 0;
}
sub_1006D1EE0((__int64)a4);
}
else
{
sub_1006D1290(a1, 0);
return 1;
}
return v10;
}