; ; cocos2d::CCMenuItemToggle::initWithTarget from 0x18005b2a0 to 0x18005b326 (134 bytes) ; ; 4 xrefs: ; > @ 0x180138fc8 ; > @ 0x180138fd8 ; > @ 0x1801438a8 ; > @ 0x1801b2db4 ; ; 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_8], rsi ; +0x0, 0x18005b2a0 push rdi ; +0x5, 0x18005b2a5 sub rsp, 20h ; +0x6, 0x18005b2a6 mov rdi, r9 ; +0xa, 0x18005b2aa mov rsi, rcx ; +0xd, 0x18005b2ad call ?initWithTarget@CCMenuItem@cocos2d@@QEAA_NPEAVCCObject@2@P832@EAAX0@Z@Z; cocos2d::CCMenuItem::initWithTarget(cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *)) ; +0x10, 0x18005b2b0 call ?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x15, 0x18005b2b5 mov rcx, rax; this ; +0x1a, 0x18005b2ba mov [rsi+180h], rax ; +0x1d, 0x18005b2bd call ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x24, 0x18005b2c4 test rdi, rdi ; +0x29, 0x18005b2c9 jz short loc_18005B301 ; +0x2c, 0x18005b2cc mov [rsp+28h+arg_0], rbx ; +0x2e, 0x18005b2ce mov rbx, [rsp+28h+arg_20] ; +0x33, 0x18005b2d3 add rbx, 0FFFFFFFFFFFFFFF8h ; +0x38, 0x18005b2d8 nop dword ptr [rax+00h] ; +0x3c, 0x18005b2dc mov rcx, [rsi+180h]; this ; +0x40, 0x18005b2e0 mov rdx, rdi; struct cocos2d::CCObject * ; +0x47, 0x18005b2e7 call ?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x4a, 0x18005b2ea mov rdi, [rbx+8] ; +0x4f, 0x18005b2ef lea rbx, [rbx+8] ; +0x53, 0x18005b2f3 test rdi, rdi ; +0x57, 0x18005b2f7 jnz short loc_18005B2E0 ; +0x5a, 0x18005b2fa mov rbx, [rsp+28h+arg_0] ; +0x5c, 0x18005b2fc mov rax, [rsi] ; +0x61, 0x18005b301 xor edx, edx ; +0x64, 0x18005b304 mov rcx, rsi ; +0x66, 0x18005b306 mov dword ptr [rsi+178h], 0FFFFFFFFh ; +0x69, 0x18005b309 call qword ptr [rax+3B0h] ; +0x73, 0x18005b313 mov rsi, [rsp+28h+arg_8] ; +0x79, 0x18005b319 mov al, 1 ; +0x7e, 0x18005b31e add rsp, 20h ; +0x80, 0x18005b320 pop rdi ; +0x84, 0x18005b324 retn ; +0x85, 0x18005b325