//
// ProfilePage::create from 0x1405506e0 to 0x1405508ef (527 bytes)
//
// 28 xrefs:
// > AccountReviewPopup::onOpenProfile @ 0x1400b34cc
// > AccountReviewPopup::jumpTo @ 0x1400bc0bc
// > ReportQueuePopup::onOpenAuthor @ 0x1400c9516
// > MessageThreadsPage::onClose @ 0x1400d9263
// > ThreadViewPopup::onSenderProfile @ 0x1400dc6f5
// > FriendPickerPopup::onShowProfile @ 0x1400e8831
// > ThreadOptionsPopup::onViewProfile @ 0x1400f5a49
// > InvitesPopup::onViewInviter @ 0x1400f91ae
// > ThreadRequestPopup::onViewProfile @ 0x1400ffe74
// > LevelCell::onViewProfile @ 0x14014d53d
// > CommentCell::onViewProfile @ 0x140154ce8
// > GJScoreCell::onViewProfile @ 0x1401569d1
// > GJCompactUserCell::onViewProfile @ 0x140157b9c
// > GJThreadCell::onViewProfile @ 0x14015ab59
// > GJNotificationCell::onViewTarget @ 0x14015c712
// > GJMessageCell::onViewProfile @ 0x14015d55c
// > LevelListCell::onViewProfile @ 0x14015fa87
// > EditorSoundConfigCell::onViewProfile @ 0x1401919bc
// > EditorSoundConfigInfoLayer::onViewProfile @ 0x14019655f
// > FRequestProfilePage::onClose @ 0x140211e2f
// > FriendsProfilePage::onClose @ 0x1402170c4
// > ItemInfoPopup::onCredit @ 0x140386390
// > InfoLayer::onMore @ 0x1403d069a
// > LevelInfoLayer::onViewProfile @ 0x14042466f
// > LevelListLayer::onViewProfile @ 0x14042f55c
// > MenuLayer::onMyProfile @ 0x140474339
// > NotificationsPage::onClose @ 0x140478767
// > ??> @ 0x14092bde4
//
// 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:34:08 +0000
//
// Hidden C++ exception states: #wind=1
char *__fastcall ProfilePage::create(unsigned int a1, unsigned __int8 a2)
{
char *v4; // rsi
v4 = (char *)operator new(0x388u);
FLAlertLayer::FLAlertLayer((__int64)v4);
*(_QWORD *)v4 = &ProfilePage::`vftable';
*((_QWORD *)v4 + 40) = &ProfilePage::`vftable';
*((_QWORD *)v4 + 41) = &ProfilePage::`vftable';
*((_QWORD *)v4 + 42) = &ProfilePage::`vftable';
*((_QWORD *)v4 + 43) = &ProfilePage::`vftable';
*((_QWORD *)v4 + 44) = &ProfilePage::`vftable';
*((_QWORD *)v4 + 51) = &ProfilePage::`vftable';
*((_QWORD *)v4 + 54) = &ProfilePage::`vftable';
*((_QWORD *)v4 + 68) = &ProfilePage::`vftable';
*((_QWORD *)v4 + 83) = &ProfilePage::`vftable';
*((_QWORD *)v4 + 84) = &ProfilePage::`vftable';
*((_QWORD *)v4 + 85) = &ProfilePage::`vftable';
*((_QWORD *)v4 + 86) = &ProfilePage::`vftable';
*((_QWORD *)v4 + 87) = &ProfilePage::`vftable';
*((_QWORD *)v4 + 88) = &ProfilePage::`vftable';
*((_QWORD *)v4 + 89) = &ProfilePage::`vftable';
*((_QWORD *)v4 + 90) = &ProfilePage::`vftable';
*((_QWORD *)v4 + 91) = 0;
*((_DWORD *)v4 + 184) = 0;
v4[740] = 0;
*(_OWORD *)(v4 + 744) = 0;
*((_QWORD *)v4 + 95) = 0;
*((_QWORD *)v4 + 96) = 15;
v4[744] = 0;
*((_QWORD *)v4 + 97) = 0;
*((_QWORD *)v4 + 98) = 0;
*((_QWORD *)v4 + 99) = 0;
*((_QWORD *)v4 + 100) = 0;
*((_QWORD *)v4 + 101) = 0;
*((_QWORD *)v4 + 102) = 0;
*((_QWORD *)v4 + 103) = 0;
v4[832] = 0;
*((_QWORD *)v4 + 105) = 0;
*((_QWORD *)v4 + 106) = 0;
*((_QWORD *)v4 + 107) = 0;
*((_QWORD *)v4 + 108) = 0;
*((_QWORD *)v4 + 109) = 0;
*((_QWORD *)v4 + 110) = 0;
*((_QWORD *)v4 + 111) = 0;
*((_DWORD *)v4 + 224) = 0;
if ( (unsigned __int8)ProfilePage::init(v4, a1, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
return v4;
}
else
{
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v4 + 8LL))(v4, 1);
return nullptr;
}
}