//
// SecretLayer2::updateMessageLabel from 0x100497020 to 0x10049706c (76 bytes)
//
// 13 xrefs:
// > SecretLayer2::onSubmit @ 0x100497f6c
// > SecretLayer2::onSubmit @ 0x100498069
// > SecretLayer2::onSubmit @ 0x10049814f
// > SecretLayer2::onSubmit @ 0x100498235
// > SecretLayer2::onSubmit @ 0x10049831b
// > SecretLayer2::onSubmit @ 0x1004983e6
// > SecretLayer2::onSubmit @ 0x100498489
// > SecretLayer2::onSubmit @ 0x100498571
// > SecretLayer2::onSubmit @ 0x10049860b
// > SecretLayer2::onSubmit @ 0x100498679
// > SecretLayer2::onSubmit @ 0x1004986e1
// > SecretLayer2::onSubmit @ 0x100498749
// > SecretLayer2::onSubmit @ 0x10049877b
//
// 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:30:49 +0000
//
__int64 __fastcall SecretLayer2::updateMessageLabel(__int64 a1, __int64 a2)
{
__int64 v3; // rdi
__int64 v4; // rsi
v3 = *(_QWORD *)(a1 + 464);
if ( (*(_BYTE *)a2 & 1) != 0 )
v4 = *(_QWORD *)(a2 + 16);
else
v4 = a2 + 1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 928LL))(v3, v4);
return cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(a1 + 464), 320.0, 0.60000002, 0.0);
}