; ; sub_180019590 from 0x180019590 to 0x180019620 (144 bytes) ; ; 2 xrefs: ; > @ 0x180028fe0 ; > @ 0x18004ac14 ; ; 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 ; mov [rsp+arg_0], rbx ; +0x0, 0x180019590 push rdi ; +0x5, 0x180019595 sub rsp, 20h ; +0x6, 0x180019596 mov edi, edx ; +0xa, 0x18001959a mov rbx, rcx ; +0xc, 0x18001959c lea rax, ??_7WsThreadHelper@extension@cocos2d@@6B@; const cocos2d::extension::WsThreadHelper::`vftable' ; +0xf, 0x18001959f mov [rcx], rax ; +0x16, 0x1800195a6 call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x19, 0x1800195a9 mov r8, [rax] ; +0x1f, 0x1800195af mov rcx, rax ; +0x22, 0x1800195b2 call qword ptr [r8+70h] ; +0x25, 0x1800195b5 mov rcx, rax ; +0x29, 0x1800195b9 mov rdx, rbx ; +0x2c, 0x1800195bc call cs:?unscheduleAllForTarget@CCScheduler@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCScheduler::unscheduleAllForTarget(cocos2d::CCObject *) ; +0x2f, 0x1800195bf lea rcx, [rbx+48h] ; +0x35, 0x1800195c5 call cs:pthread_mutex_destroy ; +0x39, 0x1800195c9 lea rcx, [rbx+50h] ; +0x3f, 0x1800195cf call cs:pthread_mutex_destroy ; +0x43, 0x1800195d3 mov rcx, [rbx+38h]; Block ; +0x49, 0x1800195d9 test rcx, rcx ; +0x4d, 0x1800195dd jz short loc_1800195E7 ; +0x50, 0x1800195e0 call sub_180019620 ; +0x52, 0x1800195e2 mov rcx, [rbx+40h]; Block ; +0x57, 0x1800195e7 test rcx, rcx ; +0x5b, 0x1800195eb jz short loc_1800195F5 ; +0x5e, 0x1800195ee call sub_180019620 ; +0x60, 0x1800195f0 mov rcx, rbx ; +0x65, 0x1800195f5 call cs:__imp_??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x68, 0x1800195f8 nop ; +0x6e, 0x1800195fe test dil, 1 ; +0x6f, 0x1800195ff jz short loc_180019612 ; +0x73, 0x180019603 mov edx, 78h ; 'x' ; +0x75, 0x180019605 mov rcx, rbx; Block ; +0x7a, 0x18001960a call j_j_free ; +0x7d, 0x18001960d mov rax, rbx ; +0x82, 0x180019612 mov rbx, [rsp+28h+arg_0] ; +0x85, 0x180019615 add rsp, 20h ; +0x8a, 0x18001961a pop rdi ; +0x8e, 0x18001961e retn ; +0x8f, 0x18001961f