// // -[CCEventDispatcher addMouseDelegate:priority:] from 0x1002953d0 to 0x10029558a (442 bytes) // // 1 xrefs: // > @ 0x100999d60 // // 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 // 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_); }