//
// ChallengeNode::create from 0xa63620 to 0xa636f4 (212 bytes)
//
// 2 xrefs:
// > ChallengesPage::createChallengeNode @ 0xa637f0
// > ??> @ 0xdade8
//
// This function is hookable on this platform (idp: arm, 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 13:00:16 +0000
//
__int64 __fastcall ChallengeNode::create(cocos2d::CCLabelBMFont **this, GJChallengeItem *a2, ChallengesPage *a3)
{
unsigned __int8 v5; // w20
__int64 v6; // x19
v5 = (unsigned __int8)a3;
v6 = operator new(0x168u);
cocos2d::CCNode::CCNode((cocos2d::CCNode *)v6);
*(_QWORD *)(v6 + 328) = 0;
*(_QWORD *)v6 = &off_148F7E0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v6 + 336));
*(_QWORD *)(v6 + 344) = 0;
*(_BYTE *)(v6 + 352) = 0;
if ( (unsigned __int8)ChallengeNode::init((ChallengeNode *)v6, this, a2, v5) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);
return v6;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 16LL))(v6);
return 0;
}
}