//
// ChallengesPage::create from 0x5ff538 to 0x5ff6aa (370 bytes)
//
// 2 xrefs:
// > PauseLayer::onSideButtonPressed @ 0x48e684
// > CreatorLayer::onChallenge @ 0x49367e
//
// 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:39 +0000
//
int *__fastcall ChallengesPage::create(ChallengesPage *this)
{
int *v1; // r4
int v2; // r3
int *v3; // r0
v1 = (int *)operator new(0x22Cu);
cocos2d::CCLayerColor::CCLayerColor((cocos2d::CCLayerColor *)v1);
v1[111] = 0;
v1[112] = 0;
v1[113] = 0;
*v1 = (int)&off_C86768;
*((_BYTE *)v1 + 456) = 0;
v1[66] = (int)&off_C86A10;
v1[115] = 0;
v1[67] = (int)&off_C86A48;
v1[116] = 0;
v1[68] = (int)&off_C86A54;
*((_BYTE *)v1 + 468) = 0;
v1[69] = (int)&off_C86A64;
*((_BYTE *)v1 + 469) = 0;
v1[70] = (int)&off_C86A78;
*((_BYTE *)v1 + 470) = 0;
v1[79] = (int)&off_C86A90;
*((_BYTE *)v1 + 471) = 0;
v1[83] = (int)&off_C86AD0;
v1[110] = (int)&off_C86AE0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v1 + 118));
v1[123] = -1;
v1[125] = -1;
v1[127] = 0;
v1[128] = 0;
v1[120] = 0;
v1[121] = 0;
v1[122] = 0;
*((_BYTE *)v1 + 496) = 0;
*((_BYTE *)v1 + 497) = 0;
*((_BYTE *)v1 + 504) = 0;
*((_BYTE *)v1 + 516) = 0;
*v1 = (int)&off_CC14B0;
v1[133] = 0;
v1[66] = (int)&off_CC1768;
v1[134] = 0;
v1[67] = (int)&off_CC17A0;
v1[135] = 0;
v1[68] = (int)&off_CC17AC;
*((_BYTE *)v1 + 544) = 0;
v1[69] = (int)&off_CC17BC;
*((_BYTE *)v1 + 545) = 0;
v1[70] = (int)&off_CC17D0;
v1[137] = 0;
v1[79] = (int)&off_CC17E8;
v1[138] = 0;
v1[83] = (int)&off_CC1828;
v1[110] = (int)&off_CC1838;
v1[130] = (int)&off_CC185C;
v1[131] = (int)&off_CC1868;
v1[132] = (int)&off_CC1878;
if ( ChallengesPage::init((ChallengesPage *)v1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
}
else
{
v2 = *v1;
v3 = v1;
v1 = nullptr;
(*(void (__fastcall **)(int *))(v2 + 8))(v3);
}
return v1;
}