//
// sub_180019430 from 0x180019430 to 0x1800194c0 (144 bytes)
//
// 2 xrefs:
// > ??> @ 0x18002b698
// > ??> @ 0x18004cb78
//
// 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:15:42 +0000
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCObject *__fastcall sub_180019430(struct cocos2d::CCObject *Block, __int64 a2)
{
char v2; // di
__int64 v4; // rax
cocos2d::CCScheduler *v5; // rax
void *v6; // rcx
void *v7; // rcx
v2 = a2;
*(_QWORD *)Block = &cocos2d::extension::WsThreadHelper::`vftable';
v4 = cocos2d::CCDirector::sharedDirector(Block, a2);
v5 = (cocos2d::CCScheduler *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 112LL))(v4);
cocos2d::CCScheduler::unscheduleAllForTarget(v5, Block);
pthread_mutex_destroy((char *)Block + 72);
pthread_mutex_destroy((char *)Block + 80);
v6 = *((void **)Block + 7);
if ( v6 )
sub_1800194C0(v6);
v7 = *((void **)Block + 8);
if ( v7 )
sub_1800194C0(v7);
cocos2d::CCObject::~CCObject(Block);
if ( (v2 & 1) != 0 )
j_j_free(Block);
return Block;
}