//
// SetupTriggerPopup::onEaseRate from 0x9e3b4c to 0x9e3d28 (476 bytes)
//
// 3 xrefs:
// > ??> @ 0x51a80
// > SetupTriggerPopup::createEasingControls @ 0x9ea194
// > ??> @ 0x122aa08
//
// 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::onEaseRate(SetupTriggerPopup *a1, cocos2d::CCObject *a2)
{
float m_easingRate; // s8
ConfigureValuePopupDelegate *v3; // x21
__int64 v4; // x21
void *v5; // x0
void *v6; // x0
unsigned int *v7; // x1
int v8; // w2
unsigned int *v9; // x1
int v10; // w2
__int64 v11; // [xsp+58h] [xbp+58h] BYREF
__int64 v12; // [xsp+60h] [xbp+60h] BYREF
m_easingRate = a1->m_easingRate;
v3 = &a1->ConfigureValuePopupDelegate;
sub_D153B8((int)&v11, "Easing Rate");
sub_D153B8((int)&v12, &byte_F288A0);
v4 = ConfigureValuePopup::create((__int64)v3, m_easingRate, 0.1, 4.0, (__int64)&v11, (__int64)&v12, 0);
v5 = (void *)(v12 - 24);
if ( (__int64 *)(v12 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v7 = (unsigned int *)(v12 - 8);
do
v8 = __ldaxr(v7);
while ( __stlxr(v8 - 1, v7) );
}
else
{
v8 = *(_DWORD *)(v12 - 8);
*(_DWORD *)(v12 - 8) = v8 - 1;
}
if ( v8 <= 0 )
operator delete(v5);
}
v6 = (void *)(v11 - 24);
if ( (__int64 *)(v11 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v9 = (unsigned int *)(v11 - 8);
do
v10 = __ldaxr(v9);
while ( __stlxr(v10 - 1, v9) );
}
else
{
v10 = *(_DWORD *)(v11 - 8);
*(_DWORD *)(v11 - 8) = v10 - 1;
}
if ( v10 <= 0 )
operator delete(v6);
}
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 72LL))(v4, 85);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 1288LL))(v4);
}