; ; cocos2d::CCMenuItemSprite::selected from 0x18005d520 to 0x18005d5ce (174 bytes) ; ; 6 xrefs: ; > @ 0x1800feb88 ; > @ 0x1800feff8 ; > @ 0x1801420b8 ; > @ 0x1801420c8 ; > @ 0x18014cf68 ; > @ 0x1801bd0d8 ; ; 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, 0x18005d520 mov [rsp+arg_10], rsi ; +0x5, 0x18005d525 push rdi ; +0xa, 0x18005d52a sub rsp, 20h ; +0xb, 0x18005d52b cmp qword ptr [rcx+180h], 0 ; +0xf, 0x18005d52f mov rbx, rcx ; +0x17, 0x18005d537 mov byte ptr [rcx+158h], 1 ; +0x1a, 0x18005d53a jnz short loc_18005D54D ; +0x21, 0x18005d541 cmp qword ptr [rcx+188h], 0 ; +0x23, 0x18005d543 jz short loc_18005D5BE ; +0x2b, 0x18005d54b cmp qword ptr [rcx+178h], 0 ; +0x2d, 0x18005d54d lea rsi, [rcx+180h] ; +0x35, 0x18005d555 jz short loc_18005D5BE ; +0x3c, 0x18005d55c mov rcx, [rcx+188h] ; +0x3e, 0x18005d55e mov [rsp+28h+arg_0], r14 ; +0x45, 0x18005d565 lea r14, [rbx+180h] ; +0x4a, 0x18005d56a test rcx, rcx ; +0x51, 0x18005d571 jz short loc_18005D584 ; +0x54, 0x18005d574 mov rax, [rcx] ; +0x56, 0x18005d576 xor edx, edx ; +0x59, 0x18005d579 call qword ptr [rax+150h] ; +0x5b, 0x18005d57b mov r14, rsi ; +0x61, 0x18005d581 cmp qword ptr [rbx+180h], 0 ; +0x64, 0x18005d584 mov rcx, [rbx+178h] ; +0x6c, 0x18005d58c mov rax, [rcx] ; +0x73, 0x18005d593 mov r8, [rax+150h] ; +0x76, 0x18005d596 jz short loc_18005D5B4 ; +0x7d, 0x18005d59d xor edx, edx ; +0x7f, 0x18005d59f call r8 ; +0x81, 0x18005d5a1 mov rcx, [r14] ; +0x84, 0x18005d5a4 mov dl, 1 ; +0x87, 0x18005d5a7 mov rax, [rcx] ; +0x89, 0x18005d5a9 call qword ptr [rax+150h] ; +0x8c, 0x18005d5ac jmp short loc_18005D5B9 ; +0x92, 0x18005d5b2 mov dl, 1 ; +0x94, 0x18005d5b4 call r8 ; +0x96, 0x18005d5b6 mov r14, [rsp+28h+arg_0] ; +0x99, 0x18005d5b9 mov rbx, [rsp+28h+arg_8] ; +0x9e, 0x18005d5be mov rsi, [rsp+28h+arg_10] ; +0xa3, 0x18005d5c3 add rsp, 20h ; +0xa8, 0x18005d5c8 pop rdi ; +0xac, 0x18005d5cc retn ; +0xad, 0x18005d5cd