//
// LevelInfoLayer::onSetFolder from 0x1002af2e0 to 0x1002af365 (133 bytes)
//
// 1 xrefs:
// > LevelInfoLayer::init @ 0x1002abf57
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 12:28:00 +0000
//
__int64 __fastcall LevelInfoLayer::onSetFolder(__int64 a1)
{
__int64 result; // rax
unsigned int v3; // edi
_QWORD *v4; // rbx
__int128 v5; // [rsp+8h] [rbp-28h] BYREF
void *__p; // [rsp+18h] [rbp-18h]
result = *(_QWORD *)(a1 + 504);
if ( result && !*(_BYTE *)(a1 + 488) )
{
v3 = *(_DWORD *)(result + 916);
LOBYTE(v5) = 20;
strcpy((char *)&v5 + 1, "Set Folder");
v4 = SetFolderPopup::create(v3, 0, &v5);
if ( (v5 & 1) != 0 )
operator delete(__p);
v4[87] = a1 + 464;
return (*(__int64 (__fastcall **)(_QWORD *))(*v4 + 1312LL))(v4);
}
return result;
}