//
// ShareCommentLayer::updateCharCountLabel from 0x540d2c to 0x540dfc (208 bytes)
//
// 1 xrefs:
// > ShareCommentLayer::updateDescText @ 0x541352
//
// 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:52:19 +0000
//
int __fastcall ShareCommentLayer::updateCharCountLabel(ShareCommentLayer *this)
{
unsigned __int8 *v2; // r5
int v3; // r0
int v4; // r2
int v5; // r3
int v6; // r0
int v7; // r6
int v8; // s15
int v9; // r5
int v10; // r0
int v11; // r4
int (__fastcall *v12)(int, int); // r7
cocos2d::CCString *v13; // r0
int CString; // r0
v2 = (unsigned __int8 *)this + 560;
if ( *((_BYTE *)this + 544) )
{
v3 = EmoteSprite::maxEmotesComment(this);
v6 = EmoteSprite::effectiveLength(v2, v3, v4, v5);
}
else
{
v6 = EmoteSprite::characterCount((unsigned __int8 *)this + 560);
}
v7 = *((_DWORD *)this + 133);
v8 = v6;
v9 = v6;
v10 = *((_DWORD *)this + 146);
if ( (float)v8 >= (float)((float)v7 * 0.7) )
(*(void (**)(void))(*(_DWORD *)v10 + 512))();
else
(*(void (__fastcall **)(int, int))(*(_DWORD *)v10 + 512))(v10, 125);
(*(void (**)(void))(**((_DWORD **)this + 146) + 536))();
v11 = *((_DWORD *)this + 146);
v12 = *(int (__fastcall **)(int, int))(*(_DWORD *)v11 + 464);
v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)(v7 - v9));
CString = cocos2d::CCString::getCString(v13);
return v12(v11, CString);
}