//
// ChallengeNode::create from 0x907b78 to 0x907c4c (212 bytes)
//
// 2 xrefs:
// > ChallengesPage::createChallengeNode @ 0x907d48
// > ??> @ 0xa6ab8
//
// 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
//
ChallengeNode *ChallengeNode::create(GJChallengeItem *a1, ChallengesPage *a2, bool a3)
{
ChallengeNode *v6; // x19
v6 = (ChallengeNode *)operator new(0x168u);
cocos2d::CCNode::CCNode(v6);
v6->m_challengeItem = nullptr;
v6->__vftable = (ChallengeNode_vtbl *)&off_11A8820;
cocos2d::CCPoint::CCPoint(&v6->m_unkPoint);
v6->m_countdownLabel = nullptr;
v6->m_unloaded = 0;
if ( ChallengeNode::init(v6, a1, a2, a3) )
{
cocos2d::CCObject::autorelease(v6);
return v6;
}
else
{
v6->~ChallengeNode_0(v6);
return nullptr;
}
}