//
// LevelBrowserLayer::onGoToFolder from 0x4a4e58 to 0x4a4ee2 (138 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:49:53 +0000
//
int __fastcall LevelBrowserLayer::onGoToFolder(int this, cocos2d::CCObject *a2, int a3, int a4)
{
int v4; // r7
int v5; // r3
int v6; // r8
_BOOL4 v7; // r4
_DWORD *v8; // r4
int v9; // [sp+0h] [bp-10h] BYREF
cocos2d::CCObject *v10; // [sp+4h] [bp-Ch]
int v11; // [sp+8h] [bp-8h]
int v12; // [sp+Ch] [bp-4h]
v9 = this;
v10 = a2;
v11 = a3;
v12 = a4;
v4 = this;
v5 = *(_DWORD *)(this + 500);
if ( v5 )
{
v6 = *(_DWORD *)(v5 + 332);
v7 = *(_DWORD *)(v5 + 264) == 98;
v9 = 0;
v10 = nullptr;
v11 = 0;
std::string::__init(&v9, "Go to Folder", 0xCu);
v8 = (_DWORD *)SetFolderPopup::create(v6, v7, &v9);
std::string::~string((int)&v9);
(*(void (__fastcall **)(_DWORD *, int))(*v8 + 36))(v8, 4);
v8[136] = v4 + 448;
return (*(int (__fastcall **)(_DWORD *))(*v8 + 656))(v8);
}
return this;
}