//
// sub_1006DDE0C from 0x1006dde0c to 0x1006dde90 (132 bytes)
//
// 1 xrefs:
// > sub_1006E3150 @ 0x1006e33d8
//
// 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_1006DDE0C(__int64 a1, const void *a2, size_t a3)
{
void *v6; // x0
_QWORD *v7; // x22
__int64 result; // x0
_BYTE *v9; // x0
v7 = (_QWORD *)(a1 + 80);
v6 = *(void **)(a1 + 80);
if ( v6 )
{
sub_1006AEDAC(v6);
*v7 = 0;
v7[1] = 0;
}
result = 1;
if ( a2 && a3 )
{
v9 = sub_1006AE878(a3, (__int64)"ec_lib.c", 402);
*v7 = v9;
if ( v9 )
{
memcpy(v9, a2, a3);
*(_QWORD *)(a1 + 88) = a3;
return a3;
}
else
{
return 0;
}
}
return result;
}