//
// ShareCommentLayer::updatePercentLabel from 0x540c90 to 0x540d0a (122 bytes)
//
// 2 xrefs:
// > ShareCommentLayer::onPercent @ 0x540d28
// > ShareCommentLayer::init @ 0x541984
//
// 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::updatePercentLabel(ShareCommentLayer *this)
{
int v2; // r3
int v3; // r0
int v4; // r5
int (__fastcall *v5)(int, const char *); // r6
cocos2d::CCString *v6; // r0
const char *CString; // r0
int (__fastcall *v8)(int, const char *); // r3
const char *v9; // r1
int v10; // r0
v2 = *((unsigned __int8 *)this + 597);
v3 = *((_DWORD *)this + 147);
if ( v2 )
{
(*(void (__fastcall **)(int, int))(*(_DWORD *)v3 + 512))(v3, 255);
(*(void (__fastcall **)(_DWORD, void *))(**((_DWORD **)this + 147) + 536))(*((_DWORD *)this + 147), &unk_BECF60);
v4 = *((_DWORD *)this + 147);
v5 = *(int (__fastcall **)(int, const char *))(*(_DWORD *)v4 + 464);
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i%%",
*((const char **)this + 150));
CString = (const char *)cocos2d::CCString::getCString(v6);
v8 = v5;
v9 = CString;
v10 = v4;
}
else
{
(*(void (__fastcall **)(int, int))(*(_DWORD *)v3 + 512))(v3, 125);
(*(void (__fastcall **)(_DWORD, void *))(**((_DWORD **)this + 147) + 536))(*((_DWORD *)this + 147), &unk_BECF63);
v10 = *((_DWORD *)this + 147);
v9 = "%";
v8 = *(int (__fastcall **)(int, const char *))(*(_DWORD *)v10 + 464);
}
return v8(v10, v9);
}