; ; cocos2d::CCMenuItemToggle::setSelectedIndex from 0x18005bb90 to 0x18005bc83 (243 bytes) ; ; 3 xrefs: ; > @ 0x1800f8fd0 ; > @ 0x1801438a8 ; > @ 0x1801b2f64 ; ; 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, 0x18005bb90 push rdi ; +0x5, 0x18005bb95 sub rsp, 20h ; +0x6, 0x18005bb96 mov edi, edx ; +0xa, 0x18005bb9a mov rbx, rcx ; +0xc, 0x18005bb9c cmp edx, [rcx+178h] ; +0xf, 0x18005bb9f jz loc_18005BC78 ; +0x15, 0x18005bba5 mov rcx, [rcx+180h]; this ; +0x1b, 0x18005bbab call ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x22, 0x18005bbb2 test eax, eax ; +0x27, 0x18005bbb7 jz loc_18005BC78 ; +0x29, 0x18005bbb9 mov rax, [rbx] ; +0x2f, 0x18005bbbf mov edx, 0C0C05001h ; +0x32, 0x18005bbc2 mov rcx, rbx ; +0x37, 0x18005bbc7 mov [rbx+178h], edi ; +0x3a, 0x18005bbca call qword ptr [rax+1C8h] ; +0x40, 0x18005bbd0 test rax, rax ; +0x46, 0x18005bbd6 jz short loc_18005BBEA ; +0x49, 0x18005bbd9 mov r8, [rax] ; +0x4b, 0x18005bbdb xor edx, edx ; +0x4e, 0x18005bbde mov rcx, rax ; +0x50, 0x18005bbe0 call qword ptr [r8+1F8h] ; +0x53, 0x18005bbe3 mov edx, [rbx+178h]; unsigned int ; +0x5a, 0x18005bbea mov rcx, [rbx+180h]; this ; +0x60, 0x18005bbf0 call ?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x67, 0x18005bbf7 mov r10, [rbx] ; +0x6c, 0x18005bbfc mov r9d, 0C0C05001h ; +0x6f, 0x18005bbff xor r8d, r8d ; +0x75, 0x18005bc05 mov rdx, rax ; +0x78, 0x18005bc08 mov rcx, rbx ; +0x7b, 0x18005bc0b mov rdi, rax ; +0x7e, 0x18005bc0e call qword ptr [r10+1B0h] ; +0x81, 0x18005bc11 mov rdx, [rdi] ; +0x88, 0x18005bc18 mov rcx, rdi ; +0x8b, 0x18005bc1b call qword ptr [rdx+130h] ; +0x8e, 0x18005bc1e mov rdx, rax ; +0x94, 0x18005bc24 lea rcx, [rsp+28h+arg_0] ; +0x97, 0x18005bc27 call ??4cc_timeval@cocos2d@@QEAAAEAU01@$$QEAU01@@Z; cocos2d::cc_timeval::operator=(cocos2d::cc_timeval &&) ; +0x9c, 0x18005bc2c mov r8, [rbx] ; +0xa1, 0x18005bc31 lea rdx, [rsp+28h+arg_0] ; +0xa4, 0x18005bc34 mov rcx, rbx ; +0xa9, 0x18005bc39 call qword ptr [r8+128h] ; +0xac, 0x18005bc3c movss xmm2, [rsp+28h+arg_4] ; +0xb3, 0x18005bc43 lea rcx, [rsp+28h+arg_10] ; +0xb9, 0x18005bc49 movss xmm1, [rsp+28h+arg_0] ; +0xbe, 0x18005bc4e mulss xmm2, cs:dword_1800E6308 ; +0xc4, 0x18005bc54 mov rbx, [rdi] ; +0xcc, 0x18005bc5c mulss xmm1, cs:dword_1800E6308 ; +0xcf, 0x18005bc5f call kmVec2Fill ; +0xd7, 0x18005bc67 mov rdx, rax ; +0xdc, 0x18005bc6c mov rcx, rdi ; +0xdf, 0x18005bc6f call qword ptr [rbx+0B8h] ; +0xe2, 0x18005bc72 mov rbx, [rsp+28h+arg_8] ; +0xe8, 0x18005bc78 add rsp, 20h ; +0xed, 0x18005bc7d pop rdi ; +0xf1, 0x18005bc81 retn ; +0xf2, 0x18005bc82