//
// sub_100905EB0 from 0x100905eb0 to 0x100905fed (317 bytes)
//
// 1 xrefs:
// > EditorUI::toggleWindow @ 0x10000b94e
//
// 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:38:05 +0000
//
char *__fastcall sub_100905EB0(__int64 a1)
{
char *v1; // rbx
v1 = (char *)operator new(0x490u);
__bzero(v1, 1168);
EditorWindowPopup::EditorWindowPopup((__int64)v1);
*(_QWORD *)v1 = off_100BBD930;
*((_QWORD *)v1 + 40) = off_100BBDF40;
*((_QWORD *)v1 + 41) = &off_100BBDFB0;
*((_QWORD *)v1 + 42) = off_100BBDFC8;
*((_QWORD *)v1 + 43) = off_100BBDFE8;
*((_QWORD *)v1 + 44) = off_100BBE010;
*((_QWORD *)v1 + 51) = off_100BBE040;
*((_QWORD *)v1 + 54) = off_100BBE0C0;
*((_QWORD *)v1 + 68) = off_100BBE0E0;
*((_QWORD *)v1 + 83) = &off_100BBE128;
*((_QWORD *)v1 + 84) = off_100BBE140;
*((_DWORD *)v1 + 291) = 0;
*((_DWORD *)v1 + 279) = 2;
sub_1009008E0((__int64)v1, 0.60000002, 1.0);
*(_WORD *)(v1 + 1081) = 257;
if ( (unsigned __int8)EditorWindowPopup::initWindow((__int64)v1, a1, 3, 1, 200.0, 89.0) )
{
cocos2d::CCObject::autorelease((__int64)v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return v1;
}