//
// EditLevelLayer::onSetFolder from 0x1400d94f0 to 0x1400d9579 (137 bytes)
//
// 2 xrefs:
// > EditLevelLayer::init @ 0x1400d63a8
// > ??> @ 0x1406c8868
//
// 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 EditLevelLayer::onSetFolder(EditLevelLayer *a1, cocos2d::CCObject *a2)
{
GJGameLevel *m_level; // rcx
__int64 *v4; // rax
SetIDPopupDelegate *v5; // rcx
__int64 v6; // rdx
_QWORD v7[5]; // [rsp+20h] [rbp-28h] BYREF
m_level = a1->m_level;
if ( m_level )
{
v7[2] = 10;
v7[1] = 29285;
LOBYTE(a2) = 1;
v7[3] = 15;
v7[0] = 0x646C6F4620746553LL;
v4 = (__int64 *)SetFolderPopup::create((unsigned int)m_level->m_levelFolder, a2, v7);
v5 = &a1->SetIDPopupDelegate;
if ( !a1 )
v5 = nullptr;
v6 = *v4;
v4[84] = (__int64)v5;
(*(void (__fastcall **)(__int64 *))(v6 + 1040))(v4);
}
}