//
// SetupShaderEffectPopup::setupHueShift from 0x1405e8d90 to 0x1405e90d4 (836 bytes)
//
// 2 xrefs:
// > SetupShaderEffectPopup::init @ 0x1405dfb47
// > ??> @ 0x14092eebc
//
// 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:35:03 +0000
//
// Hidden C++ exception states: #wind=3
double __fastcall SetupShaderEffectPopup::setupHueShift(__int64 a1)
{
__int64 v2; // rcx
__int64 v3; // rax
__int64 v4; // rax
__int64 v5; // rax
__int64 v6; // rax
int v7; // r8d
int v8; // r9d
char v10; // [rsp+80h] [rbp-31h]
__int64 v11; // [rsp+88h] [rbp-29h] BYREF
__int128 *v12; // [rsp+90h] [rbp-21h] BYREF
__int128 v13; // [rsp+98h] [rbp-19h] BYREF
__int64 v14; // [rsp+A8h] [rbp-9h]
__int64 v15; // [rsp+B0h] [rbp-1h]
__int128 v16; // [rsp+B8h] [rbp+7h] BYREF
__int64 v17; // [rsp+C8h] [rbp+17h]
__int128 v18; // [rsp+D0h] [rbp+1Fh]
char v19; // [rsp+120h] [rbp+6Fh] BYREF
float v20; // [rsp+128h] [rbp+77h] BYREF
float v21; // [rsp+12Ch] [rbp+7Bh]
__int128 *v22; // [rsp+130h] [rbp+7Fh] BYREF
v14 = 15;
v15 = 15;
strcpy((char *)&v13, "Setup Hue Shift");
SetupTriggerPopup::addTitle(a1, &v13);
v22 = &v13;
v13 = 0;
v14 = 0;
v15 = 0;
*(_QWORD *)&v13 = sub_14003D460(0xA0u);
v14 = 146;
v15 = 159;
strcpy(
(char *)v13,
"Changes the hue of the screen.\n"
"Degrees is how much the colors should shift.\n"
"FadeTime is time until final state is reached.");
v16 = 0;
v17 = 4;
*(_QWORD *)&v18 = 15;
strcpy((char *)&v16, "Help");
SetupTriggerPopup::addHelpButton(a1, &v16, &v13);
v3 = cocos2d::CCDirector::sharedDirector(v2);
cocos2d::CCDirector::getWinSize(v3, &v20);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v19, v20 * 0.5, (float)(v21 * 0.5) + 85.0);
v17 = 8;
*(_QWORD *)&v18 = 15;
v16 = 0x3A73656572676544uLL;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, -100.0, 0.0);
cocos2d::CCPoint::operator+(&v19, &v22, v4);
v10 = 0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
176,
(unsigned int)&v16,
(unsigned int)&v22,
1060320051,
0,
2,
6,
0,
-1020002304,
1127481344,
0,
0,
0,
2,
v10,
&v16);
v12 = &v13;
*((_QWORD *)&v13 + 1) = 58;
v14 = 9;
v15 = 15;
*(_QWORD *)&v13 = 0x656D695465646146LL;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v11, 100.0, 0.0);
cocos2d::CCPoint::operator+(&v19, &v22, v5);
SetupTriggerPopup::createValueControl(a1, 10, (unsigned int)&v13, (unsigned int)&v22, 1060320051, 0, 0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, 0.0, -100.0);
cocos2d::CCPoint::operator+(&v19, &v22, v6);
return SetupTriggerPopup::createEasingControls(a1, (unsigned int)&v22, v7, v8, 0);
}