//
// -[CCEventDispatcher removeAllDelegatesFromList:] from 0x100295350 to 0x1002953c2 (114 bytes)
//
// 1 xrefs:
// > ??> @ 0x100999d48
//
// 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 removeAllDelegatesFromList:](CCEventDispatcher *self, SEL a2, _listEntry **a3)
{
_listEntry *v3; // r14
_listEntry *var0; // rax
_listEntry *v6; // rcx
v3 = *a3;
while ( v3 )
{
var0 = v3->var0;
if ( !v3->var0 )
sub_1007CBC10(self, a2);
self = (CCEventDispatcher *)v3;
v3 = v3->var1;
if ( var0 == (_listEntry *)self )
{
*a3 = nullptr;
}
else if ( self == (CCEventDispatcher *)*a3 )
{
v3->var0 = var0;
*a3 = v3;
}
else
{
var0->var1 = v3;
v6 = *(_listEntry **)&self->dispatchEvents_;
if ( !v6 )
v6 = *a3;
v6->var0 = var0;
}
free(self);
}
}