//
// sub_1006DDC88 from 0x1006ddc88 to 0x1006ddd2c (164 bytes)
//
// 1 xrefs:
// > sub_1006DDB50 @ 0x1006ddc7c
//
// 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_1006DDC88(__int64 a1)
{
__int64 *v2; // x0
__int64 *v3; // x19
__int64 v4; // x21
_BYTE *v5; // x0
_BYTE *v6; // x0
v2 = (__int64 *)sub_1006D1C30();
v3 = v2;
if ( (*(_DWORD *)(a1 + 68) & 0x80000000) == 0 )
{
v4 = 0;
if ( !v2 )
return v4;
goto LABEL_13;
}
v5 = *(_BYTE **)(a1 + 232);
if ( v5 )
{
sub_1006D9940(v5);
*(_QWORD *)(a1 + 232) = 0;
}
if ( v3 )
{
v6 = sub_1006D98D8();
*(_QWORD *)(a1 + 232) = v6;
if ( v6 )
{
if ( sub_1006D9990((__int64)v6, a1 + 16, v3) )
{
v4 = 1;
}
else
{
sub_1006D9940(*(_BYTE **)(a1 + 232));
v4 = 0;
*(_QWORD *)(a1 + 232) = 0;
}
}
else
{
v4 = 0;
}
LABEL_13:
sub_1006D1C94((void **)v3);
return v4;
}
return 0;
}