//
// FriendsProfilePage::create from 0x5f452c to 0x5f47ac (640 bytes)
//
// 2 xrefs:
// > FriendsProfilePage::onSwitchList @ 0x5f47f2
// > ProfilePage::onFriends @ 0x5f5994
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:30 +0000
//
int *__fastcall FriendsProfilePage::create(int a1)
{
int *v2; // r4
int v3; // r3
int *v4; // r0
v2 = (int *)operator new(0x2B8u);
memset(v2, 0, 0x2B8u);
cocos2d::CCLayerColor::CCLayerColor((cocos2d::CCLayerColor *)v2);
*v2 = (int)&off_C86768;
v2[66] = (int)&off_C86A10;
v2[67] = (int)&off_C86A48;
v2[68] = (int)&off_C86A54;
v2[69] = (int)&off_C86A64;
v2[70] = (int)&off_C86A78;
v2[79] = (int)&off_C86A90;
v2[83] = (int)&off_C86AD0;
v2[110] = (int)&off_C86AE0;
v2[111] = 0;
v2[112] = 0;
v2[113] = 0;
*((_BYTE *)v2 + 456) = 0;
v2[115] = 0;
v2[116] = 0;
*((_BYTE *)v2 + 468) = 0;
*((_BYTE *)v2 + 469) = 0;
*((_BYTE *)v2 + 470) = 0;
*((_BYTE *)v2 + 471) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v2 + 118));
v2[120] = 0;
v2[121] = 0;
v2[122] = 0;
*((_BYTE *)v2 + 496) = 0;
*((_BYTE *)v2 + 497) = 0;
*((_BYTE *)v2 + 504) = 0;
*((_BYTE *)v2 + 516) = 0;
v2[123] = -1;
v2[125] = -1;
v2[127] = 0;
v2[128] = 0;
*v2 = (int)&off_CEC5E0;
v2[66] = (int)algn_CEC894;
v2[67] = (int)&off_CEC8CC;
v2[68] = (int)&off_CEC8D8;
v2[69] = (int)&off_CEC8E8;
v2[70] = (int)&off_CEC8FC;
v2[79] = (int)&off_CEC914;
v2[83] = (int)&off_CEC954;
v2[110] = (int)&off_CEC964;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v2 + 130));
v2[132] = 0;
v2[133] = 0;
v2[134] = 0;
v2[135] = -1;
v2[136] = 0;
v2[137] = 0;
v2[138] = 0;
v2[139] = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v2 + 140));
*((_BYTE *)v2 + 592) = -106;
*((_BYTE *)v2 + 593) = -106;
*((_BYTE *)v2 + 594) = -106;
*((_BYTE *)v2 + 595) = -1;
v2[142] = 0;
v2[143] = 0;
v2[144] = 0;
v2[145] = 0;
v2[146] = 0;
v2[147] = 0;
*v2 = (int)&off_CBFD08;
v2[154] = 0;
v2[66] = (int)&off_CBFFEC;
v2[155] = 0;
v2[67] = (int)&off_CC0024;
v2[156] = 0;
v2[68] = (int)&off_CC0030;
v2[157] = 0;
v2[69] = (int)&off_CC0040;
v2[158] = 0;
v2[70] = (int)&off_CC0054;
v2[159] = 0;
v2[79] = (int)&off_CC006C;
v2[160] = 0;
v2[83] = (int)&off_CC00AC;
v2[161] = 0;
v2[110] = (int)&off_CC00BC;
v2[149] = (int)&off_CC00E0;
v2[150] = (int)&off_CC00F8;
v2[151] = (int)&off_CC0104;
v2[152] = (int)&off_CC0114;
v2[153] = (int)&off_CC0120;
v2[162] = 0;
v2[163] = 0;
v2[164] = 0;
v2[165] = 0;
v2[166] = 0;
*((_BYTE *)v2 + 668) = 0;
v2[168] = 0;
v2[169] = 0;
*((_BYTE *)v2 + 680) = 0;
v2[171] = 0;
v2[172] = 0;
*((_BYTE *)v2 + 692) = 0;
if ( FriendsProfilePage::init((int)v2, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
v3 = *v2;
v4 = v2;
v2 = nullptr;
(*(void (__fastcall **)(int *))(v3 + 8))(v4);
}
return v2;
}