//
// CommentCell::onLike from 0x100254ee0 to 0x100254fc5 (229 bytes)
//
// 1 xrefs:
// > CommentCell::loadFromComment @ 0x100248fda
//
// 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::onLike(CommentCell *a1, cocos2d::CCObject *a2)
{
GJComment *m_comment; // rax
_BOOL8 m_accountComment; // rcx
LikeItemType v4; // r14d
int v5; // r15d
GameLevelManager *v6; // rax
int v7; // r8d
int m_userID; // r12d
GameManager *v9; // rax
GJComment *v10; // rax
int m_accountID; // r12d
GJAccountManager *v12; // rax
LikeItemLayer *v13; // rax
m_comment = a1->m_comment;
if ( m_comment )
{
m_accountComment = a1->m_accountComment;
v4 = m_accountComment + 2;
v5 = *(&m_comment->m_levelID + 2 * m_accountComment);
v6 = GameLevelManager::sharedState();
if ( !GameLevelManager::hasLikedItemFullCheck(v6, v4, a1->m_comment->m_commentID, v5, v7) )
{
m_userID = a1->m_comment->m_userID;
v9 = GameManager::sharedState();
if ( m_userID != v9->m_playerUserID.random - v9->m_playerUserID.seed )
{
v10 = a1->m_comment;
m_accountID = v10->m_accountID;
if ( m_accountID )
{
v12 = GJAccountManager::sharedState();
if ( m_accountID == v12->m_accountID - v12->m_unkInt1 )
return;
v10 = a1->m_comment;
}
v13 = LikeItemLayer::create(v4, v10->m_commentID, v5);
v13->m_likeDelegate = &a1->LikeItemDelegate;
((void (__fastcall *)(LikeItemLayer *))v13->show)(v13);
}
}
}
}