//
// SetupTriggerPopup::updateCustomEaseRateLabel from 0x14047dce0 to 0x14047dde1 (257 bytes)
//
// 3 xrefs:
// > SetupTriggerPopup::valuePopupClosed @ 0x14047d155
// > SetupTriggerPopup::createCustomEasingControls @ 0x14047d88b
// > ??> @ 0x1406db90c
//
// 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
//
// Hidden C++ exception states: #wind=1
void SetupTriggerPopup::updateCustomEaseRateLabel(SetupTriggerPopup *a1, int a2, float a3)
{
struct cocos2d::CCObject *v3; // rbx
cocos2d::CCString *v4; // rax
const char *CString; // rax
size_t v6; // r8
void **v7; // rdx
void *v8; // rcx
void *Block[2]; // [rsp+20h] [rbp-48h] BYREF
__int128 v10; // [rsp+30h] [rbp-38h]
v3 = cocos2d::CCDictionary::objectForKey(a1->m_customEasingLabels, a2);
if ( v3 )
{
v4 = cocos2d::CCString::createWithFormat("%.02f", a3);
CString = cocos2d::CCString::getCString(v4);
*(_OWORD *)Block = 0;
v10 = 0;
v6 = -1;
do
++v6;
while ( CString[v6] );
sub_14003A930(Block, CString, v6);
v7 = Block;
if ( *((_QWORD *)&v10 + 1) > 0xFu )
v7 = (void **)Block[0];
(**(void (__fastcall ***)(__int64, void **))&v3[6].m_uAutoReleaseCount)((__int64)&v3[6].m_uAutoReleaseCount, v7);
if ( *((_QWORD *)&v10 + 1) > 0xFu )
{
v8 = Block[0];
if ( (unsigned __int64)(*((_QWORD *)&v10 + 1) + 1LL) >= 0x1000 )
{
v8 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v8);
}
}
}