//
// sub_1403586E0 from 0x1403586e0 to 0x140358759 (121 bytes)
//
// 11 xrefs:
// > sub_14030AE40 @ 0x14030ae53
// > sub_14030AEB0 @ 0x14030b002
// > sub_14030DAE0 @ 0x14030e475
// > GJBaseGameLayer::resetLevelVariables @ 0x140345084
// > sub_1403586E0 @ 0x14035871a
// > sub_140514770 @ 0x140514fca
// > sub_14051E4E0 @ 0x14051e4f3
// > sub_14052A7F0 @ 0x14052a901
// > ??> @ 0x1408b9718
// > ??> @ 0x1408b9728
// > ??> @ 0x140920ab0
//
// 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:30:50 +0000
//
void __fastcall sub_1403586E0(__int64 a1, __int64 a2, __int64 a3)
{
_QWORD *v3; // rbx
_QWORD *v6; // rcx
void *v7; // rdi
v3 = (_QWORD *)a3;
if ( !*(_BYTE *)(a3 + 25) )
{
do
{
sub_1403586E0(a1, a2, v3[2]);
v6 = v3;
v7 = v3;
v3 = (_QWORD *)*v3;
sub_14035E3A0(v6 + 5);
j_j_free(v7);
}
while ( !*((_BYTE *)v3 + 25) );
}
}