//
// SetupShaderEffectPopup::setupHueShift from 0x140453500 to 0x140453846 (838 bytes)
//
// 2 xrefs:
// > SetupShaderEffectPopup::init @ 0x14044a42e
// > ??> @ 0x1406da820
//
// 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=3
void SetupShaderEffectPopup::setupHueShift(SetupShaderEffectPopup *a1)
{
double v2; // xmm0_8
__int64 v3; // rcx
cocos2d::CCDirector *v4; // rax
double ValueControl; // xmm0_8
int v6; // r9d
char v7; // [rsp+80h] [rbp-31h]
__int128 v8; // [rsp+98h] [rbp-19h] BYREF
__int64 v9; // [rsp+A8h] [rbp-9h]
__int64 v10; // [rsp+B0h] [rbp-1h]
__int128 v11; // [rsp+B8h] [rbp+7h] BYREF
__int64 v12; // [rsp+C8h] [rbp+17h]
__int128 v13; // [rsp+D0h] [rbp+1Fh]
char v14; // [rsp+120h] [rbp+6Fh] BYREF
float v15; // [rsp+128h] [rbp+77h]
__int128 *v16; // [rsp+130h] [rbp+7Fh] BYREF
v9 = 15;
v10 = 15;
strcpy((char *)&v8, "Setup Hue Shift");
SetupTriggerPopup::addTitle(a1, &v8);
v16 = &v8;
v8 = 0;
v9 = 0;
v10 = 15;
*(_QWORD *)&v8 = sub_14003AA10(0xA0u);
v9 = 146;
v10 = 159;
strcpy(
(char *)v8,
"Changes the hue of the screen.\n"
"Degrees is how much the colors should shift.\n"
"FadeTime is time until final state is reached.");
v11 = 0;
v12 = 4;
*(_QWORD *)&v13 = 15;
strcpy((char *)&v11, "Help");
v2 = SetupTriggerPopup::addHelpButton(a1, &v11, &v8);
v4 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v3);
cocos2d::CCDirector::getWinSize(v4);
cocos2d::CCPoint::CCPoint(*(float *)&v2, v15 * 0.5);
v12 = 8;
*(_QWORD *)&v13 = 15;
v11 = 0x3A73656572676544uLL;
cocos2d::CCPoint::CCPoint(0.0, -100.0);
cocos2d::CCPoint::operator+(&v14, &v16);
v7 = 0;
SetupTriggerPopup::createValueControlAdvanced(
(_DWORD)a1,
176,
(unsigned int)&v11,
(unsigned int)&v16,
1060320051,
0,
2,
6,
0,
-1020002304,
1127481344,
0,
0,
0,
2,
v7,
&v11);
*((_QWORD *)&v8 + 1) = 58;
v9 = 9;
v10 = 15;
*(_QWORD *)&v8 = 0x656D695465646146LL;
cocos2d::CCPoint::CCPoint(6.7405871e22, 100.0);
cocos2d::CCPoint::operator+(&v14, &v16);
ValueControl = SetupTriggerPopup::createValueControl(
(_DWORD)a1,
10,
(unsigned int)&v8,
(unsigned int)&v16,
1060320051,
0,
0);
cocos2d::CCPoint::CCPoint(*(float *)&ValueControl, 0.0);
cocos2d::CCPoint::operator+(&v14, &v16);
SetupTriggerPopup::createEasingControls(a1, (cocos2d::CCPoint)&v16, 1.0, v6, 0);
}