//
// SetupTriggerPopup::updateCustomEaseRateLabel from 0x1002246e0 to 0x1002247ee (270 bytes)
//
// 3 xrefs:
// > SetupTriggerPopup::valuePopupClosed @ 0x1002246cd
// > SetupTriggerPopup::createCustomEasingControls @ 0x10022504c
// > EasingSelectPopup::valueDidChange @ 0x1008dd8ef
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:27:04 +0000
//
void __fastcall SetupTriggerPopup::updateCustomEaseRateLabel(__int64 a1, float a2)
{
__int64 v2; // rax
__int64 v3; // rbx
double v4; // xmm0_8
__int64 v5; // rax
const char *CString; // r15
size_t v7; // rax
size_t v8; // r14
char *v9; // r12
char *v10; // rsi
size_t v11; // r13
char v12; // [rsp+0h] [rbp-50h]
_QWORD __dst[2]; // [rsp+10h] [rbp-40h] BYREF
void *__p; // [rsp+20h] [rbp-30h]
v2 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 944));
if ( v2 )
{
v3 = v2;
v4 = a2;
v5 = sub_10088E820("%.02f", v12);
CString = (const char *)cocos2d::CCString::getCString(v5);
v7 = strlen(CString);
if ( v7 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100003630();
v8 = v7;
if ( v7 >= 0x17 )
{
v11 = 26;
if ( (v7 | 7) != 0x17 )
v11 = (v7 | 7) + 1;
v9 = (char *)operator new(v11);
__p = v9;
__dst[0] = v11 + 1;
__dst[1] = v8;
}
else
{
LOBYTE(__dst[0]) = 2 * v7;
v9 = (char *)__dst + 1;
if ( !v7 )
{
BYTE1(__dst[0]) = 0;
if ( (__dst[0] & 1) != 0 )
{
LABEL_6:
v10 = (char *)__p;
goto LABEL_12;
}
LABEL_11:
v10 = (char *)__dst + 1;
LABEL_12:
(*(void (__fastcall **)(__int64, char *, double))(*(_QWORD *)v3 + 928LL))(v3, v10, v4);
if ( (__dst[0] & 1) != 0 )
operator delete(__p);
return;
}
}
memmove(v9, CString, v8);
v9[v8] = 0;
if ( (__dst[0] & 1) != 0 )
goto LABEL_6;
goto LABEL_11;
}
}