//
// sub_1006DB5E0 from 0x1006db5e0 to 0x1006db74c (364 bytes)
//
// 1 xrefs:
// > sub_1006DB74C @ 0x1006db7b8
//
// 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_1006DB5E0(__int64 a1, __int64 *a2, __int64 a3, int *a4, __int64 *a5)
{
int v10; // w8
_BOOL8 v11; // x20
__int64 *v13; // x0
__int64 *v14; // x24
int v15; // w25
v10 = *(_DWORD *)(a3 + 8);
if ( v10 != 1 )
{
if ( !v10 )
return sub_1006D1290(a1, 1);
goto LABEL_6;
}
if ( **(_QWORD **)a3 != 1 )
{
LABEL_6:
sub_1006D1DF8((__int64)a5);
v13 = sub_1006D1F64(a5);
v14 = v13;
if ( v13 )
{
if ( (unsigned int)sub_1006DA5BC((__int64)v13, a2, a4) )
{
v15 = sub_1006D0D88(a3) - 2;
if ( v15 < 0 )
{
LABEL_14:
v11 = sub_1006D1164(a1, (__int64)v14) != 0;
}
else
{
while ( 1 )
{
if ( !sub_1006DAD98((__int64)v14, v14, a4, a5) )
{
v11 = 0;
goto LABEL_19;
}
if ( (unsigned int)sub_1006D175C(a3, v15)
&& !(unsigned int)sub_1006DAA9C((__int64)v14, (__int64)v14, (__int64)a2, a4, (__int64)a5) )
{
break;
}
if ( v15-- <= 0 )
goto LABEL_14;
}
v11 = 0;
}
}
else
{
v11 = 0;
}
}
else
{
v11 = 0;
}
LABEL_19:
sub_1006D1EE0((__int64)a5);
return v11;
}
return sub_1006D1164(a1, (__int64)a2) != 0;
}