//
// sub_1400806E0 from 0x1400806e0 to 0x140080735 (85 bytes)
//
// 17 xrefs:
// > sub_140080450 @ 0x14008047a
// > sub_1400806E0 @ 0x14008070a
// > sub_14016EDD0 @ 0x14016edfa
// > sub_14030DAE0 @ 0x14030e2aa
// > sub_14030DAE0 @ 0x14030e4da
// > GJBaseGameLayer::loadUpToPosition @ 0x14033e88a
// > GJBaseGameLayer::loadUpToPosition @ 0x14033e8da
// > GJBaseGameLayer::update @ 0x140340cb6
// > GJBaseGameLayer::update @ 0x140340ed2
// > GJBaseGameLayer::resetLevelVariables @ 0x140345032
// > sub_14036FCC0 @ 0x14036fcfb
// > sub_140379560 @ 0x14037959a
// > MusicSearchResult::updateFutureCount @ 0x1404986ec
// > sub_140514770 @ 0x140514e1a
// > sub_140514770 @ 0x14051509a
// > sub_140515E30 @ 0x1405160da
// > ??> @ 0x140911f78
//
// 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:25:55 +0000
//
void __fastcall sub_1400806E0(__int64 a1, __int64 a2, __int64 a3)
{
_QWORD *v3; // rbx
void *v6; // rcx
v3 = (_QWORD *)a3;
if ( !*(_BYTE *)(a3 + 25) )
{
do
{
sub_1400806E0(a1, a2, v3[2]);
v6 = v3;
v3 = (_QWORD *)*v3;
j_j_free(v6);
}
while ( !*((_BYTE *)v3 + 25) );
}
}