//
// -[CCEventDispatcher addTouchDelegate:priority:] from 0x10027fd10 to 0x10027fdc8 (184 bytes)
//
// 1 xrefs:
// > ??> @ 0x100bdbe78
//
// 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 addTouchDelegate:priority:](CCEventDispatcher *self, SEL a2, id a3, signed __int64 a4)
{
int v6; // r12d
int v7; // r13d
int v8; // r12d
char v9; // al
v6 = ((unsigned __int8)objc_opt_respondsToSelector(a3, "ccTouchesBeganWithEvent:") != 0) << 13;
v7 = v6 | (((unsigned __int8)objc_opt_respondsToSelector(a3, "ccTouchesMovedWithEvent:") != 0) << 14);
v8 = v7 | (((unsigned __int8)objc_opt_respondsToSelector(a3, "ccTouchesEndedWithEvent:") != 0) << 15);
v9 = objc_opt_respondsToSelector(a3, "ccTouchesCancelledWithEvent:");
-[CCEventDispatcher addDelegate:priority:flags:list:](
self,
"addDelegate:priority:flags:list:",
a3,
a4,
v8 | ((unsigned __int8)(v9 != 0) << 16),
&self->touchDelegates_);
}