//
// sub_14024A470 from 0x14024a470 to 0x14024a570 (256 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::stopCustomEnterEffect @ 0x14020e81c
// > GJBaseGameLayer::stopCustomEnterEffect @ 0x14020e83e
// > EffectGameObject::triggerObject @ 0x1404a7785
// > EffectGameObject::triggerObject @ 0x1404a77eb
// > ??> @ 0x1406ceafc
//
// 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
//
__int64 __fastcall sub_14024A470(_QWORD *a1, unsigned __int8 *a2)
{
void **v4; // rcx
void **v5; // rdx
_DWORD *v6; // rbx
_DWORD *v7; // rax
void *v8; // rax
__int64 v9; // rcx
v4 = (void **)(a1 + 1);
v5 = (void **)(a1[3]
+ 16
* ((0x100000001B3LL
* (a2[3]
^ (0x100000001B3LL
* (a2[2] ^ (0x100000001B3LL * (a2[1] ^ (0x100000001B3LL * (*a2 ^ 0xCBF29CE484222325uLL))))))))
& a1[6]));
v6 = v5[1];
if ( v6 != *v4 )
{
if ( *(_DWORD *)a2 == v6[4] )
goto LABEL_8;
while ( v6 != *v5 )
{
v6 = *((_DWORD **)v6 + 1);
if ( *(_DWORD *)a2 == v6[4] )
{
v4 = (void **)(a1 + 1);
goto LABEL_8;
}
}
v4 = (void **)(a1 + 1);
}
v6 = nullptr;
LABEL_8:
if ( !v6 )
return 0;
v7 = *v5;
if ( v5[1] == v6 )
{
if ( v7 == v6 )
{
v8 = *v4;
*v5 = *v4;
}
else
{
v8 = *((void **)v6 + 1);
}
v5[1] = v8;
}
else if ( v7 == v6 )
{
*v5 = *(void **)v6;
}
v9 = *(_QWORD *)v6;
--a1[2];
**((_QWORD **)v6 + 1) = v9;
*(_QWORD *)(v9 + 8) = *((_QWORD *)v6 + 1);
sub_14024BCB0(v6 + 6);
j_j_free(v6);
return 1;
}