//
// sub_CCBA98 from 0xccba98 to 0xccbb30 (152 bytes)
//
// 2 xrefs:
// > __cxa_thread_atexit @ 0xccbb54
// > __cxa_thread_atexit @ 0xccbb5c
//
// 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
//
__int64 sub_CCBA98()
{
unsigned __int8 v0; // w1
v0 = atomic_load((unsigned __int8 *)&byte_1249098);
if ( (v0 & 1) != 0 || !_cxa_guard_acquire((__guard *)&byte_1249098) )
return sub_4EB7A4(sub_CCBA38);
pthread_key_create((pthread_key_t *)&dword_12490B0, (void (*)(void *))sub_CCB9F8);
_cxa_guard_release((__guard *)&byte_1249098);
__cxa_atexit((void (*)(void *))sub_CCB9EC, &unk_12490A8, &unk_122F000);
return sub_4EB7A4(sub_CCBA38);
}