//
// SetupCameraOffsetTrigger::updateEasingLabel from 0x1405ae3e0 to 0x1405ae5a9 (457 bytes)
//
// 4 xrefs:
// > SetupCameraOffsetTrigger::init @ 0x1405adac0
// > SetupCameraOffsetTrigger::onEasing @ 0x1405ae3c1
// > SetupMGTrigger::init @ 0x1405bd81d
// > ??> @ 0x14092d920
//
// 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:34:41 +0000
//
// Merged with: SetupCameraOffsetTrigger::updateEasingLabel, SetupMGTrigger::updateEasingLabel
// Hidden C++ exception states: #wind=1
void __fastcall SetupCameraOffsetTrigger::updateEasingLabel(__int64 a1)
{
int v2; // edx
__int64 v3; // rbx
void *v4; // rax
void **v5; // rdx
void *v6; // rcx
void *Block[2]; // [rsp+30h] [rbp-58h] BYREF
__m128i si128; // [rsp+40h] [rbp-48h]
_BYTE v9[32]; // [rsp+50h] [rbp-38h] BYREF
*(_OWORD *)Block = 0;
si128 = _mm_load_si128((const __m128i *)&xmmword_140836560);
LODWORD(Block[0]) = *(_DWORD *)"Mixed";
WORD2(Block[0]) = (unsigned __int8)aMixed[4];
v2 = *(_DWORD *)(a1 + 1032);
if ( v2 != -99999 )
{
v3 = GameToolbox::easeToText((__int64)v9, v2);
if ( Block != (void **)v3 )
{
if ( si128.m128i_i64[1] > 0xFuLL )
{
v4 = Block[0];
if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )
{
v4 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v4 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v4);
}
si128 = _mm_load_si128((const __m128i *)&Size);
LOBYTE(Block[0]) = 0;
*(_OWORD *)Block = *(_OWORD *)v3;
si128 = *(__m128i *)(v3 + 16);
*(_QWORD *)(v3 + 16) = 0;
*(_QWORD *)(v3 + 24) = 15;
*(_BYTE *)v3 = 0;
}
sub_14003D310((__int64)v9);
}
v5 = Block;
if ( si128.m128i_i64[1] > 0xFuLL )
v5 = (void **)Block[0];
(**(void (__fastcall ***)(__int64, void **))(*(_QWORD *)(a1 + 1024) + 360LL))(*(_QWORD *)(a1 + 1024) + 360LL, v5);
cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(a1 + 1024), 150.0, 0.69999999, 0.0);
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);
}
}