//
// GJEffectManager::playerDied from 0x100014f68 to 0x100015040 (216 bytes)
//
// 1 xrefs:
// > PlayLayer::destroyPlayer @ 0x10011ea44
//
// 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 __fastcall GJEffectManager::playerDied(GJEffectManager *a1)
{
std::__vector_base::pointer end; // x8
std::__vector_base::pointer begin; // x9
__int64 v4; // x20
unsigned __int64 v5; // x21
ToggleTriggerAction *v6; // x23
void *__p; // [xsp+8h] [xbp-48h] BYREF
void *v8; // [xsp+10h] [xbp-40h]
__int64 v9; // [xsp+18h] [xbp-38h]
if ( a1->m_triggerEffectDelegate )
{
end = a1->m_unkVector248.__end_;
begin = a1->m_unkVector248.__begin_;
if ( end != begin )
{
v4 = 0;
v5 = 0;
do
{
if ( !begin[v4].m_disabled )
{
v6 = &begin[v4];
__p = nullptr;
v8 = nullptr;
v9 = 0;
sub_100017EB4(&__p);
((void (__fastcall *)(TriggerEffectDelegate *, _QWORD, bool, void **, _QWORD, _QWORD))a1->m_triggerEffectDelegate->toggleGroupTriggered)(
a1->m_triggerEffectDelegate,
(unsigned int)v6->m_targetGroupID,
v6->m_activateGroup,
&__p,
(unsigned int)v6->m_triggerUniqueID,
(unsigned int)v6->m_controlID);
if ( __p )
{
v8 = __p;
operator delete(__p);
}
end = a1->m_unkVector248.__end_;
begin = a1->m_unkVector248.__begin_;
}
++v5;
++v4;
}
while ( 0xAAAAAAAAAAAAAAABLL * (((char *)end - (char *)begin) >> 4) > v5 );
}
}
}