; ; cocos2d::extension::CCControl::addTargetWithActionForControlEvent from 0x1800040a0 to 0x18000414f (175 bytes) ; ; 3 xrefs: ; > cocos2d::extension::CCControl::addTargetWithActionForControlEvents @ 0x180004070 ; > @ 0x180032408 ; > @ 0x18004b354 ; ; 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:35 +0000 ; mov [rsp+arg_8], rbx ; +0x0, 0x1800040a0 mov [rsp+arg_10], rbp ; +0x5, 0x1800040a5 push rsi ; +0xa, 0x1800040aa push rdi ; +0xb, 0x1800040ab push r14 ; +0xc, 0x1800040ac sub rsp, 20h ; +0xe, 0x1800040ae mov ebp, r9d ; +0x12, 0x1800040b2 mov rdi, r8 ; +0x15, 0x1800040b5 mov rbx, rdx ; +0x18, 0x1800040b8 mov r14, rcx ; +0x1b, 0x1800040bb mov ecx, 50h ; 'P'; Size ; +0x1e, 0x1800040be call sub_18001F040 ; +0x23, 0x1800040c3 mov rsi, rax ; +0x28, 0x1800040c8 mov [rsp+38h+arg_0], rax ; +0x2b, 0x1800040cb mov rcx, rax ; +0x30, 0x1800040d0 call cs:??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x33, 0x1800040d3 lea rax, ??_7CCInvocation@extension@cocos2d@@6B@; const cocos2d::extension::CCInvocation::`vftable' ; +0x39, 0x1800040d9 mov [rsi], rax ; +0x40, 0x1800040e0 mov [rsi+40h], rbx ; +0x43, 0x1800040e3 mov [rsi+38h], rdi ; +0x47, 0x1800040e7 mov [rsi+48h], ebp ; +0x4b, 0x1800040eb mov rcx, rsi ; +0x4e, 0x1800040ee call cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x51, 0x1800040f1 movsxd rdx, ebp ; +0x57, 0x1800040f7 mov rcx, [r14+1C0h] ; +0x5a, 0x1800040fa call cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x61, 0x180004101 mov rbx, rax ; +0x67, 0x180004107 test rax, rax ; +0x6a, 0x18000410a jnz short loc_180004130 ; +0x6d, 0x18000410d mov ecx, 1 ; +0x6f, 0x18000410f call cs:?createWithCapacity@CCArray@cocos2d@@SAPEAV12@I@Z; cocos2d::CCArray::createWithCapacity(uint) ; +0x74, 0x180004114 mov rbx, rax ; +0x7a, 0x18000411a mov r8d, ebp ; +0x7d, 0x18000411d mov rdx, rax ; +0x80, 0x180004120 mov rcx, [r14+1C0h] ; +0x83, 0x180004123 call cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,__int64) ; +0x8a, 0x18000412a mov rdx, rsi ; +0x90, 0x180004130 mov rcx, rbx ; +0x93, 0x180004133 mov rbx, [rsp+38h+arg_8] ; +0x96, 0x180004136 mov rbp, [rsp+38h+arg_10] ; +0x9b, 0x18000413b add rsp, 20h ; +0xa0, 0x180004140 pop r14 ; +0xa4, 0x180004144 pop rdi ; +0xa6, 0x180004146 pop rsi ; +0xa7, 0x180004147 jmp cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0xa8, 0x180004148