//
// GJSpecialColorSelect::create from 0x1007027e0 to 0x1007029c8 (488 bytes)
//
// 4 xrefs:
// > SetColorIDPopup::onSelectSpecialColor @ 0x10029977e
// > SetupPulsePopup::onSelectSpecialTargetID @ 0x1003971b7
// > SetupPulsePopup::onSelectSpecialColor @ 0x100397917
// > ColorSelectPopup::onSelectSpecialColor @ 0x10080720e
//
// 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 12:35:59 +0000
//
char *__fastcall GJSpecialColorSelect::create(unsigned int a1, __int64 a2, unsigned int a3)
{
char *v4; // rbx
v4 = (char *)operator new(0x2B0u);
cocos2d::CCLayerColor::CCLayerColor((__int64)v4);
*(_QWORD *)v4 = off_100B4FB70;
*((_QWORD *)v4 + 40) = off_100B500C0;
*((_QWORD *)v4 + 41) = &off_100B50130;
*((_QWORD *)v4 + 42) = off_100B50148;
*((_QWORD *)v4 + 43) = off_100B50168;
*((_QWORD *)v4 + 44) = off_100B50190;
*((_QWORD *)v4 + 51) = off_100B501C0;
*((_QWORD *)v4 + 54) = off_100B50240;
*((_QWORD *)v4 + 68) = off_100B50260;
*(_OWORD *)(v4 + 552) = 0;
*(_OWORD *)(v4 + 561) = 0;
*(_OWORD *)(v4 + 584) = 0;
sub_1002782A0((_QWORD *)v4 + 75);
*((_OWORD *)v4 + 38) = 0;
*((_QWORD *)v4 + 78) = 0;
*((_DWORD *)v4 + 158) = -1;
*((_WORD *)v4 + 318) = 0;
*((_DWORD *)v4 + 160) = -1;
v4[644] = 0;
*((_QWORD *)v4 + 81) = 0;
v4[656] = 0;
*(_QWORD *)v4 = off_100B96D60;
*((_QWORD *)v4 + 40) = off_100B972B0;
*((_QWORD *)v4 + 41) = &off_100B97320;
*((_QWORD *)v4 + 42) = off_100B97338;
*((_QWORD *)v4 + 43) = off_100B97358;
*((_QWORD *)v4 + 44) = off_100B97380;
*((_QWORD *)v4 + 51) = off_100B973B0;
*((_QWORD *)v4 + 54) = off_100B97430;
*((_QWORD *)v4 + 68) = off_100B97450;
*((_QWORD *)v4 + 83) = 0;
*((_DWORD *)v4 + 168) = 0;
*((_QWORD *)v4 + 85) = 0;
if ( (unsigned __int8)GJSpecialColorSelect::init(v4, a1, a2, a3) )
{
cocos2d::CCObject::autorelease((__int64)v4);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
return v4;
}