//
// LevelListLayer::setIDPopupClosed from 0x140307080 to 0x14030711a (154 bytes)
//
// 2 xrefs:
// > ??> @ 0x140588c68
// > ??> @ 0x1406d44c0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void LevelListLayer::setIDPopupClosed(LevelListLayer *a1, SetIDPopup *a2, int a3)
{
__int64 v6; // rcx
CustomListView *v7; // rcx
if ( a2->getTag(a2) == 1003 )
{
GJLevelList::reorderLevel(
*(GJLevelList **)&a1->m_bUseChildIndex,
(int)a2[1].FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable,
a3 - 1);
LevelBrowserLayer::setupLevelBrowser((LevelListLayer *)((char *)a1 - 560), nullptr);
v6 = *(_QWORD *)&a1->m_uOrderOfArrival;
if ( v6 )
{
v7 = *(CustomListView **)(v6 + 544);
v7->m_cellMode = (int)a1->m_pScriptKeypadHandlerEntry;
CustomListView::reloadAll(v7);
}
}
else
{
LevelBrowserLayer::setIDPopupClosed(a1, a2, a3);
}
}