//
// CommentCell::incrementDislikes from 0x100255330 to 0x1002553d6 (166 bytes)
//
// 0 xrefs:
//
// 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 __fastcall CommentCell::incrementDislikes(CommentCell *a1)
{
char v1; // al
GJComment *m_comment; // rax
int m_likeCount; // r15d
cocos2d::CCLabelBMFont *m_likeLabel; // r14
cocos2d::CCString *v5; // rax
const char *CString; // rax
cocos2d::CCSprite *m_iconSprite; // rbx
cocos2d::CCSpriteFrameCache *v8; // rax
const char *v9; // rsi
cocos2d::CCSpriteFrame *v10; // rax
char v11; // [rsp-8h] [rbp-20h]
v11 = v1;
m_comment = a1->m_comment;
m_likeCount = m_comment->m_likeCount;
m_comment->m_likeCount = m_likeCount - 1;
m_likeLabel = a1->m_likeLabel;
if ( m_likeLabel )
{
v5 = (cocos2d::CCString *)sub_1007AB580("%i", v11);
CString = cocos2d::CCString::getCString(v5);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))m_likeLabel->setString)(m_likeLabel, CString);
m_iconSprite = a1->m_iconSprite;
v8 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v9 = "GJ_dislikesIcon_001.png";
if ( m_likeCount > 0 )
v9 = "GJ_likesIcon_001.png";
v10 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v8, v9);
((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_iconSprite->setDisplayFrame)(
m_iconSprite,
v10);
}
}