//
// SetupSmartBlockLayer::create from 0x1405ec1e0 to 0x1405ec323 (323 bytes)
//
// 2 xrefs:
// > EditorUI::editObjectSpecial @ 0x1401bdcb1
// > ??> @ 0x14092f03c
//
// 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:35:04 +0000
//
// Hidden C++ exception states: #wind=1
_QWORD *__fastcall SetupSmartBlockLayer::create(__int64 a1, __int64 a2)
{
_QWORD *v4; // rsi
v4 = operator new(0x2C0u);
FLAlertLayer::FLAlertLayer((__int64)v4);
*v4 = &SetupSmartBlockLayer::`vftable';
v4[40] = &SetupSmartBlockLayer::`vftable';
v4[41] = &SetupSmartBlockLayer::`vftable';
v4[42] = &SetupSmartBlockLayer::`vftable';
v4[43] = &SetupSmartBlockLayer::`vftable';
v4[44] = &SetupSmartBlockLayer::`vftable';
v4[51] = &SetupSmartBlockLayer::`vftable';
v4[54] = &SetupSmartBlockLayer::`vftable';
v4[68] = &SetupSmartBlockLayer::`vftable';
v4[83] = &SetupSmartBlockLayer::`vftable';
*((_DWORD *)v4 + 168) = 0;
*((_WORD *)v4 + 338) = 0;
*((_BYTE *)v4 + 678) = 0;
*((_DWORD *)v4 + 170) = -1;
v4[86] = 0;
v4[87] = 0;
if ( (unsigned __int8)SetupSmartBlockLayer::init(v4, a1, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
return v4;
}
else
{
(*(void (__fastcall **)(_QWORD *, __int64))(*v4 + 8LL))(v4, 1);
return nullptr;
}
}