//
// SetupTriggerPopup::updateCustomEaseLabel from 0xb21f70 to 0xb220e8 (376 bytes)
//
// 4 xrefs:
// > SetupTriggerPopup::createCustomEasingControls @ 0xb22874
// > SetupTriggerPopup::onCustomEaseArrow @ 0xb24d78
// > EasingSelectPopup::onCell @ 0xcbb474
// > ??> @ 0xb82a0
//
// 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:37 +0000
//
__int64 __fastcall SetupTriggerPopup::updateCustomEaseLabel(cocos2d::CCDictionary **this, int a2, unsigned int a3)
{
__int64 v3; // x21
__int64 v6; // x0
cocos2d::CCLabelBMFont *v7; // x22
char *v8; // x1
__int64 v9; // x0
float v10; // s1
float v11; // s0
float v12; // s1
__int64 v14; // [xsp+48h] [xbp+48h] BYREF
__int64 v15; // [xsp+50h] [xbp+50h]
void *v16; // [xsp+58h] [xbp+58h]
__int64 v17[3]; // [xsp+60h] [xbp+60h] BYREF
v3 = a2;
v14 = 0;
v15 = 0;
v16 = nullptr;
std::string::__init(&v14, "Mixed", 5u);
if ( a3 != -99999 )
{
GameToolbox::easeToText((GameToolbox *)a3, v17);
if ( (v14 & 1) != 0 )
{
*(_BYTE *)v16 = 0;
v15 = 0;
}
else
{
LOWORD(v14) = 0;
}
std::string::reserve(&v14, 0);
v16 = (void *)v17[2];
v14 = v17[0];
v15 = v17[1];
}
v6 = cocos2d::CCDictionary::objectForKey(*(this + 118), v3);
v7 = (cocos2d::CCLabelBMFont *)v6;
if ( v6 )
{
v8 = (char *)&v14 + 1;
if ( (v14 & 1) != 0 )
v8 = (char *)v16;
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v6 + 928LL))(v6, v8);
v9 = cocos2d::CCDictionary::objectForKey(*(this + 120), v3);
if ( v9 )
{
v10 = *(float *)(v9 + 56);
v11 = v10 * 150.0;
v12 = v10 * 0.7;
}
else
{
v12 = 0.7;
v11 = 150.0;
}
cocos2d::CCLabelBMFont::limitLabelWidth(v7, v11, v12, 0.0);
}
if ( (v14 & 1) != 0 )
operator delete(v16);
return _stack_chk_guard;
}