//
// sub_14024A3A0 from 0x14024a3a0 to 0x14024a463 (195 bytes)
//
// 7 xrefs:
// > GJBaseGameLayer::resetActiveEnterEffects @ 0x14020e3e0
// > GJBaseGameLayer::resetActiveEnterEffects @ 0x14020e3f1
// > sub_14024A1E0 @ 0x14024a1f5
// > sub_140251140 @ 0x140251146
// > ??> @ 0x140682bcc
// > ??> @ 0x140682c00
// > ??> @ 0x1406ceac0
//
// 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
//
unsigned __int64 __fastcall sub_14024A3A0(_QWORD *a1)
{
unsigned __int64 v2; // rcx
unsigned __int64 result; // rax
_QWORD **v4; // rcx
_QWORD *v5; // rsi
_QWORD *v6; // rbx
unsigned __int64 *v7; // rdx
unsigned __int64 *v8; // rcx
unsigned __int64 v9; // [rsp+30h] [rbp+8h] BYREF
v2 = a1[2];
if ( v2 )
{
if ( a1[7] >> 3 <= v2 )
{
v4 = (_QWORD **)a1[1];
*v4[1] = 0;
v5 = *v4;
if ( *v4 )
{
do
{
v6 = (_QWORD *)*v5;
sub_14024BCB0(v5 + 3);
j_j_free(v5);
v5 = v6;
}
while ( v6 );
}
*(_QWORD *)a1[1] = a1[1];
*(_QWORD *)(a1[1] + 8LL) = a1[1];
a1[2] = 0;
v7 = (unsigned __int64 *)a1[4];
v8 = (unsigned __int64 *)a1[3];
v9 = a1[1];
return sub_140060560(v8, v7, &v9);
}
else
{
return sub_14024BD80(a1, *(_QWORD *)a1[1], a1[1]);
}
}
return result;
}