//
// sub_10021B8B8 from 0x10021b8b8 to 0x10021bac4 (524 bytes)
//
// 1 xrefs:
// > sub_100214D80 @ 0x100214ecc
//
// This function is hookable on this platform (idp: arm, 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:01:05 +0000
//
__int64 __fastcall sub_10021B8B8(__int64 a1)
{
__int64 v2; // x0
void *v4[2]; // [xsp+18h] [xbp-B8h] BYREF
char v5; // [xsp+2Fh] [xbp-A1h]
float32x2_t v6; // [xsp+30h] [xbp-A0h] BYREF
float32x2_t v7; // [xsp+38h] [xbp-98h] BYREF
std::string v8; // [xsp+40h] [xbp-90h] BYREF
float32x2_t v9; // [xsp+58h] [xbp-78h] BYREF
__int64 v10; // [xsp+60h] [xbp-70h] BYREF
void *__p[2]; // [xsp+68h] [xbp-68h] BYREF
char v12; // [xsp+7Fh] [xbp-51h]
void *v13[2]; // [xsp+80h] [xbp-50h] BYREF
char v14; // [xsp+97h] [xbp-39h]
void *v15[2]; // [xsp+98h] [xbp-38h] BYREF
char v16; // [xsp+AFh] [xbp-21h]
sub_100009900(v15, "Setup Hue Shift");
sub_1001ACA6C(a1, (__int64 *)v15);
if ( v16 < 0 )
operator delete(v15[0]);
sub_100009900(v13, "Help");
sub_100009900(
__p,
"Changes the hue of the screen.\n"
"Degrees is how much the colors should shift.\n"
"FadeTime is time until final state is reached.");
sub_1001ACBB8(a1, (__int64)v13, (__int64)__p, 1.0);
if ( v12 < 0 )
operator delete(__p[0]);
if ( v14 < 0 )
operator delete(v13[0]);
v2 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v2, &v10);
sub_1000262BC((float *)&v9, *(float *)&v10 * 0.5, (float)(*((float *)&v10 + 1) * 0.5) + 85.0);
sub_100009900(&v8, "Degrees:");
sub_1000262BC((float *)&v6, -100.0, 0.0);
sub_100026318(&v9, &v6, &v7);
SetupTriggerPopup::createValueControlAdvanced(
a1,
176,
&v8,
(double *)&v7,
0,
2,
6,
0,
0.7,
-180.0,
180.0,
0,
0,
0,
2,
0);
if ( SHIBYTE(v8.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v8.__r_.__value_.__l.__data_);
sub_100009900(v4, "FadeTime:");
sub_1000262BC((float *)&v6, 100.0, 0.0);
sub_100026318(&v9, &v6, &v7);
sub_1001AECB0(a1, 10, (__int64)v4, (double *)&v7, 0.7, 0.0, 0.0);
if ( v5 < 0 )
operator delete(v4[0]);
sub_1000262BC((float *)&v6, 0.0, -100.0);
sub_100026318(&v9, &v6, &v7);
return SetupTriggerPopup::createEasingControls(a1, (__int64)&v7, 0, 0, 1.0);
}