//
// FriendsProfilePage::create from 0x140213430 to 0x140213615 (485 bytes)
//
// 3 xrefs:
// > FriendsProfilePage::onSwitchList @ 0x140217012
// > ProfilePage::onFriends @ 0x14055984d
// > ??> @ 0x14091b62c
//
// 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:28:20 +0000
//
// Hidden C++ exception states: #wind=1
void *__fastcall FriendsProfilePage::create(unsigned int a1)
{
void *v2; // rdi
v2 = operator new(0x3D8u);
memset(v2, 0, 0x3D8u);
sub_1400ABC50((__int64)v2);
*(_QWORD *)v2 = &FriendsProfilePage::`vftable';
*((_QWORD *)v2 + 40) = &FriendsProfilePage::`vftable';
*((_QWORD *)v2 + 41) = &FriendsProfilePage::`vftable';
*((_QWORD *)v2 + 42) = &FriendsProfilePage::`vftable';
*((_QWORD *)v2 + 43) = &FriendsProfilePage::`vftable';
*((_QWORD *)v2 + 44) = &FriendsProfilePage::`vftable';
*((_QWORD *)v2 + 51) = &FriendsProfilePage::`vftable';
*((_QWORD *)v2 + 54) = &FriendsProfilePage::`vftable';
*((_QWORD *)v2 + 68) = &FriendsProfilePage::`vftable';
*((_QWORD *)v2 + 97) = &FriendsProfilePage::`vftable';
*((_QWORD *)v2 + 98) = &FriendsProfilePage::`vftable';
*((_QWORD *)v2 + 99) = &FriendsProfilePage::`vftable';
*((_QWORD *)v2 + 100) = &FriendsProfilePage::`vftable';
*((_QWORD *)v2 + 101) = &FriendsProfilePage::`vftable';
*((_DWORD *)v2 + 204) = 0;
*((_QWORD *)v2 + 103) = 0;
*((_QWORD *)v2 + 104) = 0;
*((_QWORD *)v2 + 105) = 0;
*((_QWORD *)v2 + 106) = 0;
*((_QWORD *)v2 + 107) = 0;
*((_QWORD *)v2 + 108) = 0;
*((_QWORD *)v2 + 109) = 0;
*((_OWORD *)v2 + 55) = 0;
*((_QWORD *)v2 + 112) = 0;
*((_QWORD *)v2 + 113) = 15;
*((_BYTE *)v2 + 880) = 0;
*((_QWORD *)v2 + 114) = 0;
*((_QWORD *)v2 + 115) = 0;
*((_BYTE *)v2 + 928) = 0;
*((_QWORD *)v2 + 117) = 0;
*((_QWORD *)v2 + 118) = 0;
*((_BYTE *)v2 + 952) = 0;
*((_QWORD *)v2 + 120) = 0;
*((_QWORD *)v2 + 121) = 0;
*((_BYTE *)v2 + 976) = 0;
if ( (unsigned __int8)FriendsProfilePage::init(v2, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
return v2;
}
else
{
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v2 + 8LL))(v2, 1);
return nullptr;
}
}