//
// sub_1006DEE14 from 0x1006dee14 to 0x1006def4c (312 bytes)
//
// 2 xrefs:
// > ??> @ 0x1009bbf98
// > ??> @ 0x1009bc0c8
//
// 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:33 +0000
//
__int64 __fastcall sub_1006DEE14(__int64 a1, __int64 a2, __int64 a3, __int64 a4, void **a5)
{
void **v9; // x21
__int64 v10; // x19
if ( a2 && !sub_1006D1164(a2, a1 + 104) )
return 0;
if ( !(a3 | a4) )
goto LABEL_12;
if ( !*(_QWORD *)(*(_QWORD *)a1 + 288LL) )
{
if ( a3 && !sub_1006D1164(a3, a1 + 152) )
return 0;
if ( a4 && !sub_1006D1164(a4, a1 + 176) )
return 0;
LABEL_12:
v9 = nullptr;
goto LABEL_13;
}
if ( a5 )
{
v9 = nullptr;
}
else
{
a5 = (void **)sub_1006D1C30();
v9 = a5;
if ( !a5 )
return 0;
}
if ( !a3
|| (*(unsigned int (__fastcall **)(__int64, __int64, __int64, void **))(*(_QWORD *)a1 + 288LL))(
a1,
a3,
a1 + 152,
a5) )
{
if ( a4
&& !(*(unsigned int (__fastcall **)(__int64, __int64, __int64, void **))(*(_QWORD *)a1 + 288LL))(
a1,
a4,
a1 + 176,
a5) )
{
v10 = 0;
goto LABEL_14;
}
LABEL_13:
v10 = 1;
goto LABEL_14;
}
v10 = 0;
LABEL_14:
if ( v9 )
sub_1006D1C94(v9);
return v10;
}