//
// GJMessagePopup::dGJMessagePopup from 0x1403995d0 to 0x140399741 (369 bytes)
//
// 3 xrefs:
// > sub_1403AC540 @ 0x1403ac547
// > ??> @ 0x14077b048
// > ??> @ 0x1409231f8
//
// 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:31:14 +0000
//
// Hidden C++ exception states: #wind=1
char *__fastcall GJMessagePopup::dGJMessagePopup(char *Block, char a2)
{
char *v4; // rdi
char *v5; // rsi
__int64 v6; // rax
void *v7; // rax
cocos2d::CCObject *v8; // rcx
*(_QWORD *)Block = &GJMessagePopup::`vftable';
*((_QWORD *)Block + 40) = &GJMessagePopup::`vftable';
*((_QWORD *)Block + 41) = &GJMessagePopup::`vftable';
*((_QWORD *)Block + 42) = &GJMessagePopup::`vftable';
*((_QWORD *)Block + 43) = &GJMessagePopup::`vftable';
*((_QWORD *)Block + 44) = &GJMessagePopup::`vftable';
*((_QWORD *)Block + 51) = &GJMessagePopup::`vftable';
*((_QWORD *)Block + 54) = &GJMessagePopup::`vftable';
*((_QWORD *)Block + 68) = &GJMessagePopup::`vftable';
v4 = Block + 664;
*((_QWORD *)Block + 83) = &GJMessagePopup::`vftable';
*((_QWORD *)Block + 84) = &GJMessagePopup::`vftable';
*((_QWORD *)Block + 85) = &GJMessagePopup::`vftable';
v5 = Block + 688;
*((_QWORD *)Block + 86) = &GJMessagePopup::`vftable';
v6 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v7 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v7);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v6 = *(_QWORD *)&qword_14090BFB0;
}
if ( *(char **)(v6 + 1488) == v4 )
*(_QWORD *)(v6 + 1488) = 0;
if ( *(char **)(v6 + 1520) == v5 )
*(_QWORD *)(v6 + 1520) = 0;
v8 = *((cocos2d::CCObject **)Block + 89);
if ( v8 )
cocos2d::CCObject::release(v8);
FLAlertLayer::dFLAlertLayer((__int64)Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}