//
// sub_10059BC30 from 0x10059bc30 to 0x10059bc96 (102 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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:32:31 +0000
//
__int64 __fastcall sub_10059BC30(__int64 a1)
{
_QWORD *v1; // rax
__int64 v2; // rax
__int64 v3; // rax
cocos2d::CCObject::CCObject(a1);
*(_QWORD *)a1 = off_100B716F0;
v1 = operator new(0x18u);
*v1 = v1;
v1[1] = v1;
v1[2] = 0;
*(_QWORD *)(a1 + 56) = v1;
pthread_mutex_init((pthread_mutex_t *)(a1 + 64), nullptr);
v2 = cocos2d::CCDirector::sharedDirector();
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 128LL))(v2);
return cocos2d::CCScheduler::scheduleUpdateForTarget(v3, a1, 0, 0);
}