//
// FriendsProfilePage::create from 0xa51208 to 0xa514f0 (744 bytes)
//
// 3 xrefs:
// > FriendsProfilePage::onSwitchList @ 0xa51554
// > ProfilePage::onFriends @ 0xa53440
// > ??> @ 0xcca90
//
// This function is hookable on this platform (idp: arm, 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 13:00:05 +0000
//
__int64 __fastcall FriendsProfilePage::create(int a1)
{
__int64 v2; // x19
v2 = operator new(0x3D0u);
memset((void *)v2, 0, 0x3D0u);
cocos2d::CCLayerColor::CCLayerColor((cocos2d::CCLayerColor *)v2);
*(_QWORD *)(v2 + 552) = 0;
*(_QWORD *)v2 = &off_1419A40;
*(_QWORD *)(v2 + 320) = off_1419F90;
*(_QWORD *)(v2 + 328) = &off_141A000;
*(_QWORD *)(v2 + 336) = off_141A018;
*(_QWORD *)(v2 + 344) = off_141A038;
*(_QWORD *)(v2 + 352) = off_141A060;
*(_QWORD *)(v2 + 408) = &off_141A090;
*(_QWORD *)(v2 + 432) = &off_141A110;
*(_QWORD *)(v2 + 544) = off_141A130;
*(_QWORD *)(v2 + 560) = 0;
*(_QWORD *)(v2 + 568) = 0;
*(_BYTE *)(v2 + 576) = 0;
*(_QWORD *)(v2 + 584) = 0;
*(_DWORD *)(v2 + 592) = 0;
*(_BYTE *)(v2 + 596) = 0;
*(_BYTE *)(v2 + 597) = 0;
*(_BYTE *)(v2 + 598) = 0;
*(_BYTE *)(v2 + 599) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v2 + 600));
*(_DWORD *)(v2 + 632) = -1;
*(_DWORD *)(v2 + 640) = -1;
*(_QWORD *)(v2 + 608) = 0;
*(_QWORD *)(v2 + 616) = 0;
*(_QWORD *)(v2 + 624) = 0;
*(_BYTE *)(v2 + 636) = 0;
*(_BYTE *)(v2 + 637) = 0;
*(_BYTE *)(v2 + 644) = 0;
*(_BYTE *)(v2 + 656) = 0;
*(_DWORD *)(v2 + 648) = 0;
*(_DWORD *)(v2 + 652) = 0;
*(_QWORD *)v2 = &off_14E5140;
*(_QWORD *)(v2 + 320) = &unk_14E56A8;
*(_QWORD *)(v2 + 328) = &off_14E5718;
*(_QWORD *)(v2 + 336) = off_14E5730;
*(_QWORD *)(v2 + 344) = off_14E5750;
*(_QWORD *)(v2 + 352) = off_14E5778;
*(_QWORD *)(v2 + 408) = &off_14E57A8;
*(_QWORD *)(v2 + 432) = &off_14E5828;
*(_QWORD *)(v2 + 544) = off_14E5848;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v2 + 660));
*(_DWORD *)(v2 + 676) = 0;
*(_DWORD *)(v2 + 680) = -1;
*(_QWORD *)(v2 + 688) = 0;
*(_QWORD *)(v2 + 696) = 0;
*(_DWORD *)(v2 + 668) = 0;
*(_DWORD *)(v2 + 672) = 0;
*(_DWORD *)(v2 + 704) = 0;
*(_DWORD *)(v2 + 708) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v2 + 712));
*(_BYTE *)(v2 + 771) = -1;
*(_QWORD *)(v2 + 720) = 0;
*(_BYTE *)(v2 + 768) = -106;
*(_BYTE *)(v2 + 769) = -106;
*(_BYTE *)(v2 + 770) = -106;
*(_QWORD *)(v2 + 728) = 0;
*(_QWORD *)(v2 + 736) = 0;
*(_QWORD *)(v2 + 744) = 0;
*(_QWORD *)(v2 + 752) = 0;
*(_QWORD *)(v2 + 760) = 0;
*(_DWORD *)(v2 + 816) = 0;
*(_QWORD *)v2 = &off_148C100;
*(_QWORD *)(v2 + 320) = off_148C6C8;
*(_QWORD *)(v2 + 328) = &off_148C738;
*(_QWORD *)(v2 + 336) = off_148C750;
*(_QWORD *)(v2 + 344) = off_148C770;
*(_QWORD *)(v2 + 352) = off_148C798;
*(_QWORD *)(v2 + 408) = &off_148C7C8;
*(_QWORD *)(v2 + 432) = &off_148C848;
*(_QWORD *)(v2 + 544) = off_148C868;
*(_QWORD *)(v2 + 776) = &off_148C8B0;
*(_QWORD *)(v2 + 784) = &off_148C8E0;
*(_QWORD *)(v2 + 792) = off_148C8F8;
*(_QWORD *)(v2 + 800) = &off_148C918;
*(_QWORD *)(v2 + 808) = off_148C930;
*(_QWORD *)(v2 + 824) = 0;
*(_QWORD *)(v2 + 832) = 0;
*(_QWORD *)(v2 + 840) = 0;
*(_QWORD *)(v2 + 848) = 0;
*(_QWORD *)(v2 + 856) = 0;
*(_QWORD *)(v2 + 864) = 0;
*(_QWORD *)(v2 + 872) = 0;
*(_QWORD *)(v2 + 880) = 0;
*(_QWORD *)(v2 + 888) = 0;
*(_QWORD *)(v2 + 896) = 0;
*(_QWORD *)(v2 + 904) = 0;
*(_QWORD *)(v2 + 912) = 0;
*(_BYTE *)(v2 + 920) = 0;
*(_QWORD *)(v2 + 928) = 0;
*(_QWORD *)(v2 + 936) = 0;
*(_BYTE *)(v2 + 944) = 0;
*(_QWORD *)(v2 + 952) = 0;
*(_QWORD *)(v2 + 960) = 0;
*(_BYTE *)(v2 + 968) = 0;
if ( (unsigned __int8)FriendsProfilePage::init(v2, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
return v2;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 16LL))(v2);
return 0;
}
}