//
// sub_1004DD550 from 0x1004dd550 to 0x1004dd614 (196 bytes)
//
// 1 xrefs:
// > EditorUI::toggleWindow @ 0x100473658
//
// This function is hookable on this platform (idp: arm, 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 11:06:35 +0000
//
void *__fastcall sub_1004DD550(__int64 a1)
{
void *v2; // x19
v2 = operator new(0x490u);
bzero(v2, 0x490u);
EditorWindowPopup::EditorWindowPopup((__int64)v2);
*(_QWORD *)v2 = &off_100990930;
*((_QWORD *)v2 + 40) = off_100990F40;
*((_QWORD *)v2 + 41) = &off_100990FB0;
*((_QWORD *)v2 + 42) = off_100990FC8;
*((_QWORD *)v2 + 43) = off_100990FE8;
*((_QWORD *)v2 + 44) = off_100991010;
*((_QWORD *)v2 + 51) = off_100991040;
*((_QWORD *)v2 + 54) = off_1009910C0;
*((_QWORD *)v2 + 68) = off_1009910E0;
*((_QWORD *)v2 + 83) = &off_100991128;
*((_QWORD *)v2 + 84) = off_100991140;
*((_DWORD *)v2 + 291) = 0;
if ( (unsigned int)sub_1004DD628(v2, a1) )
{
cocos2d::CCObject::autorelease((__int64)v2);
}
else
{
(*(void (__fastcall **)(void *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return v2;
}