//
// sub_1008DA020 from 0x1008da020 to 0x1008da0b9 (153 bytes)
//
// 0 xrefs:
//
// 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 12:37:43 +0000
//
void __fastcall sub_1008DA020(__int64 a1, int a2)
{
__int64 v2; // rcx
__int64 v3; // rax
__int64 v4; // rsi
__int64 v5; // rsi
if ( a2 >= 0 )
{
v2 = *(_QWORD *)(a1 + 360);
if ( (int)(-1431655765 * ((unsigned __int64)(*(_QWORD *)(a1 + 368) - v2) >> 3)) > a2 )
{
*(_DWORD *)(a1 + 384) = a2;
v3 = *(_QWORD *)(a1 + 400);
if ( v3 )
{
v4 = v2 + 24LL * (unsigned int)a2;
if ( (*(_BYTE *)v4 & 1) != 0 )
v5 = *(_QWORD *)(v4 + 16);
else
v5 = v4 + 1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 928LL))(v3, v5);
cocos2d::CCLabelBMFont::limitLabelWidth(
*(_QWORD *)(a1 + 400),
*(float *)(a1 + 476) + -24.0,
(__m128)0x3EE66666u,
(__m128)0x3E4CCCCDu);
}
}
}
}