//
// SetupTriggerPopup::addEasePreviewButton from 0xb1def4 to 0xb1e0d8 (484 bytes)
//
// 3 xrefs:
// > SetupTriggerPopup::createEasingControls @ 0xb21bdc
// > SetupTriggerPopup::createCustomEasingControls @ 0xb22850
// > ??> @ 0xf6238
//
// 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 13:01:35 +0000
//
__int64 __fastcall SetupTriggerPopup::addEasePreviewButton(
cocos2d::CCArray **this,
cocos2d::CCLabelBMFont *a2,
float a3,
unsigned int a4,
int a5,
unsigned int a6,
signed int a7)
{
cocos2d::CCArray *PageContainer; // x28
const char *v13; // x1
__int64 v14; // x19
cocos2d::CCObject *v15; // x19
void (__fastcall *v16)(cocos2d::CCObject *, __int64 *); // x27
float *v17; // x0
cocos2d::CCArray *GroupContainer; // [xsp+78h] [xbp+78h]
cocos2d::CCNode *v21; // [xsp+88h] [xbp+88h]
__int64 v22; // [xsp+90h] [xbp+90h]
_BYTE v23[8]; // [xsp+A0h] [xbp+A0h] BYREF
__int64 v24; // [xsp+A8h] [xbp+A8h] BYREF
__int64 v25; // [xsp+B0h] [xbp+B0h] BYREF
PageContainer = (cocos2d::CCArray *)SetupTriggerPopup::getPageContainer(this, a6);
GroupContainer = (cocos2d::CCArray *)SetupTriggerPopup::getGroupContainer(this, a7);
v14 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_optionsBtn_001.png", v13);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v14 + 160LL))(v14, a3 * 0.45);
v15 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(
v14,
0,
(__int64)this,
(__int64)SetupTriggerPopup::onEasePreview,
0);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v15);
v21 = *(this + 69);
v16 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v15 + 184LL);
v22 = (*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)a2 + 192LL))(a2);
v17 = (float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)a2 + 328LL))(a2);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v23, (float)-(float)((float)(*v17 * 0.5) + 8.0) * a3, a3 * -2.0);
cocos2d::CCPoint::operator+(&v24, v22);
cocos2d::CCNode::convertToNodeSpace(&v25, v21, (const cocos2d::CCPoint *)&v24);
v16(v15, &v25);
CCMenuItemSpriteExtra::setSizeMult((__int64)v15, 1.2);
(*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v15 + 72LL))(v15, a4);
*((_DWORD *)v15 + 124) = a5;
cocos2d::CCArray::addObject(PageContainer, v15);
if ( a7 > 0 )
cocos2d::CCArray::addObject(GroupContainer, v15);
return _stack_chk_guard;
}