//
// -[CCEventDispatcher removeAllDelegatesFromList:] from 0x10027f9c0 to 0x10027fa32 (114 bytes)
//
// 1 xrefs:
// > ??> @ 0x100bdbdd0
//
// 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 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_1009A6660(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);
}
}