//
// ShareCommentLayer::updatePercentLabel from 0x14048e190 to 0x14048e264 (212 bytes)
//
// 5 xrefs:
// > ShareCommentLayer::init @ 0x14048d8a4
// > ShareCommentLayer::onPercent @ 0x14048e180
// > ??> @ 0x1406a6bd4
// > ??> @ 0x1406a6be4
// > ??> @ 0x1406dbf6c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void ShareCommentLayer::updatePercentLabel(ShareCommentLayer *a1)
{
cocos2d::CCRGBAProtocol *v2; // rcx
cocos2d::CCRGBAProtocol_vtbl *v3; // rax
char v4; // dl
cocos2d::CCLabelBMFont *m_percentLabel; // rbx
cocos2d::CCLabelProtocol_vtbl *v6; // rdi
cocos2d::CCString *v7; // rax
const char *CString; // rdx
char v9; // dl
v2 = &a1->m_percentLabel->cocos2d::CCRGBAProtocol;
v3 = v2->__vftable;
if ( a1->m_percentEnabled )
{
v4 = -1;
v3->setOpacity(v2, v4);
a1->m_percentLabel->setColor(&a1->m_percentLabel->cocos2d::CCRGBAProtocol, &stru_140529C80);
m_percentLabel = a1->m_percentLabel;
v6 = m_percentLabel->cocos2d::CCLabelProtocol::__vftable;
v7 = cocos2d::CCString::createWithFormat("%i%%", a1->m_percent);
CString = cocos2d::CCString::getCString(v7);
v6->setString(&m_percentLabel->cocos2d::CCLabelProtocol, CString);
}
else
{
v9 = 125;
v3->setOpacity(v2, v9);
a1->m_percentLabel->setColor(&a1->m_percentLabel->cocos2d::CCRGBAProtocol, &stru_140529C78);
a1->m_percentLabel->setString(&a1->m_percentLabel->cocos2d::CCLabelProtocol, "%");
}
}