//
// GJMessageCell::onViewMessage from 0x426810 to 0x426846 (54 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:48:04 +0000
//
int __fastcall GJMessageCell::onViewMessage(int this, cocos2d::CCObject *a2)
{
int v2; // r4
GameLevelManager *v3; // r0
GameLevelManager *v4; // r0
GJMessagePopup *StoredUserMessage; // r0
GJUserMessage *v6; // r1
int v7; // r0
v2 = this;
if ( *(_DWORD *)(this + 432) )
{
v3 = (GameLevelManager *)GJMessageCell::markAsRead(this);
v4 = (GameLevelManager *)GameLevelManager::sharedState(v3);
StoredUserMessage = (GJMessagePopup *)GameLevelManager::getStoredUserMessage(
v4,
*(_DWORD *)(*(_DWORD *)(v2 + 432) + 264));
if ( !StoredUserMessage )
StoredUserMessage = *(GJMessagePopup **)(v2 + 432);
v7 = GJMessagePopup::create(StoredUserMessage, v6);
return (*(int (__fastcall **)(int))(*(_DWORD *)v7 + 656))(v7);
}
return this;
}