//
// CommentCell::onLike from 0x100110bb8 to 0x100110c98 (224 bytes)
//
// 1 xrefs:
// > CommentCell::loadFromComment @ 0x100107138
//
// 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)
{
LikeItemType v2; // w20
GJComment *m_comment; // x8
__int64 v4; // x9
int v6; // w21
GameLevelManager *v7; // x0
int v8; // w4
int m_userID; // w22
GameManager *v10; // x0
GJComment *v11; // x8
int m_accountID; // w22
GJAccountManager *v13; // x0
LikeItemLayer *v14; // x0
if ( a1->m_accountComment )
v2 = AccountComment;
else
v2 = 2;
m_comment = a1->m_comment;
v4 = 380;
if ( a1->m_accountComment )
v4 = 388;
if ( m_comment )
{
v6 = *(_DWORD *)((char *)&m_comment->__vftable + v4);
v7 = GameLevelManager::sharedState();
if ( !GameLevelManager::hasLikedItemFullCheck(v7, v2, a1->m_comment->m_commentID, v6, v8) )
{
m_userID = a1->m_comment->m_userID;
v10 = GameManager::sharedState();
if ( m_userID != v10->m_playerUserID.random - v10->m_playerUserID.seed )
{
v11 = a1->m_comment;
m_accountID = v11->m_accountID;
if ( m_accountID )
{
v13 = GJAccountManager::sharedState();
if ( m_accountID == v13->m_accountID - v13->m_unkInt1 )
return;
v11 = a1->m_comment;
}
v14 = LikeItemLayer::create(v2, v11->m_commentID, v6);
v14->m_likeDelegate = &a1->LikeItemDelegate;
((void (__fastcall *)(LikeItemLayer *))v14->show)(v14);
}
}
}
}