//
// GJEffectManager::playerDied from 0x9fdc54 to 0x9fddd4 (384 bytes)
//
// 2 xrefs:
// > PlayLayer::destroyPlayer @ 0x6ff248
// > ??> @ 0xf50e0
//
// This function is hookable on this platform (idp: arm, 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:59:18 +0000
//
__int64 __fastcall GJEffectManager::playerDied(GJEffectManager *this)
{
__int64 v2; // x1
__int64 v3; // x3
__int64 v4; // x19
unsigned __int64 i; // x20
unsigned __int64 v6; // x2
__int64 v7; // x25
void *v9; // [xsp+50h] [xbp+50h] BYREF
char *v10; // [xsp+58h] [xbp+58h]
if ( *((_QWORD *)this + 40) )
{
v2 = *((_QWORD *)this + 67);
v3 = *((_QWORD *)this + 68);
if ( 0xAAAAAAAAAAAAAAABLL * ((v3 - v2) >> 4) )
{
v4 = 0;
for ( i = 1; ; i = v6 )
{
v7 = v2 + v4;
if ( *(_BYTE *)(v2 + v4) )
{
v6 = i + 1;
v4 += 48;
if ( 0xAAAAAAAAAAAAAAABLL * ((v3 - v2) >> 4) <= i )
return _stack_chk_guard;
}
else
{
std::vector::vector((__int64 *)&v9, (const void **)(v7 + 24));
(***((void (__fastcall ****)(_QWORD, _QWORD, _QWORD, void **, _QWORD, _QWORD))this + 40))(
*((_QWORD *)this + 40),
*(unsigned int *)(v7 + 4),
*(unsigned __int8 *)(v7 + 8),
&v9,
*(unsigned int *)(v7 + 12),
*(unsigned int *)(v7 + 16));
if ( v9 )
{
if ( v9 != v10 )
v10 += 4 * ~((unsigned __int64)(v10 - 4 - (_BYTE *)v9) >> 2);
operator delete(v9);
}
v2 = *((_QWORD *)this + 67);
v6 = i + 1;
v3 = *((_QWORD *)this + 68);
v4 += 48;
if ( 0xAAAAAAAAAAAAAAABLL * ((v3 - v2) >> 4) <= i )
return _stack_chk_guard;
}
}
}
}
return _stack_chk_guard;
}