//
// ShareCommentLayer::updatePercentLabel from 0x90e1f0 to 0x90e2d0 (224 bytes)
//
// 3 xrefs:
// > ShareCommentLayer::onPercent @ 0x90e2dc
// > ShareCommentLayer::init @ 0x90f888
// > ??> @ 0xa3960
//
// This function is hookable on this platform (idp: arm, 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:57:14 +0000
//
__int64 __fastcall ShareCommentLayer::updatePercentLabel(ShareCommentLayer *this)
{
__int64 v2; // x2
__int64 v4; // x20
const char *v5; // x1
__int64 (__fastcall *v6)(__int64, __int64); // x19
cocos2d::CCString *v7; // x0
__int64 CString; // x0
v2 = *((_QWORD *)this + 98);
if ( *((_BYTE *)this + 801) )
{
(*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)v2 + 1024LL))(*((_QWORD *)this + 98), 0xFFFFFFFFLL);
(*(void (__fastcall **)(_QWORD, void *))(**((_QWORD **)this + 98) + 1072LL))(*((_QWORD *)this + 98), &unk_1152650);
v4 = *((_QWORD *)this + 98);
v5 = (const char *)*((unsigned int *)this + 201);
v6 = *(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 928LL);
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i%%", v5);
CString = cocos2d::CCString::getCString(v7);
return v6(v4, CString);
}
else
{
(*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)v2 + 1024LL))(*((_QWORD *)this + 98), 125);
(*(void (__fastcall **)(_QWORD, void *))(**((_QWORD **)this + 98) + 1072LL))(*((_QWORD *)this + 98), &unk_1152658);
return (*(__int64 (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 98) + 928LL))(*((_QWORD *)this + 98), "%");
}
}