; ; cocos2d::CCMenuItemToggle::initWithItem from 0x18005adf0 to 0x18005aeba (202 bytes) ; ; 4 xrefs: ; > cocos2d::CCMenuItemToggle::create @ 0x18005ab06 ; > cocos2d::CCMenuItemToggle::create @ 0x18005ab5e ; > @ 0x1801438a8 ; > @ 0x1801b2d60 ; ; 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], rbx ; +0x0, 0x18005adf0 mov [rsp+arg_10], rsi ; +0x5, 0x18005adf5 push rdi ; +0xa, 0x18005adfa sub rsp, 20h ; +0xb, 0x18005adfb movss xmm1, cs:dword_1800E6308 ; +0xf, 0x18005adff mov rdi, rcx ; +0x17, 0x18005ae07 mov rbx, [rcx] ; +0x1a, 0x18005ae0a movaps xmm2, xmm1 ; +0x1d, 0x18005ae0d lea rcx, [rsp+28h+arg_0] ; +0x20, 0x18005ae10 mov rsi, rdx ; +0x25, 0x18005ae15 call kmVec2Fill ; +0x28, 0x18005ae18 mov rdx, rax ; +0x2d, 0x18005ae1d mov rcx, rdi ; +0x30, 0x18005ae20 call qword ptr [rbx+110h] ; +0x33, 0x18005ae23 mov rbx, [rdi] ; +0x39, 0x18005ae29 xor eax, eax ; +0x3c, 0x18005ae2c mov [rdi+160h], rax ; +0x3e, 0x18005ae2e mov [rdi+168h], rax ; +0x45, 0x18005ae35 mov word ptr [rdi+158h], 100h ; +0x4c, 0x18005ae3c call ?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x55, 0x18005ae45 mov rdx, rax ; +0x5a, 0x18005ae4a mov rcx, rdi ; +0x5d, 0x18005ae4d call qword ptr [rbx+3C0h] ; +0x60, 0x18005ae50 test rsi, rsi ; +0x66, 0x18005ae56 jz short loc_18005AE6A ; +0x69, 0x18005ae59 mov rcx, [rdi+180h]; this ; +0x6b, 0x18005ae5b mov rdx, rsi; struct cocos2d::CCObject * ; +0x72, 0x18005ae62 call ?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x75, 0x18005ae65 mov rax, [rdi] ; +0x7a, 0x18005ae6a xor edx, edx ; +0x7d, 0x18005ae6d mov rcx, rdi ; +0x7f, 0x18005ae6f mov dword ptr [rdi+178h], 0FFFFFFFFh ; +0x82, 0x18005ae72 call qword ptr [rax+3B0h] ; +0x8c, 0x18005ae7c mov rax, [rdi+140h] ; +0x92, 0x18005ae82 lea rcx, [rdi+140h] ; +0x99, 0x18005ae89 mov dl, 1 ; +0xa0, 0x18005ae90 call qword ptr [rax+48h] ; +0xa2, 0x18005ae92 mov rax, [rdi+140h] ; +0xa5, 0x18005ae95 lea rcx, [rdi+140h] ; +0xac, 0x18005ae9c mov dl, 1 ; +0xb3, 0x18005aea3 call qword ptr [rax+60h] ; +0xb5, 0x18005aea5 mov rbx, [rsp+28h+arg_8] ; +0xb8, 0x18005aea8 mov al, 1 ; +0xbd, 0x18005aead mov rsi, [rsp+28h+arg_10] ; +0xbf, 0x18005aeaf add rsp, 20h ; +0xc4, 0x18005aeb4 pop rdi ; +0xc8, 0x18005aeb8 retn ; +0xc9, 0x18005aeb9