//
// ChallengesPage::create from 0x100031ad0 to 0x100031b94 (196 bytes)
//
// 1 xrefs:
// > CreatorLayer::onChallenge @ 0x1000b6144
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
ChallengesPage *__fastcall ChallengesPage::create()
{
char *v0; // x19
v0 = (char *)operator new(0x2C0u);
FLAlertLayer::FLAlertLayer((FLAlertLayer *)v0);
*(_QWORD *)v0 = off_100768060;
*((_QWORD *)v0 + 40) = off_1007685A0;
*((_QWORD *)v0 + 41) = &off_100768610;
*((_QWORD *)v0 + 42) = off_100768628;
*((_QWORD *)v0 + 43) = off_100768648;
*((_QWORD *)v0 + 44) = off_100768668;
*((_QWORD *)v0 + 51) = off_100768690;
*((_QWORD *)v0 + 54) = off_100768710;
*((_QWORD *)v0 + 79) = &off_100768730;
*((_QWORD *)v0 + 80) = off_100768748;
*((_QWORD *)v0 + 81) = &off_100768768;
*((_QWORD *)v0 + 82) = 0;
*((_WORD *)v0 + 340) = 0;
*(_OWORD *)(v0 + 664) = 0u;
*((_OWORD *)v0 + 43) = 0u;
if ( ChallengesPage::init((ChallengesPage *)v0) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v0 + 16LL))(v0);
return nullptr;
}
return (ChallengesPage *)v0;
}