; ; cocos2d::CCMenuItemToggle::setSelectedIndex from 0x18005dbc0 to 0x18005dcbb (251 bytes) ; ; 3 xrefs: ; > @ 0x1800ff4a8 ; > @ 0x18014cf68 ; > @ 0x1801bd21c ; ; 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, 0x18005dbc0 push rdi ; +0x5, 0x18005dbc5 sub rsp, 20h ; +0x6, 0x18005dbc6 mov edi, edx ; +0xa, 0x18005dbca mov rbx, rcx ; +0xc, 0x18005dbcc cmp edx, [rcx+178h] ; +0xf, 0x18005dbcf jz loc_18005DCB0 ; +0x15, 0x18005dbd5 mov rcx, [rcx+180h]; this ; +0x1b, 0x18005dbdb call ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x22, 0x18005dbe2 test eax, eax ; +0x27, 0x18005dbe7 jz loc_18005DCB0 ; +0x29, 0x18005dbe9 mov rax, [rbx] ; +0x2f, 0x18005dbef mov edx, 0C0C05001h ; +0x32, 0x18005dbf2 mov rcx, rbx ; +0x37, 0x18005dbf7 mov [rbx+178h], edi ; +0x3a, 0x18005dbfa call qword ptr [rax+1D8h] ; +0x40, 0x18005dc00 test rax, rax ; +0x46, 0x18005dc06 jz short loc_18005DC1D ; +0x49, 0x18005dc09 mov rcx, [rax] ; +0x4b, 0x18005dc0b xor edx, edx ; +0x4e, 0x18005dc0e mov r8, [rcx+208h] ; +0x50, 0x18005dc10 mov rcx, rax ; +0x57, 0x18005dc17 call r8 ; +0x5a, 0x18005dc1a mov edx, [rbx+178h]; unsigned int ; +0x5d, 0x18005dc1d mov rcx, [rbx+180h]; this ; +0x63, 0x18005dc23 call ?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x6a, 0x18005dc2a mov rcx, [rbx] ; +0x6f, 0x18005dc2f mov r9d, 0C0C05001h ; +0x72, 0x18005dc32 xor r8d, r8d ; +0x78, 0x18005dc38 mov rdx, rax ; +0x7b, 0x18005dc3b mov rdi, rax ; +0x7e, 0x18005dc3e mov r10, [rcx+1C0h] ; +0x81, 0x18005dc41 mov rcx, rbx ; +0x88, 0x18005dc48 call r10 ; +0x8b, 0x18005dc4b mov rcx, [rdi] ; +0x8e, 0x18005dc4e mov rdx, [rcx+140h] ; +0x91, 0x18005dc51 mov rcx, rdi ; +0x98, 0x18005dc58 call rdx ; +0x9b, 0x18005dc5b mov rdx, rax ; +0x9d, 0x18005dc5d lea rcx, [rsp+28h+arg_0] ; +0xa0, 0x18005dc60 call ??4cc_timeval@cocos2d@@QEAAAEAU01@$$QEAU01@@Z; cocos2d::cc_timeval::operator=(cocos2d::cc_timeval &&) ; +0xa5, 0x18005dc65 mov rax, [rbx] ; +0xaa, 0x18005dc6a lea rdx, [rsp+28h+arg_0] ; +0xad, 0x18005dc6d mov rcx, rbx ; +0xb2, 0x18005dc72 call qword ptr [rax+138h] ; +0xb5, 0x18005dc75 movss xmm2, [rsp+28h+arg_4] ; +0xbb, 0x18005dc7b lea rcx, [rsp+28h+arg_10] ; +0xc1, 0x18005dc81 movss xmm1, [rsp+28h+arg_0] ; +0xc6, 0x18005dc86 mulss xmm2, cs:dword_1800EC358 ; +0xcc, 0x18005dc8c mov rbx, [rdi] ; +0xd4, 0x18005dc94 mulss xmm1, cs:dword_1800EC358 ; +0xd7, 0x18005dc97 call kmVec2Fill ; +0xdf, 0x18005dc9f mov rdx, rax ; +0xe4, 0x18005dca4 mov rcx, rdi ; +0xe7, 0x18005dca7 call qword ptr [rbx+0B8h] ; +0xea, 0x18005dcaa mov rbx, [rsp+28h+arg_8] ; +0xf0, 0x18005dcb0 add rsp, 20h ; +0xf5, 0x18005dcb5 pop rdi ; +0xf9, 0x18005dcb9 retn ; +0xfa, 0x18005dcba