//
// SetupTriggerPopup::updateCustomEaseLabel from 0x140615780 to 0x140615977 (503 bytes)
//
// 4 xrefs:
// > EasingSelectPopup::onCell @ 0x140176805
// > SetupTriggerPopup::createCustomEasingControls @ 0x1406154db
// > SetupTriggerPopup::onCustomEaseArrow @ 0x14061573b
// > ??> @ 0x1409300e0
//
// 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 11:35:17 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall SetupTriggerPopup::updateCustomEaseLabel(__int64 a1, int a2, int a3)
{
__int64 v3; // rdi
__int64 v5; // rbx
void *v6; // rax
struct cocos2d::CCObject *v7; // rax
cocos2d::CCLabelBMFont *v8; // rbx
void **v9; // rdx
struct cocos2d::CCObject *v10; // rax
float v11; // xmm1_4
void *v12; // rcx
void *Block[2]; // [rsp+30h] [rbp-68h] BYREF
__m128i si128; // [rsp+40h] [rbp-58h]
_BYTE v15[32]; // [rsp+50h] [rbp-48h] BYREF
v3 = a2;
*(_OWORD *)Block = 0;
si128 = _mm_load_si128((const __m128i *)&xmmword_140836560);
LODWORD(Block[0]) = *(_DWORD *)"Mixed";
WORD2(Block[0]) = (unsigned __int8)aMixed[4];
if ( a3 != -99999 )
{
v5 = GameToolbox::easeToText((__int64)v15, a3);
if ( Block != (void **)v5 )
{
if ( si128.m128i_i64[1] > 0xFuLL )
{
v6 = Block[0];
if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )
{
v6 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v6);
}
si128 = _mm_load_si128((const __m128i *)&Size);
LOBYTE(Block[0]) = 0;
*(_OWORD *)Block = *(_OWORD *)v5;
si128 = *(__m128i *)(v5 + 16);
*(_QWORD *)(v5 + 16) = 0;
*(_QWORD *)(v5 + 24) = 15;
*(_BYTE *)v5 = 0;
}
sub_14003D310((__int64)v15);
}
v7 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 928), v3);
v8 = v7;
if ( v7 )
{
v9 = Block;
if ( si128.m128i_i64[1] > 0xFuLL )
v9 = (void **)Block[0];
(**((void (__fastcall ***)(__int64, void **))v7 + 45))((__int64)v7 + 360, v9);
v10 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 944), v3);
if ( v10 )
v11 = *((float *)v10 + 14);
else
v11 = 1.0;
cocos2d::CCLabelBMFont::limitLabelWidth(v8, v11 * 150.0, v11 * 0.69999999, 0.0);
}
if ( si128.m128i_i64[1] > 0xFuLL )
{
v12 = Block[0];
if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )
{
v12 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v12 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v12);
}
}