//
// GJSpecialColorSelect::create from 0x100625f00 to 0x10062604e (334 bytes)
//
// 4 xrefs:
// > SetColorIDPopup::onSelectSpecialColor @ 0x1002ad0de
// > SetupPulsePopup::onSelectSpecialTargetID @ 0x1003ade57
// > SetupPulsePopup::onSelectSpecialColor @ 0x1003ae5b7
// > ColorSelectPopup::onSelectSpecialColor @ 0x10072840e
//
// 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
//
GJSpecialColorSelect *__fastcall GJSpecialColorSelect::create(
int a1,
GJSpecialColorSelectDelegate *a2,
ColorSelectType a3)
{
char *v4; // rbx
v4 = (char *)operator new(0x290u);
cocos2d::CCLayerColor::CCLayerColor((__int64)v4);
*((_QWORD *)v4 + 72) = 0;
*((_DWORD *)v4 + 146) = 0;
v4[588] = 0;
*((_OWORD *)v4 + 34) = 0;
*(_OWORD *)(v4 + 553) = 0;
*((_OWORD *)v4 + 37) = 0;
*((_QWORD *)v4 + 76) = 0;
*((_DWORD *)v4 + 154) = -1;
*((_WORD *)v4 + 310) = 0;
*((_DWORD *)v4 + 156) = -1;
v4[628] = 0;
*(_QWORD *)v4 = off_100983160;
*((_QWORD *)v4 + 40) = off_100983680;
*((_QWORD *)v4 + 41) = &off_1009836F0;
*((_QWORD *)v4 + 42) = off_100983708;
*((_QWORD *)v4 + 43) = off_100983728;
*((_QWORD *)v4 + 44) = off_100983748;
*((_QWORD *)v4 + 51) = off_100983770;
*((_QWORD *)v4 + 54) = off_1009837F0;
*((_QWORD *)v4 + 79) = 0;
*((_DWORD *)v4 + 160) = 0;
*((_QWORD *)v4 + 81) = 0;
if ( GJSpecialColorSelect::init((GJSpecialColorSelect *)v4, a1, a2, a3) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
return (GJSpecialColorSelect *)v4;
}