//
// SetupTriggerPopup::updateCustomEaseRateLabel from 0x10023f080 to 0x10023f18e (270 bytes)
//
// 2 xrefs:
// > SetupTriggerPopup::valuePopupClosed @ 0x10023f06d
// > SetupTriggerPopup::createCustomEasingControls @ 0x10023f998
//
// 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 __fastcall SetupTriggerPopup::updateCustomEaseRateLabel(SetupTriggerPopup *a1, int a2, float a3)
{
cocos2d::CCObject *v3; // rax
cocos2d::CCObject *v4; // rbx
double v5; // xmm0_8
cocos2d::CCString *v6; // rax
const char *CString; // r15
size_t v8; // rax
size_t v9; // r14
char *v10; // r12
char *v11; // rsi
size_t v12; // r13
char v13; // [rsp+0h] [rbp-50h]
_QWORD __dst[2]; // [rsp+10h] [rbp-40h] BYREF
void *__p; // [rsp+20h] [rbp-30h]
v3 = cocos2d::CCDictionary::objectForKey(a1->m_customEasingLabels, a2);
if ( v3 )
{
v4 = v3;
v5 = a3;
v6 = (cocos2d::CCString *)sub_1007AB580("%.02f", v13);
CString = cocos2d::CCString::getCString(v6);
v8 = strlen(CString);
if ( v8 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100006BF0(v5);
v9 = v8;
if ( v8 >= 0x17 )
{
v12 = 26;
if ( (v8 | 7) != 0x17 )
v12 = (v8 | 7) + 1;
v10 = (char *)operator new(v12);
__p = v10;
__dst[0] = v12 + 1;
__dst[1] = v9;
}
else
{
LOBYTE(__dst[0]) = 2 * v8;
v10 = (char *)__dst + 1;
if ( !v8 )
{
BYTE1(__dst[0]) = 0;
if ( (__dst[0] & 1) != 0 )
{
LABEL_6:
v11 = (char *)__p;
goto LABEL_12;
}
LABEL_11:
v11 = (char *)__dst + 1;
LABEL_12:
((void (__fastcall *)(cocos2d::CCObject *, char *, double))v4->__vftable[11].acceptVisitor)(v4, v11, v5);
if ( (__dst[0] & 1) != 0 )
operator delete(__p);
return;
}
}
memmove(v10, CString, v9);
v10[v9] = 0;
if ( (__dst[0] & 1) != 0 )
goto LABEL_6;
goto LABEL_11;
}
}