//
// sub_1006DE6C0 from 0x1006de6c0 to 0x1006de72c (108 bytes)
//
// 9 xrefs:
// > sub_1006E6694 @ 0x1006e67f0
// > sub_1006E6694 @ 0x1006e6848
// > sub_1006E6D1C @ 0x1006e6e2c
// > sub_1006E6D1C @ 0x1006e6e48
// > sub_1006E6ED4 @ 0x1006e6f70
// > sub_1006EB48C @ 0x1006eb628
// > sub_1006F7874 @ 0x1006f79e0
// > sub_1006F7CE0 @ 0x1006f80d8
// > sub_1006FB8AC @ 0x1006fbaa8
//
// 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_1006DE6C0(__int64 a1, _QWORD *a2)
{
__int64 (*v2)(void); // x5
__int64 v3; // x2
__int64 v4; // x4
v2 = *(__int64 (**)(void))(*(_QWORD *)a1 + 136LL);
if ( !v2 )
{
v3 = 66;
v4 = 905;
goto LABEL_5;
}
if ( *(_QWORD *)a1 != *a2 )
{
v3 = 101;
v4 = 910;
LABEL_5:
sub_100706FB0(16, 183, v3, "ec_lib.c", v4);
return 0;
}
return v2();
}