//
// LevelBrowserLayer::onGoToFolder from 0x100416c10 to 0x100416cb4 (164 bytes)
//
// 1 xrefs:
// > LevelBrowserLayer::init @ 0x10041552c
//
// 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; // x8
__int64 m_folder; // x20
_BOOL8 v5; // x21
cocos2d::CCObject *v6; // x20
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v8; // [xsp+1Fh] [xbp-21h]
m_searchObject = a1->m_searchObject;
if ( m_searchObject )
{
m_folder = (unsigned int)m_searchObject->m_folder;
v5 = m_searchObject->m_searchType == MyLevels;
sub_100009900(__p, "Go to Folder");
v6 = SetFolderPopup::create(m_folder, v5, (__int64)__p);
if ( v8 < 0 )
operator delete(__p[0]);
((void (__fastcall *)(cocos2d::CCObject *, __int64))v6->setTag)(v6, 4);
v6[12].__vftable = (cocos2d::CCObject_vtbl *)&a1->SetIDPopupDelegate;
((void (__fastcall *)(cocos2d::CCObject *))v6->__vftable[16].~CCObject)(v6);
}
}