//
// ChallengesPage::dChallengesPage from 0x1000319e0 to 0x100031a94 (180 bytes)
//
// 4 xrefs:
// > j_ChallengesPage::dChallengesPage @ 0x100031a98
// > sub_100031A9C @ 0x100031aa0
// > sub_100031AA4 @ 0x100031aac
// > sub_100031AB8 @ 0x100031ac4
//
// 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
//
__int64 __fastcall ChallengesPage::dChallengesPage(GJChallengeDelegate *a1)
{
GJChallengeDelegate_vtbl *v2; // x8
cocos2d::CCObject *v3; // x0
cocos2d::CCObject *v4; // x0
a1->__vftable = (GJChallengeDelegate_vtbl *)off_100768060;
a1[40].__vftable = (GJChallengeDelegate_vtbl *)off_1007685A0;
a1[41].__vftable = (GJChallengeDelegate_vtbl *)&off_100768610;
a1[42].__vftable = (GJChallengeDelegate_vtbl *)off_100768628;
a1[43].__vftable = (GJChallengeDelegate_vtbl *)off_100768648;
a1[44].__vftable = (GJChallengeDelegate_vtbl *)off_100768668;
a1[51].__vftable = (GJChallengeDelegate_vtbl *)off_100768690;
a1[54].__vftable = (GJChallengeDelegate_vtbl *)off_100768710;
a1[79].__vftable = (GJChallengeDelegate_vtbl *)&off_100768730;
a1[80].__vftable = (GJChallengeDelegate_vtbl *)off_100768748;
a1[81].__vftable = (GJChallengeDelegate_vtbl *)&off_100768768;
if ( GameLevelManager::sharedState()->m_GJChallengeDelegate == &a1[80] )
GameLevelManager::sharedState()->m_GJChallengeDelegate = nullptr;
v2 = a1[86].__vftable;
if ( v2 )
v2[25].challengeStatusFailed = nullptr;
v3 = (cocos2d::CCObject *)a1[87].__vftable;
if ( v3 )
cocos2d::CCObject::release(v3);
v4 = (cocos2d::CCObject *)a1[82].__vftable;
if ( v4 )
cocos2d::CCObject::release(v4);
return FLAlertLayer::dFLAlertLayer(a1);
}