//
// SetupShaderEffectPopup::setupSepia from 0x140452b60 to 0x140452e86 (806 bytes)
//
// 2 xrefs:
// > SetupShaderEffectPopup::init @ 0x14044a41a
// > ??> @ 0x1406da808
//
// 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::setupSepia(SetupShaderEffectPopup *a1)
{
double v2; // xmm0_8
__int64 v3; // rcx
cocos2d::CCDirector *v4; // rax
double v5; // xmm0_8
double ValueControl; // xmm0_8
int v7; // r9d
__int128 v8; // [rsp+58h] [rbp-19h] BYREF
__int64 v9; // [rsp+68h] [rbp-9h]
__int64 v10; // [rsp+70h] [rbp-1h]
__int128 v11; // [rsp+78h] [rbp+7h] BYREF
__int64 v12; // [rsp+88h] [rbp+17h]
__int128 v13; // [rsp+90h] [rbp+1Fh]
char v14; // [rsp+E0h] [rbp+6Fh] BYREF
float v15; // [rsp+E8h] [rbp+77h]
__int128 *v16; // [rsp+F0h] [rbp+7Fh] BYREF
v9 = 11;
v10 = 15;
*(_QWORD *)&v8 = 0x6553207075746553LL;
*((_QWORD *)&v8 + 1) = 6383984;
SetupTriggerPopup::addTitle(a1, &v8);
v16 = &v8;
v8 = 0;
v9 = 0;
v10 = 15;
*(_QWORD *)&v8 = sub_14003AA10(0xA0u);
v9 = 151;
v10 = 159;
strcpy(
(char *)v8,
"Applies a sepia filter to the screen.\n"
"Target is how much of the filter to apply.\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);
v5 = cocos2d::CCPoint::CCPoint(*(float *)&v2, v15 * 0.5);
v9 = 7;
v10 = 15;
v8 = 0x3A746567726154uLL;
cocos2d::CCPoint::CCPoint(*(float *)&v5, -100.0);
cocos2d::CCPoint::operator+(&v14, &v16);
SetupTriggerPopup::createValueControl((_DWORD)a1, 176, (unsigned int)&v8, (unsigned int)&v16, 1060320051, 0, 0);
*((_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, v7, 0);
}