//
// sub_100980B10 from 0x100980b10 to 0x100980b9a (138 bytes)
//
// 1 xrefs:
// > sub_10097E2F0 @ 0x10097e600
//
// 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:39:00 +0000
//
__int64 __fastcall sub_100980B10(__int64 a1)
{
__int64 v1; // r14
char *v2; // rsi
__int64 result; // rax
char v4; // [rsp+8h] [rbp-28h] BYREF
char v5; // [rsp+9h] [rbp-27h] BYREF
void *__p; // [rsp+18h] [rbp-18h]
v1 = *(_QWORD *)(a1 + 752);
if ( v1 )
{
sub_100980BC0(&v4, a1 + 824);
if ( (v4 & 1) != 0 )
v2 = (char *)__p;
else
v2 = &v5;
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v1 + 928LL))(v1, v2);
if ( (v4 & 1) != 0 )
operator delete(__p);
return cocos2d::CCLabelBMFont::limitLabelWidth(
*(_QWORD *)(a1 + 752),
*(float *)(a1 + 668) + -150.0,
(__m128)0x3ECCCCCDu,
(__m128)0x3E4CCCCDu);
}
return result;
}