//
// ChallengeNode::create from 0x10039e430 to 0x10039e4c6 (150 bytes)
//
// 1 xrefs:
// > ChallengesPage::createChallengeNode @ 0x10039de45
//
// 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 *__fastcall ChallengeNode::create(GJChallengeItem *a1, ChallengesPage *a2, bool a3)
{
ChallengeNode *v4; // rbx
v4 = (ChallengeNode *)operator new(0x168u);
cocos2d::CCNode::CCNode((__int64)v4);
v4->__vftable = (ChallengeNode_vtbl *)off_100924240;
v4->m_challengeItem = nullptr;
sub_10028CC30(&v4->m_unkPoint);
v4->m_countdownLabel = nullptr;
v4->m_unloaded = 0;
if ( ChallengeNode::init(v4, a1, a2, a3) )
{
cocos2d::CCObject::autorelease(v4);
}
else
{
((void (__fastcall *)(ChallengeNode *))v4->~ChallengeNode_0)(v4);
return nullptr;
}
return v4;
}