; ; cocos2d::CCMenuItemToggle::setEnabled from 0x18005b800 to 0x18005b88e (142 bytes) ; ; 5 xrefs: ; > @ 0x1800f8fb8 ; > @ 0x180139010 ; > @ 0x180139020 ; > @ 0x1801438a8 ; > @ 0x1801b2eb0 ; ; 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, 0x18005b800 push rdi ; +0x5, 0x18005b805 sub rsp, 20h ; +0x6, 0x18005b806 movzx edi, dl ; +0xa, 0x18005b80a mov rbx, rcx ; +0xd, 0x18005b80d cmp [rcx+159h], dl ; +0x10, 0x18005b810 jz short loc_18005B883 ; +0x16, 0x18005b816 mov [rcx+159h], dl ; +0x18, 0x18005b818 mov rcx, [rcx+180h]; this ; +0x1e, 0x18005b81e test rcx, rcx ; +0x25, 0x18005b825 jz short loc_18005B883 ; +0x28, 0x18005b828 call ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x2a, 0x18005b82a test eax, eax ; +0x2f, 0x18005b82f jz short loc_18005B883 ; +0x31, 0x18005b831 mov rax, [rbx+180h] ; +0x33, 0x18005b833 test rax, rax ; +0x3a, 0x18005b83a jz short loc_18005B883 ; +0x3d, 0x18005b83d mov rbx, [rax+38h] ; +0x3f, 0x18005b83f mov eax, [rbx] ; +0x43, 0x18005b843 test eax, eax ; +0x45, 0x18005b845 jz short loc_18005B883 ; +0x47, 0x18005b847 mov rbx, [rbx+10h] ; +0x49, 0x18005b849 mov [rsp+28h+arg_0], rsi ; +0x4d, 0x18005b84d lea rsi, [rax-1] ; +0x52, 0x18005b852 lea rsi, [rbx+rsi*8] ; +0x56, 0x18005b856 cmp rbx, rsi ; +0x5a, 0x18005b85a ja short loc_18005B87E ; +0x5d, 0x18005b85d nop ; +0x5f, 0x18005b85f mov rcx, [rbx] ; +0x60, 0x18005b860 test rcx, rcx ; +0x63, 0x18005b863 jz short loc_18005B87E ; +0x66, 0x18005b866 mov rax, [rcx] ; +0x68, 0x18005b868 movzx edx, dil ; +0x6b, 0x18005b86b call qword ptr [rax+398h] ; +0x6f, 0x18005b86f add rbx, 8 ; +0x75, 0x18005b875 cmp rbx, rsi ; +0x79, 0x18005b879 jbe short loc_18005B860 ; +0x7c, 0x18005b87c mov rsi, [rsp+28h+arg_0] ; +0x7e, 0x18005b87e mov rbx, [rsp+28h+arg_8] ; +0x83, 0x18005b883 add rsp, 20h ; +0x88, 0x18005b888 pop rdi ; +0x8c, 0x18005b88c retn ; +0x8d, 0x18005b88d