//
// GJSpecialColorSelect::create from 0x5e90b0 to 0x5e920c (348 bytes)
//
// 4 xrefs:
// > ColorSelectPopup::onSelectSpecialColor @ 0x4dec48
// > SetColorIDPopup::onSelectSpecialColor @ 0x5d3868
// > SetupPulsePopup::onSelectSpecialColor @ 0x5ebeca
// > SetupPulsePopup::onSelectSpecialTargetID @ 0x5ebef4
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:21 +0000
//
int __fastcall GJSpecialColorSelect::create(int a1, int a2, int a3)
{
int v6; // r4
int v7; // r3
int v8; // r0
v6 = operator new(0x214u);
cocos2d::CCLayerColor::CCLayerColor((cocos2d::CCLayerColor *)v6);
*(_DWORD *)v6 = &off_C86768;
*(_DWORD *)(v6 + 264) = &off_C86A10;
*(_DWORD *)(v6 + 268) = &off_C86A48;
*(_DWORD *)(v6 + 272) = &off_C86A54;
*(_DWORD *)(v6 + 276) = &off_C86A64;
*(_DWORD *)(v6 + 280) = &off_C86A78;
*(_DWORD *)(v6 + 316) = &off_C86A90;
*(_DWORD *)(v6 + 332) = &off_C86AD0;
*(_DWORD *)(v6 + 440) = &off_C86AE0;
*(_DWORD *)(v6 + 444) = 0;
*(_DWORD *)(v6 + 448) = 0;
*(_DWORD *)(v6 + 452) = 0;
*(_BYTE *)(v6 + 456) = 0;
*(_DWORD *)(v6 + 460) = 0;
*(_DWORD *)(v6 + 464) = 0;
*(_BYTE *)(v6 + 468) = 0;
*(_BYTE *)(v6 + 469) = 0;
*(_BYTE *)(v6 + 470) = 0;
*(_BYTE *)(v6 + 471) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v6 + 472));
*(_DWORD *)(v6 + 492) = -1;
*(_DWORD *)(v6 + 500) = -1;
*(_DWORD *)(v6 + 508) = 0;
*(_DWORD *)(v6 + 512) = 0;
*(_DWORD *)(v6 + 480) = 0;
*(_DWORD *)(v6 + 484) = 0;
*(_DWORD *)(v6 + 488) = 0;
*(_DWORD *)v6 = &off_CBDD98;
*(_BYTE *)(v6 + 496) = 0;
*(_DWORD *)(v6 + 264) = &off_CBE040;
*(_BYTE *)(v6 + 497) = 0;
*(_DWORD *)(v6 + 268) = &off_CBE078;
*(_BYTE *)(v6 + 504) = 0;
*(_DWORD *)(v6 + 272) = &off_CBE084;
*(_BYTE *)(v6 + 516) = 0;
*(_DWORD *)(v6 + 276) = &off_CBE094;
*(_DWORD *)(v6 + 520) = 0;
*(_DWORD *)(v6 + 280) = &off_CBE0A8;
*(_DWORD *)(v6 + 524) = 0;
*(_DWORD *)(v6 + 316) = &off_CBE0C0;
*(_DWORD *)(v6 + 528) = 0;
*(_DWORD *)(v6 + 332) = &off_CBE100;
*(_DWORD *)(v6 + 440) = &off_CBE110;
if ( GJSpecialColorSelect::init(v6, a1, a2, a3) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);
}
else
{
v7 = *(_DWORD *)v6;
v8 = v6;
v6 = 0;
(*(void (__fastcall **)(int))(v7 + 8))(v8);
}
return v6;
}