; ; cocos2d::extension::CCControlSwitch::create from 0x18000c660 to 0x18000c707 (167 bytes) ; ; 2 xrefs: ; > @ 0x180032408 ; > @ 0x18004bc54 ; ; 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, 0x18000c660 mov [rsp+arg_8], rbp ; +0x5, 0x18000c665 mov [rsp+arg_10], rsi ; +0xa, 0x18000c66a mov [rsp+arg_18], rdi ; +0xf, 0x18000c66f push r14 ; +0x14, 0x18000c674 sub rsp, 50h ; +0x16, 0x18000c676 mov rdi, r9 ; +0x1a, 0x18000c67a mov rsi, r8 ; +0x1d, 0x18000c67d mov rbp, rdx ; +0x20, 0x18000c680 mov r14, rcx ; +0x23, 0x18000c683 mov ecx, 1E8h; Size ; +0x26, 0x18000c686 call sub_18001F040 ; +0x2b, 0x18000c68b mov [rsp+58h+var_18], rax ; +0x30, 0x18000c690 mov rcx, rax; this ; +0x35, 0x18000c695 call ??0CCControlSwitch@extension@cocos2d@@QEAA@XZ; cocos2d::extension::CCControlSwitch::CCControlSwitch(void) ; +0x38, 0x18000c698 mov rbx, rax ; +0x3d, 0x18000c69d test rax, rax ; +0x40, 0x18000c6a0 jz short loc_18000C6E9 ; +0x43, 0x18000c6a3 mov [rsp+58h+var_28], 0; struct cocos2d::CCLabelTTF * ; +0x45, 0x18000c6a5 mov [rsp+58h+var_30], 0; struct cocos2d::CCLabelTTF * ; +0x4e, 0x18000c6ae mov [rsp+58h+var_38], rdi; struct cocos2d::CCSprite * ; +0x57, 0x18000c6b7 mov r9, rsi; struct cocos2d::CCSprite * ; +0x5c, 0x18000c6bc mov r8, rbp; struct cocos2d::CCSprite * ; +0x5f, 0x18000c6bf mov rdx, r14; struct cocos2d::CCSprite * ; +0x62, 0x18000c6c2 mov rcx, rax; this ; +0x65, 0x18000c6c5 call ?initWithMaskSprite@CCControlSwitch@extension@cocos2d@@QEAA_NPEAVCCSprite@3@000PEAVCCLabelTTF@3@1@Z; cocos2d::extension::CCControlSwitch::initWithMaskSprite(cocos2d::CCSprite *,cocos2d::CCSprite *,cocos2d::CCSprite *,cocos2d::CCSprite *,cocos2d::CCLabelTTF *,cocos2d::CCLabelTTF *) ; +0x68, 0x18000c6c8 mov rcx, rbx ; +0x6d, 0x18000c6cd test al, al ; +0x70, 0x18000c6d0 jz short loc_18000C6DC ; +0x72, 0x18000c6d2 call cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x74, 0x18000c6d4 jmp short loc_18000C6E9 ; +0x7a, 0x18000c6da mov rax, [rbx] ; +0x7c, 0x18000c6dc mov edx, 1 ; +0x7f, 0x18000c6df call qword ptr [rax+8] ; +0x84, 0x18000c6e4 xor ebx, ebx ; +0x87, 0x18000c6e7 mov rax, rbx ; +0x89, 0x18000c6e9 mov rbx, [rsp+58h+arg_0] ; +0x8c, 0x18000c6ec mov rbp, [rsp+58h+arg_8] ; +0x91, 0x18000c6f1 mov rsi, [rsp+58h+arg_10] ; +0x96, 0x18000c6f6 mov rdi, [rsp+58h+arg_18] ; +0x9b, 0x18000c6fb add rsp, 50h ; +0xa0, 0x18000c700 pop r14 ; +0xa4, 0x18000c704 retn ; +0xa6, 0x18000c706