; ; cocos2d::CCMenuItemToggle::setEnabled from 0x18005d840 to 0x18005d8ce (142 bytes) ; ; 5 xrefs: ; > @ 0x1800ff490 ; > @ 0x1801422cc ; > @ 0x1801422dc ; > @ 0x18014cf68 ; > @ 0x1801bd168 ; ; 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 11:21:49 +0000 ; mov [rsp+arg_8], rbx ; +0x0, 0x18005d840 push rdi ; +0x5, 0x18005d845 sub rsp, 20h ; +0x6, 0x18005d846 movzx edi, dl ; +0xa, 0x18005d84a mov rbx, rcx ; +0xd, 0x18005d84d cmp [rcx+159h], dl ; +0x10, 0x18005d850 jz short loc_18005D8C3 ; +0x16, 0x18005d856 mov [rcx+159h], dl ; +0x18, 0x18005d858 mov rcx, [rcx+180h]; this ; +0x1e, 0x18005d85e test rcx, rcx ; +0x25, 0x18005d865 jz short loc_18005D8C3 ; +0x28, 0x18005d868 call ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x2a, 0x18005d86a test eax, eax ; +0x2f, 0x18005d86f jz short loc_18005D8C3 ; +0x31, 0x18005d871 mov rax, [rbx+180h] ; +0x33, 0x18005d873 test rax, rax ; +0x3a, 0x18005d87a jz short loc_18005D8C3 ; +0x3d, 0x18005d87d mov rbx, [rax+38h] ; +0x3f, 0x18005d87f mov eax, [rbx] ; +0x43, 0x18005d883 test eax, eax ; +0x45, 0x18005d885 jz short loc_18005D8C3 ; +0x47, 0x18005d887 mov rbx, [rbx+10h] ; +0x49, 0x18005d889 mov [rsp+28h+arg_0], rsi ; +0x4d, 0x18005d88d lea rsi, [rax-1] ; +0x52, 0x18005d892 lea rsi, [rbx+rsi*8] ; +0x56, 0x18005d896 cmp rbx, rsi ; +0x5a, 0x18005d89a ja short loc_18005D8BE ; +0x5d, 0x18005d89d nop ; +0x5f, 0x18005d89f mov rcx, [rbx] ; +0x60, 0x18005d8a0 test rcx, rcx ; +0x63, 0x18005d8a3 jz short loc_18005D8BE ; +0x66, 0x18005d8a6 mov rax, [rcx] ; +0x68, 0x18005d8a8 movzx edx, dil ; +0x6b, 0x18005d8ab call qword ptr [rax+3A8h] ; +0x6f, 0x18005d8af add rbx, 8 ; +0x75, 0x18005d8b5 cmp rbx, rsi ; +0x79, 0x18005d8b9 jbe short loc_18005D8A0 ; +0x7c, 0x18005d8bc mov rsi, [rsp+28h+arg_0] ; +0x7e, 0x18005d8be mov rbx, [rsp+28h+arg_8] ; +0x83, 0x18005d8c3 add rsp, 20h ; +0x88, 0x18005d8c8 pop rdi ; +0x8c, 0x18005d8cc retn ; +0x8d, 0x18005d8cd