//
// ChallengeNode::create from 0x100387ec0 to 0x100387f56 (150 bytes)
//
// 1 xrefs:
// > ChallengesPage::createChallengeNode @ 0x100387865
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 12:29:10 +0000
//
_QWORD *__fastcall ChallengeNode::create(__int64 a1, __int64 a2, unsigned __int8 a3)
{
_QWORD *v4; // rbx
v4 = operator new(0x168u);
cocos2d::CCNode::CCNode((__int64)v4);
*v4 = off_100B2C7E8;
v4[41] = 0;
sub_1002782A0(v4 + 42);
v4[43] = 0;
*((_BYTE *)v4 + 352) = 0;
if ( (unsigned __int8)ChallengeNode::init(v4, a1, a2, a3) )
{
cocos2d::CCObject::autorelease(v4);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v4 + 16LL))(v4);
return nullptr;
}
return v4;
}