//
// sub_CDD00 from 0xcdd00 to 0xcddb8 (184 bytes)
//
// 1 xrefs:
// > sub_C4B00 @ 0xc4b10
//
// 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 12:14:49 +0000
//
__int64 __fastcall sub_CDD00(_QWORD *a1)
{
_QWORD *v2; // x0
__int64 result; // x0
_QWORD *v4; // x0
__int64 v5; // x8
__int64 i; // x8
if ( *a1 )
{
v2 = sub_CE984(&off_114000);
sub_CE95C(v2);
*a1 = 0;
a1[1] = 0;
}
result = (__int64)a1;
if ( a1[165] )
{
v4 = sub_CE984(&off_114000);
result = sub_CE95C(v4);
}
v5 = 0;
a1[165] = 0;
a1[139] = 0;
while ( v5 != 2 )
{
a1[v5 + 178] = 0;
++v5;
}
for ( i = 0; i != 8; ++i )
a1[i + 94] = 0;
return result;
}