//
// LevelBrowserLayer::onGoToFolder from 0x10048e000 to 0x10048e096 (150 bytes)
//
// 1 xrefs:
// > LevelBrowserLayer::init @ 0x10048c35f
//
// 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 __fastcall LevelBrowserLayer::onGoToFolder(LevelBrowserLayer *a1, cocos2d::CCObject *a2)
{
GJSearchObject *m_searchObject; // rax
unsigned int m_folder; // edi
unsigned __int8 v5; // si
char *v6; // r14
__int128 v7; // [rsp+8h] [rbp-28h] BYREF
void *__p; // [rsp+18h] [rbp-18h]
m_searchObject = a1->m_searchObject;
if ( m_searchObject )
{
m_folder = m_searchObject->m_folder;
v5 = m_searchObject->m_searchType == MyLevels;
LOBYTE(v7) = 24;
strcpy((char *)&v7 + 1, "Go to Folder");
v6 = SetFolderPopup::create(m_folder, v5, &v7);
if ( (v7 & 1) != 0 )
operator delete(__p);
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v6 + 72LL))(v6, 4);
*((_QWORD *)v6 + 84) = &a1->SetIDPopupDelegate;
(*(void (__fastcall **)(char *))(*(_QWORD *)v6 + 1288LL))(v6);
}
}