//
// sub_1400804B0 from 0x1400804b0 to 0x14008051d (109 bytes)
//
// 9 xrefs:
// > AutoBackupPopup::dAutoBackupPopup @ 0x1400c989e
// > sub_1400C9900 @ 0x1400c9900
// > AutoBackupPopup::pruneBackups @ 0x1400cd94f
// > GameLevelManager::dGameLevelManager @ 0x14021b8fb
// > MusicDownloadManager::importCustomSFXMappings @ 0x1404892aa
// > sub_1406CD120 @ 0x1406cd127
// > ??> @ 0x14088af60
// > ??> @ 0x14088af70
// > ??> @ 0x140911f48
//
// 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_1400804B0(void **a1)
{
_QWORD *v2; // rbx
void *v3; // rdi
v2 = *((_QWORD **)*a1 + 1);
while ( !*((_BYTE *)v2 + 25) )
{
sub_140080740(a1, a1, v2[2]);
v3 = v2;
v2 = (_QWORD *)*v2;
sub_14003D310((__int64)v3 + 32);
j_j_free(v3);
}
j_j_free(*a1);
}