//
// CustomizeObjectLayer::create from 0x14013f280 to 0x14013f419 (409 bytes)
//
// 3 xrefs:
// > CustomizeObjectSettingsPopup::onClose @ 0x1401447c4
// > EditorUI::editObject @ 0x1401bce58
// > ??> @ 0x1409172f4
//
// 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 11:27:08 +0000
//
// Hidden C++ exception states: #wind=1
_QWORD *__fastcall CustomizeObjectLayer::create(__int64 a1, __int64 a2)
{
_QWORD *v4; // rsi
v4 = operator new(0x3A0u);
FLAlertLayer::FLAlertLayer((__int64)v4);
*v4 = &CustomizeObjectLayer::`vftable';
v4[40] = &CustomizeObjectLayer::`vftable';
v4[41] = &CustomizeObjectLayer::`vftable';
v4[42] = &CustomizeObjectLayer::`vftable';
v4[43] = &CustomizeObjectLayer::`vftable';
v4[44] = &CustomizeObjectLayer::`vftable';
v4[51] = &CustomizeObjectLayer::`vftable';
v4[54] = &CustomizeObjectLayer::`vftable';
v4[68] = &CustomizeObjectLayer::`vftable';
v4[83] = &CustomizeObjectLayer::`vftable';
v4[84] = &CustomizeObjectLayer::`vftable';
v4[85] = &CustomizeObjectLayer::`vftable';
v4[86] = 0;
v4[87] = 0;
v4[88] = 0;
v4[90] = 0;
*((_DWORD *)v4 + 186) = 1;
*((_DWORD *)v4 + 187) = 10;
*((_WORD *)v4 + 376) = 0;
v4[97] = 0;
v4[98] = 0;
v4[99] = 0;
v4[103] = 0;
*((_DWORD *)v4 + 208) = 0;
v4[105] = 0;
v4[106] = 0;
*((_WORD *)v4 + 460) = 0;
*((_BYTE *)v4 + 922) = 0;
if ( (unsigned __int8)CustomizeObjectLayer::init(v4, a1, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
return v4;
}
else
{
(*(void (__fastcall **)(_QWORD *, __int64))(*v4 + 8LL))(v4, 1);
return nullptr;
}
}