//
// SelectArtLayer::create from 0x10026f170 to 0x10026f2c0 (336 bytes)
//
// 5 xrefs:
// > LevelSettingsLayer::onBGArt @ 0x10026e148
// > LevelSettingsLayer::onGArt @ 0x10026e199
// > LevelSettingsLayer::onFGArt @ 0x10026e27b
// > SetupSmartBlockLayer::onSelectPremade @ 0x1004e6e84
// > SetupArtSwitchPopup::onArt @ 0x100585ef1
//
// 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 *v2; // rbx
v2 = (char *)operator new(0x2A0u);
cocos2d::CCLayerColor::CCLayerColor(v2);
*((_QWORD *)v2 + 72) = 0;
*((_DWORD *)v2 + 146) = 0;
v2[588] = 0;
*((_OWORD *)v2 + 34) = 0;
*(_OWORD *)(v2 + 553) = 0;
*((_OWORD *)v2 + 37) = 0;
*((_QWORD *)v2 + 76) = 0;
*((_DWORD *)v2 + 154) = -1;
*((_WORD *)v2 + 310) = 0;
*((_DWORD *)v2 + 156) = -1;
v2[628] = 0;
*(_QWORD *)v2 = off_1008ECBE0;
*((_QWORD *)v2 + 40) = off_1008ED100;
*((_QWORD *)v2 + 41) = &off_1008ED170;
*((_QWORD *)v2 + 42) = off_1008ED188;
*((_QWORD *)v2 + 43) = off_1008ED1A8;
*((_QWORD *)v2 + 44) = off_1008ED1C8;
*((_QWORD *)v2 + 51) = off_1008ED1F0;
*((_QWORD *)v2 + 54) = off_1008ED270;
*(_OWORD *)(v2 + 632) = 0;
*((_DWORD *)v2 + 162) = 0;
*(_QWORD *)(v2 + 652) = 1;
*((_QWORD *)v2 + 83) = 0;
if ( SelectArtLayer::init((SelectArtLayer *)v2, a1, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return (SelectArtLayer *)v2;
}