//
// sub_1001ED488 from 0x1001ed488 to 0x1001ed540 (184 bytes)
//
// 2 xrefs:
// > sub_1001ED3AC @ 0x1001ed3cc
// > sub_1001ED3AC @ 0x1001ed468
//
// 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:00:36 +0000
//
__int64 __fastcall sub_1001ED488(_QWORD **a1, _QWORD **a2)
{
_QWORD *v4; // x0
_BOOL4 v5; // w20
_QWORD *v6; // x0
_BOOL4 v7; // w8
v4 = *a1;
if ( v4 )
{
if ( v4[3] != v4[4] )
{
v5 = 0;
goto LABEL_8;
}
if ( (*(unsigned int (__fastcall **)(_QWORD *))(*v4 + 72LL))(v4) != -1 )
{
v5 = *a1 == nullptr;
goto LABEL_8;
}
*a1 = nullptr;
}
v5 = 1;
LABEL_8:
v6 = *a2;
if ( !*a2 )
goto LABEL_14;
if ( v6[3] == v6[4] )
{
if ( (*(unsigned int (__fastcall **)(_QWORD *))(*v6 + 72LL))(v6) != -1 )
{
v7 = *a2 == nullptr;
return v5 ^ v7 ^ 1u;
}
*a2 = nullptr;
LABEL_14:
v7 = 1;
return v5 ^ v7 ^ 1u;
}
v7 = 0;
return v5 ^ v7 ^ 1u;
}