//
// sub_1006DE9D8 from 0x1006de9d8 to 0x1006dea5c (132 bytes)
//
// 2 xrefs:
// > sub_1006E1AD8 @ 0x1006e2360
// > sub_1006E2AB8 @ 0x1006e2ee4
//
// 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_1006DE9D8(__int64 a1, unsigned __int64 a2, __int64 a3)
{
__int64 (*v3)(void); // x4
__int64 v4; // x9
__int64 v6; // x2
__int64 v7; // x4
v3 = *(__int64 (**)(void))(*(_QWORD *)a1 + 224LL);
if ( v3 )
{
if ( !a2 )
return v3();
v4 = 0;
while ( *(_QWORD *)a1 == **(_QWORD **)(a3 + 8 * v4) )
{
if ( ++v4 >= a2 )
return v3();
}
v6 = 101;
v7 = 1032;
}
else
{
v6 = 66;
v7 = 1027;
}
sub_100706FB0(16, 136, v6, "ec_lib.c", v7);
return 0;
}