//
// SetupTriggerPopup::updateEaseLabel from 0x9e9ae8 to 0x9e9cc0 (472 bytes)
//
// 3 xrefs:
// > SetupTriggerPopup::createEasingControls @ 0x9ea4a0
// > SetupTriggerPopup::onEase @ 0x9ed810
// > ??> @ 0xbf988
//
// 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
//
void SetupTriggerPopup::updateEaseLabel(SetupTriggerPopup *a1)
{
GameToolbox *m_easingType; // x0
void *v3; // x0
unsigned __int8 *v4; // x0
unsigned int *v5; // x1
int v6; // w2
unsigned int *v7; // x1
int v8; // w2
const unsigned __int8 *v9; // [xsp+48h] [xbp+48h] BYREF
__int64 v10; // [xsp+50h] [xbp+50h] BYREF
sub_D153B8((int)&v9, "Mixed");
m_easingType = (GameToolbox *)(unsigned int)a1->m_easingType;
if ( (_DWORD)m_easingType != -99999 )
{
GameToolbox::easeToText(m_easingType, (__int64)&v10);
sub_D163D4(&v9, &v10);
v3 = (void *)(v10 - 24);
if ( (__int64 *)(v10 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v7 = (unsigned int *)(v10 - 8);
do
v8 = __ldaxr(v7);
while ( __stlxr(v8 - 1, v7) );
}
else
{
v8 = *(_DWORD *)(v10 - 8);
*(_DWORD *)(v10 - 8) = v8 - 1;
}
if ( v8 <= 0 )
operator delete(v3);
}
}
a1->m_easingLabel->setString(a1->m_easingLabel, v9);
cocos2d::CCLabelBMFont::limitLabelWidth(
a1->m_easingLabel,
a1->m_easingControlScale * 150.0,
a1->m_easingControlScale * 0.7,
0.0);
v4 = (unsigned __int8 *)(v9 - 24);
if ( v9 - 24 != (const unsigned __int8 *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v5 = (unsigned int *)(v9 - 8);
do
v6 = __ldaxr(v5);
while ( __stlxr(v6 - 1, v5) );
}
else
{
v6 = *((_DWORD *)v9 - 2);
*((_DWORD *)v9 - 2) = v6 - 1;
}
if ( v6 <= 0 )
operator delete(v4);
}
}