//
// sub_1006DD8C4 from 0x1006dd8c4 to 0x1006dd9a0 (220 bytes)
//
// 3 xrefs:
// > sub_1006E2AB8 @ 0x1006e2f28
// > sub_1006E5878 @ 0x1006e5968
// > sub_1006E5D78 @ 0x1006e5de8
//
// 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_1006DD8C4(_QWORD *a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5)
{
_QWORD *v10; // x8
_QWORD *v11; // x0
if ( !a1 )
return 0;
v10 = (_QWORD *)*a1;
if ( !*a1 )
{
LABEL_7:
if ( a2 )
{
v11 = sub_1006AE878(40, (__int64)"ec_lib.c", 578);
if ( !v11 )
return 0;
v11[1] = a2;
v11[2] = a3;
v11[3] = a4;
v11[4] = a5;
*v11 = *a1;
*a1 = v11;
}
return 1;
}
while ( v10[2] != a3 || v10[3] != a4 || v10[4] != a5 )
{
v10 = (_QWORD *)*v10;
if ( !v10 )
goto LABEL_7;
}
sub_100706FB0(16, 211, 108, "ec_lib.c", 569);
return 0;
}