; ; sub_18000BB20 from 0x18000bb20 to 0x18000bc11 (241 bytes) ; ; 3 xrefs: ; > sub_18000CE18 @ 0x18000ce1f ; > @ 0x180029248 ; > @ 0x18004bbf4 ; ; 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:38 +0000 ; mov [rsp+arg_0], rbx ; +0x0, 0x18000bb20 mov [rsp+arg_8], rsi ; +0x5, 0x18000bb25 push rdi ; +0xa, 0x18000bb2a sub rsp, 20h ; +0xb, 0x18000bb2b mov esi, edx ; +0xf, 0x18000bb2f mov rbx, rcx ; +0x11, 0x18000bb31 lea rax, ??_7CCControlSwitchSprite@extension@cocos2d@@6B@; const cocos2d::extension::CCControlSwitchSprite::`vftable' ; +0x14, 0x18000bb34 mov [rcx], rax ; +0x1b, 0x18000bb3b lea rax, ??_7CCControlSwitchSprite@extension@cocos2d@@6B@_0; const cocos2d::extension::CCControlSwitchSprite::`vftable' ; +0x1e, 0x18000bb3e mov [rcx+140h], rax ; +0x25, 0x18000bb45 lea rax, ??_7CCControlSwitchSprite@extension@cocos2d@@6B@_1; const cocos2d::extension::CCControlSwitchSprite::`vftable' ; +0x2c, 0x18000bb4c mov [rcx+158h], rax ; +0x33, 0x18000bb53 lea rax, ??_7CCControlSwitchSprite@extension@cocos2d@@6B@_2; const cocos2d::extension::CCControlSwitchSprite::`vftable' ; +0x3a, 0x18000bb5a mov [rcx+258h], rax ; +0x41, 0x18000bb61 mov rcx, [rcx+280h] ; +0x48, 0x18000bb68 test rcx, rcx ; +0x4f, 0x18000bb6f jz short loc_18000BB7A ; +0x52, 0x18000bb72 call cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x54, 0x18000bb74 mov rcx, [rbx+288h] ; +0x5a, 0x18000bb7a test rcx, rcx ; +0x61, 0x18000bb81 jz short loc_18000BB8C ; +0x64, 0x18000bb84 call cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x66, 0x18000bb86 mov rcx, [rbx+290h] ; +0x6c, 0x18000bb8c test rcx, rcx ; +0x73, 0x18000bb93 jz short loc_18000BB9E ; +0x76, 0x18000bb96 call cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x78, 0x18000bb98 mov rcx, [rbx+298h] ; +0x7e, 0x18000bb9e test rcx, rcx ; +0x85, 0x18000bba5 jz short loc_18000BBB0 ; +0x88, 0x18000bba8 call cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x8a, 0x18000bbaa mov rcx, [rbx+2A0h] ; +0x90, 0x18000bbb0 test rcx, rcx ; +0x97, 0x18000bbb7 jz short loc_18000BBC2 ; +0x9a, 0x18000bbba call cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x9c, 0x18000bbbc mov rcx, [rbx+270h] ; +0xa2, 0x18000bbc2 test rcx, rcx ; +0xa9, 0x18000bbc9 jz short loc_18000BBD4 ; +0xac, 0x18000bbcc call cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0xae, 0x18000bbce lea rcx, [rbx+258h] ; +0xb4, 0x18000bbd4 call cs:??1CCActionTweenDelegate@cocos2d@@UEAA@XZ; cocos2d::CCActionTweenDelegate::~CCActionTweenDelegate(void) ; +0xbb, 0x18000bbdb mov rcx, rbx ; +0xc1, 0x18000bbe1 call cs:??1CCSprite@cocos2d@@UEAA@XZ; cocos2d::CCSprite::~CCSprite(void) ; +0xc4, 0x18000bbe4 nop ; +0xca, 0x18000bbea test sil, 1 ; +0xcb, 0x18000bbeb jz short loc_18000BBFE ; +0xcf, 0x18000bbef mov edx, 2A8h ; +0xd1, 0x18000bbf1 mov rcx, rbx; Block ; +0xd6, 0x18000bbf6 call j_j_free ; +0xd9, 0x18000bbf9 mov rax, rbx ; +0xde, 0x18000bbfe mov rbx, [rsp+28h+arg_0] ; +0xe1, 0x18000bc01 mov rsi, [rsp+28h+arg_8] ; +0xe6, 0x18000bc06 add rsp, 20h ; +0xeb, 0x18000bc0b pop rdi ; +0xef, 0x18000bc0f retn ; +0xf0, 0x18000bc10