//
// MessagesProfilePage::dMessagesProfilePage from 0x1404755f0 to 0x140475786 (406 bytes)
//
// 3 xrefs:
// > sub_140477BA0 @ 0x140477ba7
// > ??> @ 0x1407b4a10
// > ??> @ 0x14092834c
//
// 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:32:40 +0000
//
// Hidden C++ exception states: #wind=1
char *__fastcall MessagesProfilePage::dMessagesProfilePage(char *Block, char a2)
{
char *v4; // rsi
char *v5; // rdi
__int64 v6; // rax
void *v7; // rax
cocos2d::CCNotificationCenter *v8; // rax
cocos2d::CCObject *v9; // rcx
*(_QWORD *)Block = &MessagesProfilePage::`vftable';
*((_QWORD *)Block + 40) = &MessagesProfilePage::`vftable';
*((_QWORD *)Block + 41) = &MessagesProfilePage::`vftable';
*((_QWORD *)Block + 42) = &MessagesProfilePage::`vftable';
*((_QWORD *)Block + 43) = &MessagesProfilePage::`vftable';
*((_QWORD *)Block + 44) = &MessagesProfilePage::`vftable';
*((_QWORD *)Block + 51) = &MessagesProfilePage::`vftable';
*((_QWORD *)Block + 54) = &MessagesProfilePage::`vftable';
*((_QWORD *)Block + 68) = &MessagesProfilePage::`vftable';
*((_QWORD *)Block + 83) = &MessagesProfilePage::`vftable';
v4 = Block + 672;
*((_QWORD *)Block + 84) = &MessagesProfilePage::`vftable';
*((_QWORD *)Block + 85) = &MessagesProfilePage::`vftable';
v5 = Block + 688;
*((_QWORD *)Block + 86) = &MessagesProfilePage::`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 + 1512) == v5 )
*(_QWORD *)(v6 + 1512) = 0;
if ( *(char **)(v6 + 1488) == v4 )
*(_QWORD *)(v6 + 1488) = 0;
v8 = (cocos2d::CCNotificationCenter *)cocos2d::CCNotificationCenter::sharedNotificationCenter(0);
cocos2d::CCNotificationCenter::removeObserver(
v8,
(struct cocos2d::CCObject *)Block,
"MessageSelectionChangedNotification");
v9 = *((cocos2d::CCObject **)Block + 95);
if ( v9 )
cocos2d::CCObject::release(v9);
sub_14003D310((__int64)(Block + 704));
FLAlertLayer::dFLAlertLayer((__int64)Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}