//
// SetupCameraOffsetTrigger::updateEasingLabel from 0x140416f40 to 0x1404170da (410 bytes)
//
// 4 xrefs:
// > SetupCameraOffsetTrigger::init @ 0x14041663b
// > SetupCameraOffsetTrigger::onEasing @ 0x140416f21
// > SetupMGTrigger::init @ 0x1404281f0
// > ??> @ 0x1406d8f90
//
// 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
//
// Merged with: SetupCameraOffsetTrigger::updateEasingLabel, SetupMGTrigger::updateEasingLabel
// Hidden C++ exception states: #wind=1
void __fastcall SetupCameraOffsetTrigger::updateEasingLabel(__int64 a1)
{
unsigned __int64 v2; // rdi
int v3; // edx
__int64 v4; // rbx
void **v5; // rdx
void *v6; // rcx
void *Block[2]; // [rsp+20h] [rbp-58h] BYREF
__int128 v8; // [rsp+30h] [rbp-48h]
_BYTE v9[32]; // [rsp+40h] [rbp-38h] BYREF
*(_OWORD *)Block = 0;
*(_QWORD *)&v8 = 5;
v2 = 15;
*((_QWORD *)&v8 + 1) = 15;
LODWORD(Block[0]) = *(_DWORD *)"Mixed";
WORD2(Block[0]) = (unsigned __int8)aMixed[4];
v3 = *(_DWORD *)(a1 + 968);
if ( v3 != -99999 )
{
v4 = GameToolbox::easeToText((__int64)v9, v3);
if ( Block != (void **)v4 )
{
*(_QWORD *)&v8 = 0;
*((_QWORD *)&v8 + 1) = 15;
LOBYTE(Block[0]) = 0;
*(_OWORD *)Block = *(_OWORD *)v4;
v8 = *(_OWORD *)(v4 + 16);
*(_QWORD *)(v4 + 16) = 0;
*(_QWORD *)(v4 + 24) = 15;
*(_BYTE *)v4 = 0;
}
sub_14003A830((__int64)v9);
v2 = *((_QWORD *)&v8 + 1);
}
v5 = Block;
if ( v2 > 0xF )
v5 = (void **)Block[0];
(**(void (__fastcall ***)(__int64, void **))(*(_QWORD *)(a1 + 960) + 360LL))(*(_QWORD *)(a1 + 960) + 360LL, v5);
cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(a1 + 960), 150.0, 0.69999999, 0.0);
if ( *((_QWORD *)&v8 + 1) > 0xFu )
{
v6 = Block[0];
if ( (unsigned __int64)(*((_QWORD *)&v8 + 1) + 1LL) >= 0x1000 )
{
v6 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v6);
}
}