//
// sub_1006DE3E0 from 0x1006de3e0 to 0x1006de4a4 (196 bytes)
//
// 1 xrefs:
// > sub_1006E5C00 @ 0x1006e5c28
//
// 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:32 +0000
//
_QWORD *__fastcall sub_1006DE3E0(_QWORD *a1, __int64 *a2)
{
_QWORD *v2; // x20
_QWORD *v3; // x0
void *v4; // x19
unsigned int (__fastcall *v5)(_QWORD *, _QWORD *); // x8
__int64 v6; // x2
__int64 v7; // x4
void (__fastcall *v8)(void *); // x8
v2 = a1;
if ( a1 )
{
v3 = sub_1006DD9A0(a2);
v4 = v3;
if ( v3 )
{
v5 = *(unsigned int (__fastcall **)(_QWORD *, _QWORD *))(*v3 + 96LL);
if ( v5 )
{
if ( *v3 == *v2 )
{
if ( v3 == v2 )
return v2;
if ( v5(v3, v2) )
return v4;
goto LABEL_8;
}
v6 = 101;
v7 = 761;
}
else
{
v6 = 66;
v7 = 757;
}
sub_100706FB0(16, 114, v6, "ec_lib.c", v7);
LABEL_8:
v8 = *(void (__fastcall **)(void *))(*(_QWORD *)v4 + 80LL);
if ( v8 )
v8(v4);
sub_1006AEDAC(v4);
}
}
return nullptr;
}