//
// sub_1006D3338 from 0x1006d3338 to 0x1006d33dc (164 bytes)
//
// 2 xrefs:
// > sub_1006F7874 @ 0x1006f7a40
// > sub_10073F694 @ 0x10073f784
//
// 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:27 +0000
//
__int64 __fastcall sub_1006D3338(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5)
{
__int64 (__fastcall *v8)(__int64, __int64, __int64); // x3
if ( !(unsigned int)sub_1006CED10(a1, a2, a3) )
return 0;
if ( !(unsigned int)sub_1006CEE1C(0, a1, a1, a4, a5) )
return 0;
if ( !*(_DWORD *)(a1 + 16) )
return 1;
if ( *(_DWORD *)(a4 + 16) )
v8 = sub_1006CED10;
else
v8 = sub_1006CE958;
return v8(a1, a1, a4);
}