//
// SetupCameraRotatePopup::onEasingRate from 0x9abba0 to 0x9abd68 (456 bytes)
//
// 3 xrefs:
// > ??> @ 0x8e758
// > SetupCameraRotatePopup::init @ 0x9acc4c
// > ??> @ 0x122cd88
//
// 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 SetupCameraRotatePopup::onEasingRate(SetupCameraRotatePopup *a1, cocos2d::CCObject *a2)
{
float m_cameraEasingRate; // s8
ConfigureValuePopupDelegate *v3; // x22
__int64 v4; // x22
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_cameraEasingRate = a1->m_cameraEasingRate;
v3 = &a1->ConfigureValuePopupDelegate;
sub_D153B8((int)&v11, "Easing Rate");
sub_D153B8((int)&v12, &byte_F288A0);
v4 = ConfigureValuePopup::create((__int64)v3, m_cameraEasingRate, 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))(*(_QWORD *)v4 + 1288LL))(v4);
}