//
// SetupTriggerPopup::createCustomEasingControls from 0x140614df0 to 0x14061555a (1898 bytes)
//
// 5 xrefs:
// > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0x1405a46f2
// > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0x1405a4822
// > SetupAreaAnimTriggerPopup::init @ 0x1405a8dd9
// > SetupEnterEffectPopup::init @ 0x1405b50a7
// > ??> @ 0x1409300a4
//
// 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:17 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall SetupTriggerPopup::createCustomEasingControls(
__int64 a1,
__int64 a2,
struct cocos2d::CCObject *a3,
float a4,
unsigned int a5,
signed int a6,
int a7,
int a8)
{
struct cocos2d::CCObject *PageContainer; // r15
struct cocos2d::CCObject *GroupContainer; // rbp
struct cocos2d::CCObject *v12; // rax
cocos2d::CCDictionary *v13; // rbx
struct cocos2d::CCObject *v14; // rax
cocos2d::CCDictionary *v15; // rbx
struct cocos2d::CCObject *v16; // rax
const char *v17; // rcx
struct cocos2d::CCObject *v18; // rsi
struct cocos2d::CCObject *v19; // r14
__int64 v20; // rax
__int64 v21; // rbx
__int64 v22; // rax
float v23; // xmm9_4
char *v24; // rbx
__int64 v25; // rdx
struct cocos2d::CCObject *v26; // rbx
struct cocos2d::CCObject *v27; // r15
__int64 v28; // rax
__int64 v29; // rbx
__int64 v30; // rax
struct cocos2d::CCObject *v31; // rbx
struct cocos2d::CCObject *v32; // r15
float *v33; // rax
__int64 v34; // rax
__int64 v35; // rbx
__int64 v36; // rax
__int64 v37; // rbx
__int64 v38; // rax
cocos2d::CCSprite *v39; // rbx
struct cocos2d::CCObject *v40; // r15
__int64 v41; // rax
__int64 v42; // rbx
__int64 v43; // rax
__int64 v44; // rbx
__int64 v45; // rax
struct cocos2d::CCSprite *v46; // rax
int v47; // ebx
struct cocos2d::CCObject *v48; // r15
__int64 v49; // rax
__int64 v50; // rbx
__int64 v51; // rax
__int64 v52; // rbx
__int64 v53; // rax
unsigned int v54; // ebx
float v55; // xmm0_4
__int64 v56; // [rsp+28h] [rbp-110h]
_BYTE v57[8]; // [rsp+40h] [rbp-F8h] BYREF
struct cocos2d::CCObject *v58; // [rsp+48h] [rbp-F0h] BYREF
unsigned int v59; // [rsp+50h] [rbp-E8h]
cocos2d::CCArray *v60; // [rsp+58h] [rbp-E0h]
__int64 v61; // [rsp+60h] [rbp-D8h]
_BYTE v62[8]; // [rsp+68h] [rbp-D0h] BYREF
_BYTE v63[8]; // [rsp+70h] [rbp-C8h] BYREF
__int64 v64; // [rsp+78h] [rbp-C0h]
__int64 v65; // [rsp+80h] [rbp-B8h]
v58 = a3;
v64 = a2;
v65 = a2;
v59 = a6;
PageContainer = SetupTriggerPopup::getPageContainer(a1, 0);
v60 = PageContainer;
GroupContainer = SetupTriggerPopup::getGroupContainer(a1, a8);
v12 = cocos2d::CCInteger::create(a6);
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 920), v12, (int)a5);
v61 = a6;
v13 = *(cocos2d::CCDictionary **)(a1 + 920);
v14 = cocos2d::CCInteger::create(a5);
cocos2d::CCDictionary::setObject(v13, v14, a6);
v15 = *(cocos2d::CCDictionary **)(a1 + 944);
v16 = cocos2d::CCFloat::create(a4);
cocos2d::CCDictionary::setObject(v15, v16, (int)a5);
v17 = (const char *)a2;
if ( *(_QWORD *)(a2 + 24) > 0xFu )
v17 = *(const char **)a2;
v18 = cocos2d::CCLabelBMFont::create(v17, "goldFont.fnt");
(*(void (__fastcall **)(struct cocos2d::CCObject *, struct cocos2d::CCObject *))(*(_QWORD *)v18 + 184LL))(v18, v58);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
v18);
cocos2d::CCArray::addObject(PageContainer, v18);
if ( a8 > 0 )
cocos2d::CCArray::addObject(GroupContainer, v18);
(*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v18 + 160LL))(v18);
v19 = cocos2d::CCLabelBMFont::create(" ", &qword_140704F78);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
v19);
cocos2d::CCArray::addObject(PageContainer, v19);
if ( a8 > 0 )
cocos2d::CCArray::addObject(GroupContainer, v19);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v57, 0.0, a4 * -30.0);
v21 = v20;
v22 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v18 + 200LL))(v18);
cocos2d::CCPoint::operator+(v22, &v58, v21);
(*(void (__fastcall **)(struct cocos2d::CCObject *, struct cocos2d::CCObject **))(*(_QWORD *)v19 + 184LL))(v19, &v58);
(*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v19 + 160LL))(v19);
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 928), v19, (int)a5);
v23 = a4 * 100.0;
v58 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_colorBtn_001.png");
v24 = (char *)v58 + 320;
(**((void (__fastcall ***)(char *, void *))v58 + 40))((char *)v58 + 320, &unk_1407046A4);
LOBYTE(v25) = 100;
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v24 + 40LL))(v24, v25);
v26 = v58;
cocos2d::CCArray::addObject(PageContainer, v58);
if ( a8 > 0 )
cocos2d::CCArray::addObject(GroupContainer, v26);
v27 = cocos2d::CCLabelBMFont::create("0", &qword_140704F78);
(*(void (__fastcall **)(struct cocos2d::CCObject *, struct cocos2d::CCObject *))(*(_QWORD *)v26 + 464LL))(v26, v27);
(*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v27 + 120LL))(v27);
(*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v27 + 136LL))(v27);
cocos2d::CCArray::addObject(v60, v27);
if ( a8 > 0 )
cocos2d::CCArray::addObject(GroupContainer, v27);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v62, 1.0, 1.5);
v29 = v28;
cocos2d::CCNode::convertToNodeSpace(v58, v63, &unk_14090BC48);
cocos2d::CCPoint::operator+(v30, v57, v29);
(*(void (__fastcall **)(struct cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v27 + 184LL))(v27, v57);
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 928), v27, v61);
v31 = v58;
(*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v58 + 120LL))(v58);
(*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v31 + 136LL))(v31);
v32 = CCMenuItemSpriteExtra::create((int)v31, 0, a1, (__int64)SetupTriggerPopup::onCustomEaseRate);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(
*(_QWORD *)(a1 + 552),
v32);
v33 = (float *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v18 + 320LL))(v18);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v63, (float)((float)(*v33 * 0.5) + 10.0) * a4, a4 * -2.0);
v35 = v34;
v36 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v18 + 200LL))(v18);
cocos2d::CCPoint::operator+(v36, v57, v35);
v37 = *(_QWORD *)v32;
cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), v62, v57);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v37 + 184))(v32, v38);
*((_DWORD *)v32 + 93) = 1067030938;
(*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v32 + 64LL))(v32, v59);
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 936), v32, v61);
cocos2d::CCArray::addObject(v60, v32);
if ( a8 > 0 )
cocos2d::CCArray::addObject(GroupContainer, v32);
v39 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png");
cocos2d::CCSprite::setFlipX(v39, 1);
(*(void (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v39 + 160LL))(v39);
v40 = CCMenuItemSpriteExtra::create((int)v39, 0, a1, (__int64)SetupTriggerPopup::onCustomEaseArrowUp);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(
*(_QWORD *)(a1 + 552),
v40);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v63, v23, 0.0);
v42 = v41;
v43 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v19 + 200LL))(v19);
cocos2d::CCPoint::operator+(v43, v57, v42);
v44 = *(_QWORD *)v40;
cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), v62, v57);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v44 + 184))(v40, v45);
*((_DWORD *)v40 + 93) = 1068708659;
(*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v40 + 64LL))(v40, a5);
cocos2d::CCArray::addObject(v60, v40);
if ( a8 > 0 )
cocos2d::CCArray::addObject(GroupContainer, v40);
v46 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png");
v47 = (int)v46;
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v46 + 160LL))(v46);
v48 = CCMenuItemSpriteExtra::create(v47, 0, a1, (__int64)SetupTriggerPopup::onCustomEaseArrowDown);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(
*(_QWORD *)(a1 + 552),
v48);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v63, -v23, 0.0);
v50 = v49;
v51 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v19 + 200LL))(v19);
cocos2d::CCPoint::operator+(v51, v57, v50);
v52 = *(_QWORD *)v48;
cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), v62, v57);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v52 + 184))(v48, v53);
*((_DWORD *)v48 + 93) = 1068708659;
(*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v48 + 64LL))(v48, a5);
cocos2d::CCArray::addObject(v60, v48);
if ( a8 > 0 )
cocos2d::CCArray::addObject(GroupContainer, v48);
v54 = v59;
SetupTriggerPopup::addEasePreviewButton(a1, (__int64)v18, a4, a5, v59, v56, a8);
v55 = (*(float (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1168LL))(a1, a5);
SetupTriggerPopup::updateCustomEaseLabel(a1, a5, (unsigned int)(int)v55);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1168LL))(a1, v54);
SetupTriggerPopup::updateCustomEaseRateLabel(a1);
SetupTriggerPopup::toggleCustomEaseRateVisibility(a1, a5, v54);
sub_14003D310(v64);
}