//
// EditLevelLayer::onSetFolder from 0x1001df6c0 to 0x1001df73f (127 bytes)
//
// 1 xrefs:
// > EditLevelLayer::init @ 0x1001dddc6
//
// 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:26:27 +0000
//
__int64 __fastcall EditLevelLayer::onSetFolder(__int64 a1)
{
__int64 result; // rax
__int64 v3; // rdi
_QWORD *v4; // r14
char v5; // [rsp+8h] [rbp-28h] BYREF
void *v6[4]; // [rsp+9h] [rbp-27h] BYREF
result = *(_QWORD *)(a1 + 472);
if ( result )
{
v3 = *(unsigned int *)(result + 916);
v5 = 20;
strcpy((char *)v6, "Set Folder");
v4 = (_QWORD *)SetFolderPopup::create(v3, 1, &v5);
if ( (v5 & 1) != 0 )
operator delete(*(void **)((char *)&v6[1] + 7));
v4[87] = a1 + 440;
return (*(__int64 (__fastcall **)(_QWORD *))(*v4 + 1312LL))(v4);
}
return result;
}