//
// -[CCEventDispatcher addKeyboardDelegate:priority:] from 0x1002955d0 to 0x100295652 (130 bytes)
//
// 1 xrefs:
// > ??> @ 0x100999da8
//
// 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 addKeyboardDelegate:priority:](
CCEventDispatcher *self,
SEL a2,
id a3,
signed __int64 a4)
{
_BOOL8 v6; // r12
__int64 v7; // r12
char v8; // al
v6 = (unsigned __int8)objc_opt_respondsToSelector(a3, "ccKeyUp:") != 0;
v7 = v6 + 2LL * ((unsigned __int8)objc_opt_respondsToSelector(a3, "ccKeyDown:") != 0);
v8 = objc_opt_respondsToSelector(a3, "ccFlagsChanged:");
-[CCEventDispatcher addDelegate:priority:flags:list:](
self,
"addDelegate:priority:flags:list:",
a3,
a4,
v7 + 4LL * (v8 != 0),
&self->keyboardDelegates_);
}