//
// SelectArtLayer::create from 0x10017c024 to 0x10017c0f0 (204 bytes)
//
// 5 xrefs:
// > SetupSmartBlockLayer::onSelectPremade @ 0x10006feac
// > LevelSettingsLayer::onBGArt @ 0x10017b584
// > LevelSettingsLayer::onGArt @ 0x10017b5c0
// > LevelSettingsLayer::onFGArt @ 0x10017b624
// > SetupArtSwitchPopup::onArt @ 0x1004112d4
//
// 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
//
SelectArtLayer *__fastcall SelectArtLayer::create(SelectArtType a1, int a2)
{
char *v4; // x19
v4 = (char *)operator new(0x2A0u);
FLAlertLayer::FLAlertLayer((FLAlertLayer *)v4);
*(_QWORD *)v4 = off_1007A0C20;
*((_QWORD *)v4 + 40) = off_1007A1140;
*((_QWORD *)v4 + 41) = &off_1007A11B0;
*((_QWORD *)v4 + 42) = off_1007A11C8;
*((_QWORD *)v4 + 43) = off_1007A11E8;
*((_QWORD *)v4 + 44) = off_1007A1208;
*((_QWORD *)v4 + 51) = off_1007A1230;
*((_QWORD *)v4 + 54) = off_1007A12B0;
*((_DWORD *)v4 + 162) = 0;
*(_OWORD *)(v4 + 632) = 0u;
*(_QWORD *)(v4 + 652) = 1;
*((_QWORD *)v4 + 83) = 0;
if ( SelectArtLayer::init((SelectArtLayer *)v4, a1, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
return (SelectArtLayer *)v4;
}