//
// ChallengeNode::create from 0x600078 to 0x6000ea (114 bytes)
//
// 1 xrefs:
// > ChallengesPage::createChallengeNode @ 0x600182
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:54:40 +0000
//
int *__fastcall ChallengeNode::create(cocos2d::CCLabelBMFont **this, GJChallengeItem *a2, ChallengesPage *a3, bool a4)
{
int *v7; // r4
int v8; // r3
int *v9; // r0
v7 = (int *)operator new(0x120u);
cocos2d::CCNode::CCNode((cocos2d::CCNode *)v7);
v7[67] = 0;
*v7 = (int)&off_CC1888;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v7 + 68));
v7[70] = 0;
*((_BYTE *)v7 + 284) = 0;
if ( ChallengeNode::init((ChallengeNode *)v7, this, a2, (int)a3) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v7);
}
else
{
v8 = *v7;
v9 = v7;
v7 = nullptr;
(*(void (__fastcall **)(int *))(v8 + 8))(v9);
}
return v7;
}