// // -[CCEventDispatcher addMouseDelegate:priority:] from 0x10027fa40 to 0x10027fbfa (442 bytes) // // 1 xrefs: // > @ 0x100bdbde8 // // 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 12:27:43 +0000 // void __cdecl -[CCEventDispatcher addMouseDelegate:priority:](CCEventDispatcher *self, SEL a2, id a3, signed __int64 a4) { _BOOL8 v5; // r12 __int64 v6; // r12 __int64 v7; // r12 __int64 v8; // r12 __int64 v9; // r13 unsigned __int64 v10; // rbx unsigned __int64 v11; // r15 unsigned __int64 v12; // r12 unsigned __int64 v13; // r15 unsigned __int64 v14; // rbx char v15; // al v5 = (unsigned __int8)objc_opt_respondsToSelector(a3, "ccMouseDown:") != 0; v6 = v5 + 4LL * ((unsigned __int8)objc_opt_respondsToSelector(a3, "ccMouseDragged:") != 0); v7 = v6 + 2LL * ((unsigned __int8)objc_opt_respondsToSelector(a3, "ccMouseMoved:") != 0); v8 = v7 + 8LL * ((unsigned __int8)objc_opt_respondsToSelector(a3, "ccMouseUp:") != 0); v9 = v8 | (16 * (unsigned int)((unsigned __int8)objc_opt_respondsToSelector(a3, "ccRightMouseDown:") != 0)); LODWORD(v8) = 32 * ((unsigned __int8)objc_opt_respondsToSelector(a3, "ccRightMouseDragged:") != 0); v10 = (unsigned int)v8 | (unsigned __int64)((unsigned __int8)((unsigned __int8)objc_opt_respondsToSelector(a3, "ccRightMouseUp:") != 0) << 6); v11 = v10 | ((unsigned __int8)((unsigned __int8)objc_opt_respondsToSelector(a3, "ccOtherMouseDown:") != 0) << 7); v12 = v9 | v11 | ((unsigned __int8)((unsigned __int8)objc_opt_respondsToSelector(a3, "ccOtherMouseDragged:") != 0) << 8); LODWORD(v10) = ((unsigned __int8)objc_opt_respondsToSelector(a3, "ccOtherMouseUp:") != 0) << 9; v13 = (unsigned int)v10 | (unsigned __int64)((unsigned __int8)((unsigned __int8)objc_opt_respondsToSelector(a3, "ccMouseEntered:") != 0) << 11); v14 = v13 | ((unsigned __int8)((unsigned __int8)objc_opt_respondsToSelector(a3, "ccMouseExited:") != 0) << 12); v15 = objc_opt_respondsToSelector(a3, "ccScrollWheel:"); -[CCEventDispatcher addDelegate:priority:flags:list:]( self, "addDelegate:priority:flags:list:", a3, a4, v12 | v14 | ((unsigned __int8)(v15 != 0) << 10), &self->mouseDelegates_); }