//
// CustomizeObjectLayer::create from 0x580efc to 0x580ff0 (244 bytes)
//
// 2 xrefs:
// > EditorUI::editObject @ 0x486f60
// > CustomizeObjectLayer::recreateLayer @ 0x58102c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:53 +0000
//
FLAlertLayer *__fastcall CustomizeObjectLayer::create(CustomizeObjectLayer *this, GameObject *a2, cocos2d::CCArray *a3)
{
FLAlertLayer *v5; // r4
int v6; // r3
int *v7; // r0
v5 = (FLAlertLayer *)operator new(0x290u);
FLAlertLayer::FLAlertLayer(v5);
*(_DWORD *)v5 = &off_CB2688;
*((_DWORD *)v5 + 66) = &off_CB2948;
*((_DWORD *)v5 + 67) = &off_CB2980;
*((_DWORD *)v5 + 68) = &off_CB298C;
*((_DWORD *)v5 + 69) = &off_CB299C;
*((_DWORD *)v5 + 70) = &off_CB29B0;
*((_DWORD *)v5 + 79) = &off_CB29C8;
*((_DWORD *)v5 + 83) = &off_CB2A08;
*((_DWORD *)v5 + 110) = &off_CB2A18;
*((_DWORD *)v5 + 130) = &off_CB2A3C;
*((_DWORD *)v5 + 131) = &off_CB2A4C;
*((_DWORD *)v5 + 132) = &off_CB2A58;
*((_DWORD *)v5 + 140) = 1;
*((_DWORD *)v5 + 133) = 0;
*((_DWORD *)v5 + 141) = 10;
*((_DWORD *)v5 + 134) = 0;
*((_DWORD *)v5 + 135) = 0;
*((_DWORD *)v5 + 137) = 0;
*((_BYTE *)v5 + 568) = 0;
*((_BYTE *)v5 + 569) = 0;
*((_DWORD *)v5 + 145) = 0;
*((_DWORD *)v5 + 146) = 0;
*((_DWORD *)v5 + 147) = 0;
*((_DWORD *)v5 + 151) = 0;
*((_DWORD *)v5 + 152) = 0;
*((_DWORD *)v5 + 153) = 0;
*((_DWORD *)v5 + 154) = 0;
*((_BYTE *)v5 + 652) = 0;
*((_BYTE *)v5 + 653) = 0;
*((_BYTE *)v5 + 654) = 0;
if ( CustomizeObjectLayer::init(v5, this, a2) )
{
cocos2d::CCObject::autorelease(v5);
}
else
{
v6 = *(_DWORD *)v5;
v7 = (int *)v5;
v5 = nullptr;
(*(void (__fastcall **)(int *))(v6 + 8))(v7);
}
return v5;
}