//
// GJPathSprite::create from 0xba444c to 0xba4500 (180 bytes)
//
// 6 xrefs:
// > GJItemIcon::init @ 0x8bdeb4
// > GJPathPage::playUnlockAnimation @ 0xba5574
// > GJPathsLayer::init @ 0xba5fcc
// > GJPathPage::init @ 0xba66c4
// > GJPathPage::unlockAnimationStep3 @ 0xba7d90
// > ??> @ 0xa1230
//
// 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:02:48 +0000
//
_QWORD *__fastcall GJPathSprite::create(GJPathSprite *this)
{
unsigned int v1; // w20
_QWORD *v2; // x19
v1 = (unsigned int)this;
v2 = (_QWORD *)operator new(0x258u);
memset(v2, 0, 0x258u);
cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v2);
*v2 = &off_14D9500;
v2[40] = &off_14D99E8;
v2[43] = &off_14D9A68;
if ( (unsigned __int8)GJPathSprite::init((GJPathSprite *)v2, (const char *)v1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
return v2;
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v2 + 16LL))(v2);
return nullptr;
}
}