//
// GJChallengeItem::create from 0x1003decc8 to 0x1003deda4 (220 bytes)
//
// 2 xrefs:
// > GJChallengeItem::createFromString @ 0x1003dec50
// > GJChallengeItem::create_1 @ 0x1003dee00
//
// 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 11:04:20 +0000
//
char *__fastcall GJChallengeItem::create(int a1, int a2, int a3, int a4, __int64 a5)
{
char *v10; // x19
std::string __p; // [xsp+0h] [xbp-50h] BYREF
v10 = (char *)operator new(0x88u);
cocos2d::CCObject::CCObject((__int64)v10);
*(_QWORD *)v10 = off_100948910;
*((_DWORD *)v10 + 26) = 0;
*((_QWORD *)v10 + 15) = 0;
*((_QWORD *)v10 + 16) = 0;
*((_QWORD *)v10 + 14) = 0;
*(_OWORD *)(v10 + 56) = 0u;
*(_OWORD *)(v10 + 72) = 0u;
*(_OWORD *)(v10 + 85) = 0u;
if ( *(char *)(a5 + 23) < 0 )
sub_1000097D0(&__p, *(void **)a5, *(_QWORD *)(a5 + 8));
else
__p = *(std::string *)a5;
GJChallengeItem::init((int)v10, a1, a2, a3, a4, &__p);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
cocos2d::CCObject::autorelease((__int64)v10);
return v10;
}