//
// LevelListLayer::setIDPopupClosed from 0x14042ee40 to 0x14042eee4 (164 bytes)
//
// 4 xrefs:
// > ??> @ 0x14078e1d8
// > ??> @ 0x1408c9ff4
// > ??> @ 0x1408ca004
// > ??> @ 0x140926b7c
//
// 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:32:14 +0000
//
void __fastcall LevelListLayer::setIDPopupClosed(__int64 a1, unsigned int *a2, int a3)
{
__int64 v6; // rcx
__int64 v7; // rcx
if ( (*(unsigned int (__fastcall **)(unsigned int *))(*(_QWORD *)a2 + 56LL))(a2) == 1003 )
{
GJLevelList::reorderLevel(*(_QWORD *)(a1 + 360), a2[176], a3 - 1);
LevelBrowserLayer::setupLevelBrowser(a1 - 560, nullptr);
v6 = *(_QWORD *)(a1 + 48);
if ( v6 )
{
v7 = *(_QWORD *)(v6 + 544);
*(_DWORD *)(v7 + 464) = *(_DWORD *)(a1 + 424);
CustomListView::reloadAll(v7);
}
}
else
{
LevelBrowserLayer::setIDPopupClosed(a1, (__int64)a2, a3);
}
}