//
// -[CCEventDispatcher mouseDown:] from 0x1002957a0 to 0x100295836 (150 bytes)
//
// 1 xrefs:
// > ??> @ 0x100999e38
//
// 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 mouseDown:](CCEventDispatcher *self, SEL a2, id a3)
{
id v4; // rax
_listEntry *mouseDelegates; // rax
_listEntry *var1; // r13
v4 = +[EAGLView sharedEGLView](&OBJC_CLASS___EAGLView, "sharedEGLView");
objc_msgSend(v4, "mouseDownExec:", a3);
if ( self->dispatchEvents_ )
{
mouseDelegates = self->mouseDelegates_;
if ( mouseDelegates )
{
do
{
var1 = mouseDelegates->var1;
if ( (mouseDelegates->var4 & 1) != 0
&& objc_msgSend(mouseDelegates->var2, "performSelector:withObject:", "ccMouseDown:", a3) )
{
break;
}
mouseDelegates = var1;
}
while ( var1 );
}
}
}