//
// SetupTriggerPopup::updateCustomEaseLabel from 0x14047db10 to 0x14047dcd4 (452 bytes)
//
// 3 xrefs:
// > SetupTriggerPopup::createCustomEasingControls @ 0x14047d86c
// > SetupTriggerPopup::onCustomEaseArrow @ 0x14047dacb
// > ??> @ 0x1406db900
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
void SetupTriggerPopup::updateCustomEaseLabel(SetupTriggerPopup *a1, int a2, int a3)
{
__int64 v3; // rdi
__int64 v5; // rbx
struct cocos2d::CCObject *v6; // rax
cocos2d::CCLabelBMFont *v7; // rbx
void **v8; // rdx
struct cocos2d::CCObject *v9; // rax
float v10; // xmm1_4
void *v11; // rcx
void *Block[2]; // [rsp+20h] [rbp-68h] BYREF
__int128 v13; // [rsp+30h] [rbp-58h]
_BYTE v14[32]; // [rsp+40h] [rbp-48h] BYREF
v3 = a2;
*(_OWORD *)Block = 0;
*(_QWORD *)&v13 = 5;
*((_QWORD *)&v13 + 1) = 15;
LODWORD(Block[0]) = *(_DWORD *)"Mixed";
WORD2(Block[0]) = (unsigned __int8)aMixed[4];
if ( a3 != -99999 )
{
v5 = GameToolbox::easeToText((__int64)v14, a3);
if ( Block != (void **)v5 )
{
*(_QWORD *)&v13 = 0;
*((_QWORD *)&v13 + 1) = 15;
LOBYTE(Block[0]) = 0;
*(_OWORD *)Block = *(_OWORD *)v5;
v13 = *(_OWORD *)(v5 + 16);
*(_QWORD *)(v5 + 16) = 0;
*(_QWORD *)(v5 + 24) = 15;
*(_BYTE *)v5 = 0;
}
sub_14003A830((__int64)v14);
}
v6 = cocos2d::CCDictionary::objectForKey(a1->m_customEasingLabels, v3);
v7 = (cocos2d::CCLabelBMFont *)v6;
if ( v6 )
{
v8 = Block;
if ( *((_QWORD *)&v13 + 1) > 0xFu )
v8 = (void **)Block[0];
(**(void (__fastcall ***)(__int64, void **))&v6[6].m_uAutoReleaseCount)((__int64)&v6[6].m_uAutoReleaseCount, v8);
v9 = cocos2d::CCDictionary::objectForKey(a1->m_customEasingScales, v3);
if ( v9 )
v10 = *(float *)&v9[1].__vftable;
else
v10 = 1.0;
cocos2d::CCLabelBMFont::limitLabelWidth(v7, v10 * 150.0, v10 * 0.69999999, 0.0);
}
if ( *((_QWORD *)&v13 + 1) > 0xFu )
{
v11 = Block[0];
if ( (unsigned __int64)(*((_QWORD *)&v13 + 1) + 1LL) >= 0x1000 )
{
v11 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v11 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v11);
}
}