//
// sub_1006DE4A4 from 0x1006de4a4 to 0x1006de510 (108 bytes)
//
// 8 xrefs:
// > sub_1006E1AD8 @ 0x1006e1b94
// > sub_1006E1AD8 @ 0x1006e2660
// > sub_1006E6694 @ 0x1006e6a64
// > sub_1006E70CC @ 0x1006e71a0
// > sub_1006E732C @ 0x1006e73ac
// > sub_1006E732C @ 0x1006e7c24
// > sub_1006EAE68 @ 0x1006eafa0
// > sub_1006EB7FC @ 0x1006eb930
//
// 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
//
__int64 __fastcall sub_1006DE4A4(__int64 a1, _QWORD *a2)
{
__int64 (*v2)(void); // x2
__int64 v3; // x2
__int64 v4; // x4
v2 = *(__int64 (**)(void))(*(_QWORD *)a1 + 104LL);
if ( !v2 )
{
v3 = 66;
v4 = 797;
goto LABEL_5;
}
if ( *(_QWORD *)a1 != *a2 )
{
v3 = 101;
v4 = 801;
LABEL_5:
sub_100706FB0(16, 127, v3, "ec_lib.c", v4);
return 0;
}
return v2();
}