//
// GJPathSprite::create from 0x6d2424 to 0x6d248a (102 bytes)
//
// 5 xrefs:
// > GJItemIcon::init @ 0x50d62e
// > GJPathPage::playUnlockAnimation @ 0x6d26da
// > GJPathsLayer::init @ 0x6d2db8
// > GJPathPage::init @ 0x6d33d6
// > GJPathPage::unlockAnimationStep3 @ 0x6d41a8
//
// 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:57:03 +0000
//
int *__fastcall GJPathSprite::create(GJPathSprite *this, int a2)
{
int *v3; // r4
int v4; // r3
int *v5; // r0
v3 = (int *)operator new(0x200u);
memset(v3, 0, 0x200u);
cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v3);
*v3 = (int)&off_CE6758;
v3[66] = (int)&off_CE69CC;
v3[70] = (int)&off_CE6A0C;
if ( GJPathSprite::init((GJPathSprite *)v3, (const char *)this, (int)&off_CE69CC, (int)&off_CE6A0C) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);
}
else
{
v4 = *v3;
v5 = v3;
v3 = nullptr;
(*(void (__fastcall **)(int *))(v4 + 8))(v5);
}
return v3;
}