//
// LevelBrowserLayer::onGoToFolder from 0x3ba540 to 0x3ba5c2 (130 bytes)
//
// 0 xrefs:
//
// 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 LevelBrowserLayer::onGoToFolder(LevelBrowserLayer *a1, cocos2d::CCObject *a2)
{
GJSearchObject *m_searchObject; // r2
SetFolderPopup *m_folder; // r8
_BOOL4 v5; // r4
std::string v6; // r3
_DWORD *v7; // r4
int v8; // r3
_BYTE v9[4]; // [sp+8h] [bp-8h] BYREF
m_searchObject = a1->m_searchObject;
if ( m_searchObject )
{
m_folder = (SetFolderPopup *)m_searchObject->m_folder;
v5 = m_searchObject->m_searchType == MyLevels;
sub_776584((int)v9, "Go to Folder");
v7 = (_DWORD *)SetFolderPopup::create(m_folder, v5, (bool)v9, v6);
sub_774008(v9);
(*(void (__fastcall **)(_DWORD *, int))(*v7 + 36))(v7, 4);
v8 = *v7;
v7[131] = &a1->SetIDPopupDelegate;
(*(void (__fastcall **)(_DWORD *))(v8 + 644))(v7);
}
}