//
// SetupTriggerPopup::addEasePreviewButton from 0x140614a00 to 0x140614b91 (401 bytes)
//
// 3 xrefs:
// > SetupTriggerPopup::createEasingControls @ 0x140613f2f
// > SetupTriggerPopup::createCustomEasingControls @ 0x1406154bc
// > ??> @ 0x140930080
//
// 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
//
void __fastcall SetupTriggerPopup::addEasePreviewButton(
__int64 a1,
__int64 a2,
float a3,
unsigned int a4,
int a5,
__int64 a6,
signed int a7)
{
struct cocos2d::CCObject *PageContainer; // rbp
struct cocos2d::CCObject *GroupContainer; // r13
struct cocos2d::CCSprite *v12; // rax
int v13; // ebx
cocos2d::CCObject *v14; // r12
float *v15; // rax
__int64 v16; // rax
__int64 v17; // rbx
__int64 v18; // rax
__int64 v19; // rbx
__int64 v20; // rax
__int64 v21; // rax
_BYTE v22[16]; // [rsp+20h] [rbp-48h] BYREF
char v23; // [rsp+70h] [rbp+8h] BYREF
char v24; // [rsp+78h] [rbp+10h] BYREF
PageContainer = SetupTriggerPopup::getPageContainer(a1, 0);
GroupContainer = SetupTriggerPopup::getGroupContainer(a1, a7);
v12 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_optionsBtn_001.png");
v13 = (int)v12;
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v12 + 160LL))(v12);
v14 = CCMenuItemSpriteExtra::create(v13, 0, a1, (__int64)SetupTriggerPopup::onEasePreview);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v14);
v15 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 320LL))(a2);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v24, (float)-(float)((float)(*v15 * 0.5) + 8.0) * a3, a3 * -2.0);
v17 = v16;
v18 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 200LL))(a2);
cocos2d::CCPoint::operator+(v18, &v23, v17);
v19 = *(_QWORD *)v14;
cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), v22, &v23);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v19 + 184))(v14, v20);
v21 = *(_QWORD *)v14;
*((_DWORD *)v14 + 93) = 1067030938;
(*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(v21 + 64))(v14, a4);
*((_DWORD *)v14 + 128) = a5;
cocos2d::CCArray::addObject(PageContainer, v14);
if ( a7 > 0 )
cocos2d::CCArray::addObject(GroupContainer, v14);
}