//
// SetupTriggerPopup::updateEaseLabel from 0x14047cae0 to 0x14047cc85 (421 bytes)
//
// 3 xrefs:
// > SetupTriggerPopup::createEasingControls @ 0x14047ca8a
// > SetupTriggerPopup::onEase @ 0x14047cfd1
// > ??> @ 0x1406db864
//
// 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::updateEaseLabel(SetupTriggerPopup *a1)
{
unsigned __int64 v2; // rdi
EasingType m_easingType; // edx
__int64 v4; // rbx
void **v5; // rdx
void *v6; // rcx
void *Block[2]; // [rsp+20h] [rbp-58h] BYREF
__int128 v8; // [rsp+30h] [rbp-48h]
_BYTE v9[32]; // [rsp+40h] [rbp-38h] BYREF
*(_OWORD *)Block = 0;
*(_QWORD *)&v8 = 5;
v2 = 15;
*((_QWORD *)&v8 + 1) = 15;
LODWORD(Block[0]) = *(_DWORD *)"Mixed";
WORD2(Block[0]) = (unsigned __int8)aMixed[4];
m_easingType = a1->m_easingType;
if ( m_easingType != -99999 )
{
v4 = GameToolbox::easeToText((__int64)v9, m_easingType);
if ( Block != (void **)v4 )
{
*(_QWORD *)&v8 = 0;
*((_QWORD *)&v8 + 1) = 15;
LOBYTE(Block[0]) = 0;
*(_OWORD *)Block = *(_OWORD *)v4;
v8 = *(_OWORD *)(v4 + 16);
*(_QWORD *)(v4 + 16) = 0;
*(_QWORD *)(v4 + 24) = 15;
*(_BYTE *)v4 = 0;
}
sub_14003A830((__int64)v9);
v2 = *((_QWORD *)&v8 + 1);
}
v5 = Block;
if ( v2 > 0xF )
v5 = (void **)Block[0];
a1->m_easingLabel->setString(&a1->m_easingLabel->cocos2d::CCLabelProtocol, (const char *)v5);
cocos2d::CCLabelBMFont::limitLabelWidth(
a1->m_easingLabel,
a1->m_easingControlScale * 150.0,
a1->m_easingControlScale * 0.69999999,
0.0);
if ( *((_QWORD *)&v8 + 1) > 0xFu )
{
v6 = Block[0];
if ( (unsigned __int64)(*((_QWORD *)&v8 + 1) + 1LL) >= 0x1000 )
{
v6 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v6);
}
}