//
// SetupMGTrigger::updateEasingLabel from 0x69a9d8 to 0x69ab28 (336 bytes)
//
// 2 xrefs:
// > SetupMGTrigger::onEasing @ 0x69ab6c
// > SetupMGTrigger::init @ 0x69b612
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:56:18 +0000
//
int __fastcall SetupMGTrigger::updateEasingLabel(SetupMGTrigger *this)
{
int v2; // r1
bool v3; // zf
int v4; // r3
int v5; // r0
unsigned int v6; // r3
unsigned int v7; // r0
char *v8; // r9
int v9; // r8
char *v10; // r0
int v11; // r2
size_t v12; // r2
int v13; // r0
unsigned int v14; // r1
void *v15; // r2
char *v16; // r1
int v18; // [sp+4h] [bp-20h] BYREF
unsigned int v19; // [sp+8h] [bp-1Ch]
void *v20; // [sp+Ch] [bp-18h]
int v21; // [sp+10h] [bp-14h] BYREF
unsigned int v22; // [sp+14h] [bp-10h]
void *v23; // [sp+18h] [bp-Ch]
v18 = 0;
v19 = 0;
v20 = nullptr;
std::string::__init(&v18, "Mixed", 5u);
v2 = *((_DWORD *)this + 182);
if ( v2 == -99999 )
goto LABEL_26;
GameToolbox::easeToText((GameToolbox *)&v21, v2);
v4 = v18 & 1;
v3 = v4 == 0;
if ( (v18 & 1) != 0 )
{
v4 = 0;
*(_BYTE *)v20 = 0;
}
else
{
LOBYTE(v18) = v4;
BYTE1(v18) = v4;
}
if ( !v3 )
v19 = v4;
if ( (v18 & 1) != 0 )
{
v5 = v19;
v6 = (v18 & 0xFFFFFFFE) - 1;
if ( v19 <= 0xA )
{
if ( (v18 & 0xFFFFFFFE) != 0xB )
goto LABEL_14;
goto LABEL_25;
}
}
else
{
v5 = (int)(unsigned __int8)v18 >> 1;
if ( v5 <= 10 )
goto LABEL_25;
v6 = 10;
}
v7 = (v5 + 16) & 0xFFFFFFF0;
if ( v7 - 1 != v6 )
{
if ( v7 != 11 )
{
v10 = (char *)operator new(v7);
v9 = v18 & 1;
if ( (v18 & 1) != 0 )
v8 = (char *)v20;
else
v8 = (char *)&v18 + 1;
LABEL_18:
if ( (v18 & 1) != 0 )
v11 = v19;
else
v11 = (int)(unsigned __int8)v18 >> 1;
v12 = v11 + 1;
if ( v12 )
memcpy(v10, v8, v12);
if ( v9 )
operator delete(v8);
goto LABEL_25;
}
LABEL_14:
v8 = (char *)v20;
v9 = 1;
v10 = (char *)&v18 + 1;
goto LABEL_18;
}
LABEL_25:
v13 = v21;
v14 = v22;
v15 = v23;
v21 = 0;
v22 = 0;
v23 = nullptr;
v18 = v13;
v19 = v14;
v20 = v15;
std::string::~string((int)&v21);
LABEL_26:
if ( (v18 & 1) != 0 )
v16 = (char *)v20;
else
v16 = (char *)&v18 + 1;
(*(void (__fastcall **)(_DWORD, char *, int))(**((_DWORD **)this + 181) + 464))(
*((_DWORD *)this + 181),
v16,
(unsigned __int8)v18 << 31);
cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 181), 150.0, 0.7, 0.0);
return std::string::~string((int)&v18);
}