//
// ShareCommentLayer::updatePercentLabel from 0x1006b2870 to 0x1006b2927 (183 bytes)
//
// 0 xrefs:
//
// 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:35:25 +0000
//
__int64 __fastcall ShareCommentLayer::updatePercentLabel(__int64 a1)
{
__int64 v2; // rdi
void (__fastcall *v3)(__int64, __int64); // rax
__int64 v4; // r14
__int64 v5; // rax
__int64 CString; // rax
char v8; // [rsp+0h] [rbp-10h]
v2 = *(_QWORD *)(a1 + 784);
v3 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 1024LL);
if ( *(_BYTE *)(a1 + 801) == 1 )
{
v3(v2, 255);
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 784) + 1072LL))(*(_QWORD *)(a1 + 784), &unk_100A107AC);
v4 = *(_QWORD *)(a1 + 784);
v5 = sub_10088E820("%i%%", v8);
CString = cocos2d::CCString::getCString(v5);
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 928LL))(v4, CString);
}
else
{
v3(v2, 125);
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 784) + 1072LL))(*(_QWORD *)(a1 + 784), &unk_100A107AF);
return (*(__int64 (__fastcall **)(_QWORD, const std::string::value_type *))(**(_QWORD **)(a1 + 784) + 928LL))(
*(_QWORD *)(a1 + 784),
"%");
}
}