//
// SetupSmartBlockLayer::create from 0x10006f020 to 0x10006f0fc (220 bytes)
//
// 1 xrefs:
// > EditorUI::editObjectSpecial @ 0x1003f563c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
SetupSmartBlockLayer *__fastcall SetupSmartBlockLayer::create(SmartGameObject *a1, cocos2d::CCArray *a2)
{
char *v4; // x19
v4 = (char *)operator new(0x2A8u);
FLAlertLayer::FLAlertLayer((FLAlertLayer *)v4);
*(_QWORD *)v4 = off_100778030;
*((_QWORD *)v4 + 40) = off_100778558;
*((_QWORD *)v4 + 41) = &off_1007785C8;
*((_QWORD *)v4 + 42) = off_1007785E0;
*((_QWORD *)v4 + 43) = off_100778600;
*((_QWORD *)v4 + 44) = off_100778620;
*((_QWORD *)v4 + 51) = off_100778648;
*((_QWORD *)v4 + 54) = off_1007786C8;
*((_QWORD *)v4 + 79) = off_1007786E8;
*((_QWORD *)v4 + 80) = &off_100778730;
*((_DWORD *)v4 + 162) = 0;
*(_DWORD *)(v4 + 651) = 0;
*((_DWORD *)v4 + 164) = -1;
*(_OWORD *)(v4 + 664) = 0u;
if ( SetupSmartBlockLayer::init((SetupSmartBlockLayer *)v4, a1, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
return (SetupSmartBlockLayer *)v4;
}