//
// CommentCell::updateLabelValues from 0x3370e8 to 0x33714a (98 bytes)
//
// 2 xrefs:
// > CommentCell::incrementLikes @ 0x337166
// > CommentCell::incrementDislikes @ 0x337178
//
// 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 CommentCell::updateLabelValues(CommentCell *a1)
{
cocos2d::CCLabelBMFont *m_likeLabel; // r5
const char *m_likeCount; // r6
void (__fastcall *setString)(cocos2d::CCLabelBMFont *__hidden, const unsigned __int8 *); // r7
cocos2d::CCString *v5; // r0
const char *CString; // r0
cocos2d::CCSprite *m_iconSprite; // r4
void (__fastcall *setDisplayFrame)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // r5
cocos2d::CCSpriteFrameCache *v9; // r0
const char *v10; // r1
cocos2d::CCSpriteFrame *v11; // r0
m_likeLabel = a1->m_likeLabel;
if ( m_likeLabel )
{
m_likeCount = (const char *)a1->m_comment->m_likeCount;
setString = m_likeLabel->setString;
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", m_likeCount);
CString = cocos2d::CCString::getCString(v5);
setString(m_likeLabel, (const unsigned __int8 *)CString);
m_iconSprite = a1->m_iconSprite;
setDisplayFrame = m_iconSprite->setDisplayFrame;
v9 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
if ( (int)m_likeCount < 0 )
v10 = "GJ_dislikesIcon_001.png";
else
v10 = "GJ_likesIcon_001.png";
v11 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v9, v10);
setDisplayFrame(m_iconSprite, v11);
}
}