//
// GJColorSetupLayer::create from 0x14035ea10 to 0x14035eb59 (329 bytes)
//
// 3 xrefs:
// > CustomizeObjectLayer::onBrowse @ 0x140142415
// > LevelSettingsLayer::onCol @ 0x14045ac2b
// > ??> @ 0x140921260
//
// 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:30:52 +0000
//
// Hidden C++ exception states: #wind=1
_QWORD *__fastcall GJColorSetupLayer::create(__int64 a1)
{
_QWORD *v2; // rdi
v2 = operator new(0x308u);
FLAlertLayer::FLAlertLayer((__int64)v2);
*v2 = &GJColorSetupLayer::`vftable';
v2[40] = &GJColorSetupLayer::`vftable';
v2[41] = &GJColorSetupLayer::`vftable';
v2[42] = &GJColorSetupLayer::`vftable';
v2[43] = &GJColorSetupLayer::`vftable';
v2[44] = &GJColorSetupLayer::`vftable';
v2[51] = &GJColorSetupLayer::`vftable';
v2[54] = &GJColorSetupLayer::`vftable';
v2[68] = &GJColorSetupLayer::`vftable';
v2[83] = &GJColorSetupLayer::`vftable';
v2[84] = &GJColorSetupLayer::`vftable';
v2[85] = 0;
v2[86] = 0;
v2[87] = 0;
*((_DWORD *)v2 + 180) = 0;
*((_DWORD *)v2 + 182) = 0;
*((_BYTE *)v2 + 752) = 0;
v2[95] = 0;
*((_DWORD *)v2 + 192) = 0;
if ( (unsigned __int8)GJColorSetupLayer::init(v2, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
return v2;
}
else
{
(*(void (__fastcall **)(_QWORD *, __int64))(*v2 + 8LL))(v2, 1);
return nullptr;
}
}