//
// GJColorSetupLayer::create from 0x140255f50 to 0x140256085 (309 bytes)
//
// 3 xrefs:
// > CustomizeObjectLayer::onBrowse @ 0x1400a8362
// > LevelSettingsLayer::onCol @ 0x1403219eb
// > ??> @ 0x1406cf948
//
// 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
//
// Hidden C++ exception states: #wind=1
GJColorSetupLayer *GJColorSetupLayer::create(LevelSettingsObject *a1)
{
GJColorSetupLayer *v2; // rdi
v2 = (GJColorSetupLayer *)operator new(0x2E8u);
FLAlertLayer::FLAlertLayer(v2);
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GJColorSetupLayer_vtbl *)&GJColorSetupLayer::`vftable';
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&GJColorSetupLayer::`vftable';
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&GJColorSetupLayer::`vftable';
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&GJColorSetupLayer::`vftable';
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&GJColorSetupLayer::`vftable';
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&GJColorSetupLayer::`vftable';
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&GJColorSetupLayer::`vftable';
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&GJColorSetupLayer::`vftable';
v2->ColorSelectDelegate::__vftable = (ColorSelectDelegate_vtbl *)&GJColorSetupLayer::`vftable';
v2->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&GJColorSetupLayer::`vftable';
v2->m_settingsObject = nullptr;
v2->m_unk290 = nullptr;
v2->m_unk298 = nullptr;
v2->m_page = 0;
v2->m_totalPages = 0;
v2->m_closeOnSelect = 0;
v2->m_delegate = nullptr;
v2->m_colorID = 0;
if ( GJColorSetupLayer::init(v2, a1) )
{
cocos2d::CCObject::autorelease(v2);
return v2;
}
else
{
((void (__fastcall *)(GJColorSetupLayer *, __int64))v2->~GJColorSetupLayer)(v2, 1);
return nullptr;
}
}