//
// GJMessageCell::onViewMessage from 0x61d83c to 0x61d890 (84 bytes)
//
// 3 xrefs:
// > ??> @ 0x41cb8
// > GJMessageCell::loadFromMessage @ 0x61cf14
// > ??> @ 0x122a148
//
// 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 GJMessageCell::onViewMessage(GJMessageCell *a1, cocos2d::CCObject *a2)
{
GameLevelManager *v3; // x0
GJUserMessage *StoredUserMessage; // x0
GJMessagePopup *v5; // x0
if ( a1->m_message )
{
GJMessageCell::markAsRead(a1);
v3 = GameLevelManager::sharedState();
StoredUserMessage = GameLevelManager::getStoredUserMessage(v3, a1->m_message->m_messageID);
if ( !StoredUserMessage )
StoredUserMessage = a1->m_message;
v5 = GJMessagePopup::create(StoredUserMessage);
v5->show(v5);
}
}