//
// sub_CCCDCC from 0xcccdcc to 0xccce30 (100 bytes)
//
// 1 xrefs:
// > __cxa_throw @ 0xcccea0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall sub_CCCDCC(unsigned int a1, __int64 a2)
{
unsigned int *v2; // x0
unsigned int v3; // w2
unsigned int v4; // w2
void (__fastcall *v5)(__int64); // x2
void *v6; // x19
if ( a1 > 1 )
__cxxabiv1::__terminate(*(void (**)())(a2 - 56));
v2 = (unsigned int *)(a2 - 96);
do
{
v3 = __ldaxr(v2);
v4 = v3 - 1;
}
while ( __stlxr(v4, v2) );
if ( !v4 )
{
v5 = *(void (__fastcall **)(__int64))(a2 - 72);
v6 = (void *)(a2 + 32);
if ( v5 )
v5(a2 + 32);
_cxa_free_exception(v6);
}
}