; ; cocos2d::CCMenuItemToggle::activate from 0x18005a220 to 0x18005a2a6 (134 bytes) ; ; 3 xrefs: ; > @ 0x1800f8f88 ; > @ 0x1801438a8 ; > @ 0x1801b2c64 ; ; 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 ; push rbx ; +0x0, 0x18005a220 sub rsp, 20h ; +0x2, 0x18005a222 cmp byte ptr [rcx+159h], 0 ; +0x6, 0x18005a226 mov rbx, rcx ; +0xd, 0x18005a22d jz short loc_18005A25A ; +0x10, 0x18005a230 mov rcx, [rcx+180h]; this ; +0x12, 0x18005a232 call ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x19, 0x18005a239 mov r8d, eax ; +0x1e, 0x18005a23e xor edx, edx ; +0x21, 0x18005a241 mov eax, [rbx+178h] ; +0x23, 0x18005a243 mov rcx, rbx ; +0x29, 0x18005a249 inc eax ; +0x2c, 0x18005a24c div r8d ; +0x2e, 0x18005a24e mov rax, [rbx] ; +0x31, 0x18005a251 call qword ptr [rax+3B0h] ; +0x34, 0x18005a254 cmp byte ptr [rbx+159h], 0 ; +0x3a, 0x18005a25a jz short loc_18005A2A0 ; +0x41, 0x18005a261 mov rcx, [rbx+160h] ; +0x43, 0x18005a263 test rcx, rcx ; +0x4a, 0x18005a26a jz short loc_18005A280 ; +0x4d, 0x18005a26d mov rax, [rbx+168h] ; +0x4f, 0x18005a26f test rax, rax ; +0x56, 0x18005a276 jz short loc_18005A280 ; +0x59, 0x18005a279 mov rdx, rbx ; +0x5b, 0x18005a27b call rax ; +0x5e, 0x18005a27e cmp dword ptr [rbx+12Ch], 0 ; +0x60, 0x18005a280 jz short loc_18005A2A0 ; +0x67, 0x18005a287 call ?sharedManager@CCScriptEngineManager@cocos2d@@SAPEAV12@XZ; cocos2d::CCScriptEngineManager::sharedManager(void) ; +0x69, 0x18005a289 mov rdx, rbx ; +0x6e, 0x18005a28e mov rcx, [rax] ; +0x71, 0x18005a291 mov rax, [rcx] ; +0x74, 0x18005a294 add rsp, 20h ; +0x77, 0x18005a297 pop rbx ; +0x7b, 0x18005a29b jmp qword ptr [rax+48h] ; +0x7c, 0x18005a29c add rsp, 20h ; +0x80, 0x18005a2a0 pop rbx ; +0x84, 0x18005a2a4 retn ; +0x85, 0x18005a2a5