//
// GJMessageCell::onViewMessage from 0x14015d3c0 to 0x14015d46a (170 bytes)
//
// 2 xrefs:
// > GJMessageCell::loadFromMessage @ 0x14015cc82
// > ??> @ 0x140917ba0
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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:27:23 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall GJMessageCell::onViewMessage(__int64 a1)
{
__int64 v2; // rdi
__int64 v3; // rcx
struct cocos2d::CCObject *v4; // rax
__int64 v5; // rax
void *v6; // [rsp+30h] [rbp+8h]
if ( *(_QWORD *)(a1 + 584) )
{
GJMessageCell::markAsRead();
v2 = *(int *)(*(_QWORD *)(a1 + 584) + 320LL);
v3 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v6 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v6);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v3 = *(_QWORD *)&qword_14090BFB0;
}
v4 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(v3 + 1248), v2);
if ( !v4 )
v4 = *(struct cocos2d::CCObject **)(a1 + 584);
v5 = GJMessagePopup::create(v4);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 1064LL))(v5);
}
}