//
// sub_CCD64 from 0xccd64 to 0xccda0 (60 bytes)
//
// 15 xrefs:
// > ??> @ 0x118840
// > ??> @ 0x118d80
// > ??> @ 0x119168
// > ??> @ 0x119258
// > ??> @ 0x119348
// > ??> @ 0x119430
// > ??> @ 0x119628
// > ??> @ 0x119718
// > ??> @ 0x1198f8
// > ??> @ 0x1199e8
// > ??> @ 0x119ad8
// > ??> @ 0x119e78
// > ??> @ 0x119f70
// > ??> @ 0x11a540
// > ??> @ 0x11a688
//
// 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_CCD64(__int64 *a1, int a2, unsigned int a3)
{
__int64 v3; // x8
unsigned int v4; // w9
bool v5; // cf
unsigned int v6; // w9
__int64 result; // x0
v3 = *a1;
if ( !a2 )
{
result = 0;
v6 = *(_DWORD *)(*(_QWORD *)(v3 + 168) + 1752LL);
LABEL_7:
*(_DWORD *)(v3 + 436) = v6;
return result;
}
v4 = *(_DWORD *)(v3 + 436);
if ( v4 )
{
v5 = v4 >= a3;
v6 = v4 - a3;
result = 0;
if ( !v5 )
v6 = 0;
goto LABEL_7;
}
return 11;
}