//
// SetupKeyframePopup::init from 0x1001e2630 to 0x1001e3a9d (5229 bytes)
//
// 1 xrefs:
// > sub_1001E2510 @ 0x1001e25ec
//
// 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 12:26:29 +0000
//
__int64 __fastcall SetupKeyframePopup::init(float *a1, __int64 a2, __int64 a3, __int64 a4)
{
float *v5; // rbx
unsigned int v6; // r14d
bool v7; // r12
__int64 v8; // rax
const std::string::value_type *CString; // rax
__int64 v10; // rax
int v11; // r15d
void *v12; // rdi
__int64 v13; // rax
__int64 v14; // r15
__int64 v15; // r14
_BYTE *ToggleButton; // r15
__int64 v17; // r15
__int64 v18; // r14
_BYTE *v19; // r15
__int64 v20; // r15
__int64 v21; // r14
_BYTE *v22; // r15
__int64 v23; // rax
unsigned int *v24; // rax
__int64 *v25; // r13
__int64 *v26; // r14
__int64 v27; // r15
int v28; // eax
char v30; // [rsp+0h] [rbp-330h]
__int16 v31[8]; // [rsp+40h] [rbp-2F0h] BYREF
void *v32; // [rsp+50h] [rbp-2E0h]
__int16 v33[8]; // [rsp+58h] [rbp-2D8h] BYREF
void *v34; // [rsp+68h] [rbp-2C8h]
__int16 v35[8]; // [rsp+70h] [rbp-2C0h] BYREF
void *v36; // [rsp+80h] [rbp-2B0h]
__int16 v37[8]; // [rsp+88h] [rbp-2A8h] BYREF
void *v38; // [rsp+98h] [rbp-298h]
char v39; // [rsp+A0h] [rbp-290h] BYREF
int v40; // [rsp+A1h] [rbp-28Fh]
void *v41; // [rsp+B0h] [rbp-280h]
char v42; // [rsp+B8h] [rbp-278h] BYREF
char v43[15]; // [rsp+B9h] [rbp-277h] BYREF
void *v44; // [rsp+C8h] [rbp-268h]
char v45; // [rsp+D0h] [rbp-260h] BYREF
char v46[15]; // [rsp+D1h] [rbp-25Fh] BYREF
void *v47; // [rsp+E0h] [rbp-250h]
_QWORD v48[2]; // [rsp+E8h] [rbp-248h] BYREF
void *v49; // [rsp+F8h] [rbp-238h]
char v50[16]; // [rsp+100h] [rbp-230h] BYREF
void *v51; // [rsp+110h] [rbp-220h]
char v52; // [rsp+118h] [rbp-218h] BYREF
_BYTE v53[23]; // [rsp+119h] [rbp-217h] BYREF
char v54; // [rsp+130h] [rbp-200h] BYREF
char v55[15]; // [rsp+131h] [rbp-1FFh] BYREF
void *v56; // [rsp+140h] [rbp-1F0h]
char v57; // [rsp+148h] [rbp-1E8h] BYREF
char v58[15]; // [rsp+149h] [rbp-1E7h] BYREF
void *v59; // [rsp+158h] [rbp-1D8h]
char v60; // [rsp+160h] [rbp-1D0h] BYREF
char v61[15]; // [rsp+161h] [rbp-1CFh] BYREF
void *v62; // [rsp+170h] [rbp-1C0h]
char v63; // [rsp+178h] [rbp-1B8h] BYREF
_BYTE v64[23]; // [rsp+179h] [rbp-1B7h] BYREF
char v65; // [rsp+190h] [rbp-1A0h] BYREF
_BYTE v66[23]; // [rsp+191h] [rbp-19Fh] BYREF
char v67[8]; // [rsp+1A8h] [rbp-188h] BYREF
char v68; // [rsp+1B0h] [rbp-180h] BYREF
_BYTE v69[23]; // [rsp+1B1h] [rbp-17Fh] BYREF
char v70; // [rsp+1C8h] [rbp-168h] BYREF
_BYTE v71[23]; // [rsp+1C9h] [rbp-167h] BYREF
char v72; // [rsp+1E0h] [rbp-150h] BYREF
_BYTE v73[23]; // [rsp+1E1h] [rbp-14Fh] BYREF
char v74; // [rsp+1F8h] [rbp-138h] BYREF
_BYTE v75[23]; // [rsp+1F9h] [rbp-137h] BYREF
char v76; // [rsp+210h] [rbp-120h] BYREF
_BYTE v77[23]; // [rsp+211h] [rbp-11Fh] BYREF
char v78; // [rsp+228h] [rbp-108h] BYREF
_BYTE v79[23]; // [rsp+229h] [rbp-107h] BYREF
char v80; // [rsp+240h] [rbp-F0h] BYREF
_BYTE v81[23]; // [rsp+241h] [rbp-EFh] BYREF
char v82; // [rsp+258h] [rbp-D8h] BYREF
char v83[15]; // [rsp+259h] [rbp-D7h] BYREF
void *v84; // [rsp+268h] [rbp-C8h]
std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0 v85; // [rsp+270h] [rbp-C0h] BYREF
__int64 v86; // [rsp+271h] [rbp-BFh]
int v87; // [rsp+279h] [rbp-B7h]
__int16 v88; // [rsp+27Dh] [rbp-B3h]
std::string::value_type v89; // [rsp+27Fh] [rbp-B1h]
void *__p; // [rsp+280h] [rbp-B0h]
char v91[8]; // [rsp+288h] [rbp-A8h] BYREF
char v92[8]; // [rsp+290h] [rbp-A0h] BYREF
char v93[8]; // [rsp+298h] [rbp-98h] BYREF
__int128 v94; // [rsp+2A0h] [rbp-90h] BYREF
void *data; // [rsp+2B0h] [rbp-80h]
std::string v96; // [rsp+2B8h] [rbp-78h] BYREF
float v97; // [rsp+2D4h] [rbp-5Ch]
char v98[8]; // [rsp+2D8h] [rbp-58h] BYREF
float v99; // [rsp+2E0h] [rbp-50h] BYREF
float v100; // [rsp+2E4h] [rbp-4Ch]
float v101; // [rsp+2E8h] [rbp-48h] BYREF
float v102; // [rsp+2ECh] [rbp-44h]
std::string v103; // [rsp+2F0h] [rbp-40h] BYREF
v5 = a1;
v6 = SetupTriggerPopup::init(a1, a2, a3, 1, 440.0, 280.0, 0.0);
if ( !(_BYTE)v6 )
return v6;
SetupTriggerPopup::preSetup(a1);
*((_QWORD *)a1 + 128) = a4;
if ( !a2 )
{
v96.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)28;
strcpy(v96.__r_.__value_.__s.__data_, "Setup Keyframe");
v7 = 0;
goto LABEL_6;
}
v7 = *(_DWORD *)(a2 + 1860) == 0;
v96.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)28;
strcpy(v96.__r_.__value_.__s.__data_, "Setup Keyframe");
v8 = sub_10088E820("Setup Keyframe %i", v30);
CString = (const std::string::value_type *)cocos2d::CCString::getCString(v8);
std::string::assign(&v96, CString);
if ( (*(_BYTE *)&v96.__r_.__value_.__s.0 & 1) == 0 )
{
LABEL_6:
__p = v96.__r_.__value_.__l.__data_;
v85 = v96.__r_.__value_.__s.0;
v86 = *(std::string::size_type *)((char *)v96.__r_.__value_.__r.__words + 1);
v87 = *(_DWORD *)((char *)&v96.__r_.__value_.__r.__words[1] + 1);
v88 = *(_WORD *)((char *)&v96.__r_.__value_.__r.__words[1] + 5);
v89 = v96.__r_.__value_.__s.__data_[14];
goto LABEL_7;
}
sub_10001AD30(&v85, v96.__r_.__value_.__l.__data_, v96.__r_.__value_.__l.__size_);
LABEL_7:
SetupTriggerPopup::addTitle(a1, &v85);
if ( (*(_BYTE *)&v85 & 1) != 0 )
operator delete(__p);
v42 = 4;
strcpy(v43, "OK");
SetupTriggerPopup::addCloseButton(a1, &v42);
if ( (v42 & 1) != 0 )
operator delete(v44);
v45 = 8;
strcpy(v46, "Help");
v49 = operator new(0x2D0u);
v48[0] = 721;
v48[1] = 713;
strcpy(
(char *)v49,
"GroupID needs to contain a group parent.\n"
"Duration is time before next keyframe.\n"
"x360 lets you do full rotations before next keyframe.\n"
"CCW/CW to force rotation in a direction.\n"
"SpawnGID lets you spawn a group at the keyframe.\n"
"Prox will spawn the group when close to the keyframe.\n"
"Curve uses cubic interpolation to the next keyframe.\n"
"Close Loop returns to the first keyframe after the last.\n"
"Preview Art lets you preview the Group ID instead of an icon.\n"
"Ref Only will only be used as an inbetween frame.\n"
"Even = time between each keyframe is duration / keyframes.\n"
"Dist = time between each keyframe is distance / keyframes.");
SetupTriggerPopup::addHelpButton(a1, &v45, v48, 0.80000001);
if ( (v48[0] & 1) != 0 )
{
a1 = (float *)v49;
operator delete(v49);
}
if ( (v45 & 1) != 0 )
{
a1 = (float *)v47;
operator delete(v47);
}
v10 = cocos2d::CCDirector::sharedDirector(a1, &v45);
cocos2d::CCDirector::getWinSize(&v99, v10);
sub_100278250(v98, v99 * 0.5, (float)(v100 * 0.5) + 10.0);
strcpy(v50, "\nCurve");
sub_100278250(
&v103,
(float)((float)(v5[183] * 0.5) + (float)(v99 * 0.5)) + -80.0,
(float)((float)(v5[184] * 0.5) + (float)(v100 * 0.5)) + -20.0);
SetupTriggerPopup::createToggleValueControl((_DWORD)v5, 378, (unsigned int)v50, (unsigned int)&v103, 0, 0, 0);
if ( (v50[0] & 1) != 0 )
operator delete(v51);
if ( v7 )
{
v103.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14;
strcpy(v103.__r_.__value_.__s.__data_, "GroupID");
sub_100278250(&v101, (float)(v99 * 0.5) + -135.0, (float)(v100 * 0.5) + 105.0);
IDNameInput::create((_DWORD)v5, (_DWORD)v5 + 544, 1, 51, (unsigned int)&v103, (unsigned int)&v101, 6, 0, 1, 0);
if ( (*(_BYTE *)&v103.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v103.__r_.__value_.__l.__data_);
}
v52 = 16;
strcpy(v53, "Duration");
sub_100278250(&v101, -85.0, 65.0);
sub_100278350(&v103, v98, &v101);
SetupTriggerPopup::createValueControlAdvanced(v5, 10, &v52, &v103, 0, 1, 0.69999999, 0.0, 2.0, 6, 0, 0, 0, 0, 2, 0);
if ( (v52 & 1) != 0 )
operator delete(*(void **)&v53[15]);
sub_100278250(&v101, 90.0, 70.0);
sub_100278350(&v103, v98, &v101);
SetupTriggerPopup::createEasingControls(v5, &v103, 0, 0, 0.64999998);
v54 = 8;
strcpy(v55, "x360");
sub_100278250(&v101, -85.0, 10.0);
sub_100278350(&v103, v98, &v101);
SetupTriggerPopup::createValueControlAdvanced(
v5,
537,
&v54,
&v103,
0,
2,
0.69999999,
-10.0,
10.0,
6,
0,
0,
0,
0,
2,
0);
if ( (v54 & 1) != 0 )
operator delete(v56);
v97 = (*(float (__fastcall **)(float *, __int64))(*(_QWORD *)v5 + 1464LL))(v5, 536);
v39 = 6;
v40 = 5718851;
sub_100278250(&v101, 40.0, 5.0);
sub_100278350(&v103, v98, &v101);
v11 = (int)v97;
SetupTriggerPopup::createCustomToggleValueControl(
(_DWORD)v5,
2,
(int)v97 == 2,
1,
(unsigned int)&v39,
(unsigned int)&v103,
0,
0,
0);
if ( (v39 & 1) != 0 )
operator delete(v41);
v57 = 4;
strcpy(v58, "CW");
sub_100278250(&v101, 130.0, 5.0);
sub_100278350(&v103, v98, &v101);
SetupTriggerPopup::createCustomToggleValueControl(
(_DWORD)v5,
1,
v11 == 1,
1,
(unsigned int)&v57,
(unsigned int)&v103,
0,
0,
0);
if ( (v57 & 1) != 0 )
operator delete(v59);
v103.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)16;
strcpy(v103.__r_.__value_.__s.__data_, "SpawnGID");
sub_100278250(v91, -110.0, -60.0);
sub_100278350(&v101, v98, v91);
IDNameInput::create((_DWORD)v5, (_DWORD)v5 + 544, 1, 71, (unsigned int)&v103, (unsigned int)&v101, 6, 0, 1, 0);
if ( (*(_BYTE *)&v103.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v103.__r_.__value_.__l.__data_);
v68 = 20;
strcpy(v69, "SpawnDelay");
sub_100278250(&v101, 30.0, -50.0);
sub_100278350(&v103, v98, &v101);
SetupTriggerPopup::createValueControlAdvanced(v5, 557, &v68, &v103, 0, 1, 0.69999999, 0.0, 2.0, 6, 0, 0, 0, 0, 2, 0);
if ( (v68 & 1) != 0 )
operator delete(*(void **)&v69[15]);
v60 = 8;
strcpy(v61, "Prox");
sub_100278250(&v101, 130.0, -60.0);
sub_100278350(&v103, v98, &v101);
SetupTriggerPopup::createToggleValueControl((_DWORD)v5, 377, (unsigned int)&v60, (unsigned int)&v103, 1, 0, 0);
if ( (v60 & 1) != 0 )
operator delete(v62);
v70 = 20;
strcpy(v71, "Close\nLoop");
sub_100278250(&v103, (float)(v99 * 0.5) + -200.0, (float)((float)(v100 * 0.5) - (float)(v5[184] * 0.5)) + 20.0);
SetupTriggerPopup::createToggleValueControl((_DWORD)v5, 376, (unsigned int)&v70, (unsigned int)&v103, 0, 0, 0);
if ( (v70 & 1) != 0 )
operator delete(*(void **)&v71[15]);
v72 = 22;
strcpy(v73, "Preview\nArt");
sub_100278250(&v103, (float)(v99 * 0.5) + -120.0, (float)((float)(v100 * 0.5) - (float)(v5[184] * 0.5)) + 20.0);
SetupTriggerPopup::createToggleValueControl((_DWORD)v5, 380, (unsigned int)&v72, (unsigned int)&v103, 0, 0, 0);
if ( (v72 & 1) != 0 )
operator delete(*(void **)&v73[15]);
v63 = 16;
strcpy(v64, "Ref\nOnly");
sub_100278250(&v103, (float)(v99 * 0.5) + 60.0, (float)((float)(v100 * 0.5) - (float)(v5[184] * 0.5)) + 20.0);
SetupTriggerPopup::createToggleValueControl((_DWORD)v5, 375, (unsigned int)&v63, (unsigned int)&v103, 0, 0, 0);
if ( (v63 & 1) != 0 )
operator delete(*(void **)&v64[15]);
v74 = 20;
strcpy(v75, "Auto\nLayer");
sub_100278250(&v103, (float)(v99 * 0.5) + 140.0, (float)((float)(v100 * 0.5) - (float)(v5[184] * 0.5)) + 20.0);
SetupTriggerPopup::createToggleValueControl((_DWORD)v5, 459, (unsigned int)&v74, (unsigned int)&v103, 0, 0, 0);
if ( (v74 & 1) != 0 )
operator delete(*(void **)&v75[15]);
sub_100278250(&v101, (float)(v99 * 0.5) + -190.0, (float)(v100 * 0.5) + 60.0);
v76 = 20;
strcpy(v77, "Select\nAll");
v31[0] = 0;
sub_100278250(&v103, v101, v102);
SetupTriggerPopup::createCustomButton(v5, 1, &v76, v31, &v103, 1, 0.69999999, 0.40000001, 0, 0);
if ( (v31[0] & 1) != 0 )
operator delete(v32);
if ( (v76 & 1) != 0 )
operator delete(*(void **)&v77[15]);
v78 = 20;
strcpy(v79, "Update\nArt");
v33[0] = 0;
sub_100278250(&v103, v101, v102 + -46.0);
SetupTriggerPopup::createCustomButton(v5, 2, &v78, v33, &v103, 1, 0.69999999, 0.40000001, 0, 0);
if ( (v33[0] & 1) != 0 )
operator delete(v34);
if ( (v78 & 1) != 0 )
operator delete(*(void **)&v79[15]);
v65 = 16;
strcpy(v66, "Dup\nAnim");
v35[0] = 0;
sub_100278250(&v103, v101, v102 + -92.0);
SetupTriggerPopup::createCustomButton(v5, 3, &v65, v35, &v103, 1, 0.69999999, 0.40000001, 0, 0);
if ( (v35[0] & 1) != 0 )
operator delete(v36);
if ( (v65 & 1) != 0 )
operator delete(*(void **)&v66[15]);
v80 = 26;
strcpy(v81, "Reverse\nOrder");
v37[0] = 0;
sub_100278250(&v103, v101, v102 + -138.0);
SetupTriggerPopup::createCustomButton(v5, 4, &v80, v37, &v103, 1, 0.69999999, 0.40000001, 0, 0);
if ( (v37[0] & 1) != 0 )
operator delete(v38);
if ( (v80 & 1) != 0 )
operator delete(*(void **)&v81[15]);
v82 = 22;
strcpy(v83, "LineOpacity");
sub_100278250(
&v103,
(float)((float)(v5[183] * 0.5) + (float)(v99 * 0.5)) + -90.0,
(float)((float)(v100 * 0.5) - (float)(v5[184] * 0.5)) + 50.0);
v12 = v5;
SetupTriggerPopup::createValueControlAdvanced(v5, 524, &v82, &v103, 0, 1, 0.60000002, 0.0, 1.0, 1, 0, 0, 0, 1, 2, 0);
if ( (v82 & 1) != 0 )
{
v12 = v84;
operator delete(v84);
}
v13 = sub_1007FE900(v12);
*((_QWORD *)v5 + 127) = v13;
cocos2d::CCObject::retain(v13);
LOBYTE(v97) = v6;
sub_100278250(v91, (float)((float)(v99 * 0.5) + 85.0) + 110.0, (float)(0.5 * v100) + 50.0);
v103.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)4;
strcpy(v103.__r_.__value_.__s.__data_, "NA");
std::string::assign(&v103, "Time");
if ( (*(_BYTE *)&v103.__r_.__value_.__s.0 & 1) != 0 )
{
sub_10001AD30(&v94, v103.__r_.__value_.__l.__data_, v103.__r_.__value_.__l.__size_);
}
else
{
data = v103.__r_.__value_.__l.__data_;
v94 = *(_OWORD *)&v103.__r_.__value_.__l.0;
}
v14 = *((_QWORD *)v5 + 69);
sub_100278250(v93, 0.0, 0.0);
sub_100278350(v92, v91, v93);
v15 = *((_QWORD *)v5 + 73);
sub_100278250(v67, 0.0, 4.0);
ToggleButton = (_BYTE *)GameToolbox::createToggleButton(
(unsigned int)&v94,
(unsigned int)SetupKeyframePopup::onTimeMode,
0,
0,
v14,
(unsigned int)v92,
(__int64)v5,
v15,
(__int64)v67,
(__int64)"bigFont.fnt",
1,
0,
0);
if ( (v94 & 1) != 0 )
operator delete(data);
ToggleButton[393] = 1;
(*(void (__fastcall **)(_BYTE *, _QWORD, double, double, double))(*(_QWORD *)ToggleButton + 72LL))(
ToggleButton,
0,
COERCE_DOUBLE(1060320051),
COERCE_DOUBLE(1051931443),
COERCE_DOUBLE(1121714176));
sub_1007FEBF0(*((_QWORD *)v5 + 127), ToggleButton);
if ( (*(_BYTE *)&v103.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v103.__r_.__value_.__l.__data_);
v103.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)4;
strcpy(v103.__r_.__value_.__s.__data_, "NA");
std::string::assign(&v103, "Even");
if ( (*(_BYTE *)&v103.__r_.__value_.__s.0 & 1) != 0 )
{
sub_10001AD30(&v94, v103.__r_.__value_.__l.__data_, v103.__r_.__value_.__l.__size_);
}
else
{
data = v103.__r_.__value_.__l.__data_;
v94 = *(_OWORD *)&v103.__r_.__value_.__l.0;
}
v17 = *((_QWORD *)v5 + 69);
sub_100278250(v93, 0.0, -50.0);
sub_100278350(v92, v91, v93);
v18 = *((_QWORD *)v5 + 73);
sub_100278250(v67, 0.0, 4.0);
v19 = (_BYTE *)GameToolbox::createToggleButton(
(unsigned int)&v94,
(unsigned int)SetupKeyframePopup::onTimeMode,
0,
0,
v17,
(unsigned int)v92,
(__int64)v5,
v18,
(__int64)v67,
(__int64)"bigFont.fnt",
1,
0,
0);
if ( (v94 & 1) != 0 )
operator delete(data);
v19[393] = 1;
(*(void (__fastcall **)(_BYTE *, __int64, double, double, double))(*(_QWORD *)v19 + 72LL))(
v19,
1,
COERCE_DOUBLE(1060320051),
COERCE_DOUBLE(1051931443),
COERCE_DOUBLE(1121714176));
sub_1007FEBF0(*((_QWORD *)v5 + 127), v19);
if ( (*(_BYTE *)&v103.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v103.__r_.__value_.__l.__data_);
v103.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)4;
strcpy(v103.__r_.__value_.__s.__data_, "NA");
std::string::assign(&v103, "Dist");
if ( (*(_BYTE *)&v103.__r_.__value_.__s.0 & 1) != 0 )
{
sub_10001AD30(&v94, v103.__r_.__value_.__l.__data_, v103.__r_.__value_.__l.__size_);
}
else
{
data = v103.__r_.__value_.__l.__data_;
v94 = *(_OWORD *)&v103.__r_.__value_.__l.0;
}
v20 = *((_QWORD *)v5 + 69);
sub_100278250(v93, 0.0, -100.0);
sub_100278350(v92, v91, v93);
v21 = *((_QWORD *)v5 + 73);
sub_100278250(v67, 0.0, 4.0);
v22 = (_BYTE *)GameToolbox::createToggleButton(
(unsigned int)&v94,
(unsigned int)SetupKeyframePopup::onTimeMode,
0,
0,
v20,
(unsigned int)v92,
(__int64)v5,
v21,
(__int64)v67,
(__int64)"bigFont.fnt",
1,
0,
0);
if ( (v94 & 1) != 0 )
operator delete(data);
v22[393] = 1;
(*(void (__fastcall **)(_BYTE *, __int64, double, double, double))(*(_QWORD *)v22 + 72LL))(
v22,
2,
COERCE_DOUBLE(1060320051),
COERCE_DOUBLE(1051931443),
COERCE_DOUBLE(1121714176));
sub_1007FEBF0(*((_QWORD *)v5 + 127), v22);
if ( (*(_BYTE *)&v103.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v103.__r_.__value_.__l.__data_);
(*(void (__fastcall **)(float *, __int64))(*(_QWORD *)v5 + 1464LL))(v5, 379);
v23 = *((_QWORD *)v5 + 127);
if ( v23 )
{
v24 = *(unsigned int **)(v23 + 56);
if ( *v24 )
{
v25 = *((__int64 **)v24 + 2);
v26 = &v25[*v24 - 1];
do
{
v27 = *v25;
if ( !*v25 )
break;
v28 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v27 + 64LL))(*v25);
CCMenuItemToggler::toggle(v27, v28 == (int)0.69999999);
++v25;
}
while ( v25 <= v26 );
}
}
SetupTriggerPopup::postSetup(v5);
v6 = LOBYTE(v97);
if ( (*(_BYTE *)&v96.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v96.__r_.__value_.__l.__data_);
return v6;
}