//
// sub_1402885D0 from 0x1402885d0 to 0x140288649 (121 bytes)
//
// 9 xrefs:
// > sub_140276080 @ 0x140276093
// > GameManager::dGameManager @ 0x1402881cd
// > sub_1402885D0 @ 0x14028860a
// > sub_140359B70 @ 0x140359c0c
// > GJEffectManager::dGJEffectManager @ 0x1403649dd
// > GJEffectManager::prepareMoveActions @ 0x140369c36
// > ??> @ 0x1408aea70
// > ??> @ 0x1408aea80
// > ??> @ 0x14091d1e0
//
// 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 11:29:03 +0000
//
void __fastcall sub_1402885D0(__int64 a1, __int64 a2, __int64 a3)
{
_QWORD *v3; // rbx
_QWORD *v6; // rcx
void *v7; // rdi
v3 = (_QWORD *)a3;
if ( !*(_BYTE *)(a3 + 25) )
{
do
{
sub_1402885D0(a1, a2, v3[2]);
v6 = v3;
v7 = v3;
v3 = (_QWORD *)*v3;
sub_14003EA90(v6 + 5);
j_j_free(v7);
}
while ( !*((_BYTE *)v3 + 25) );
}
}