//
// MessagesProfilePage::create from 0x5f0be4 to 0x5f0d8e (426 bytes)
//
// 3 xrefs:
// > MessagesProfilePage::onSentMessages @ 0x5f0dc6
// > MessagesProfilePage::onClose @ 0x5f0e2e
// > MessageThreadsPage::onLegacyMessages @ 0x745994
//
// 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:27 +0000
//
int *__fastcall MessagesProfilePage::create(MessagesProfilePage *this, bool a2)
{
char v2; // r6
int *v3; // r4
int v4; // r3
int *v5; // r0
v2 = (char)this;
v3 = (int *)operator new(0x264u);
cocos2d::CCLayerColor::CCLayerColor((cocos2d::CCLayerColor *)v3);
v3[111] = 0;
v3[112] = 0;
v3[113] = 0;
*v3 = (int)&off_C86768;
*((_BYTE *)v3 + 456) = 0;
v3[66] = (int)&off_C86A10;
v3[115] = 0;
v3[67] = (int)&off_C86A48;
v3[116] = 0;
v3[68] = (int)&off_C86A54;
*((_BYTE *)v3 + 468) = 0;
v3[69] = (int)&off_C86A64;
*((_BYTE *)v3 + 469) = 0;
v3[70] = (int)&off_C86A78;
*((_BYTE *)v3 + 470) = 0;
v3[79] = (int)&off_C86A90;
*((_BYTE *)v3 + 471) = 0;
v3[83] = (int)&off_C86AD0;
v3[110] = (int)&off_C86AE0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v3 + 118));
v3[123] = -1;
v3[125] = -1;
v3[127] = 0;
v3[128] = 0;
v3[120] = 0;
v3[121] = 0;
v3[122] = 0;
*((_BYTE *)v3 + 496) = 0;
*((_BYTE *)v3 + 497) = 0;
*((_BYTE *)v3 + 504) = 0;
*((_BYTE *)v3 + 516) = 0;
*v3 = (int)&off_CBF230;
*((_BYTE *)v3 + 536) = 0;
v3[66] = (int)&off_CBF4F8;
v3[135] = 0;
v3[67] = (int)&off_CBF530;
v3[136] = 0;
v3[68] = (int)&off_CBF53C;
v3[137] = 0;
v3[69] = (int)&off_CBF54C;
v3[138] = 0;
v3[70] = (int)&off_CBF560;
v3[139] = 0;
v3[79] = (int)&off_CBF578;
v3[140] = 0;
v3[83] = (int)&off_CBF5B8;
v3[141] = 0;
v3[110] = (int)&off_CBF5C8;
v3[130] = (int)&off_CBF5EC;
v3[131] = (int)&off_CBF5F8;
v3[132] = (int)&off_CBF608;
v3[133] = (int)&off_CBF614;
v3[142] = 0;
v3[143] = 0;
v3[144] = 0;
v3[145] = 0;
v3[147] = 0;
v3[148] = 0;
v3[149] = 0;
v3[150] = 0;
v3[151] = 0;
v3[152] = 0;
if ( MessagesProfilePage::init((MessagesProfilePage *)v3, v2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);
}
else
{
v4 = *v3;
v5 = v3;
v3 = nullptr;
(*(void (__fastcall **)(int *))(v4 + 8))(v5);
}
return v3;
}