//
// GJPathSprite::init from 0x1003bb650 to 0x1003bb6dc (140 bytes)
//
// 1 xrefs:
// > GJPathSprite::create @ 0x1003b84d8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool __fastcall GJPathSprite::init(GJPathSprite *a1, int a2)
{
cocos2d::CCString *v4; // x0
char *CString; // x0
void **v6; // x1
bool v7; // w21
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v10; // [xsp+1Fh] [xbp-21h]
v4 = (cocos2d::CCString *)sub_100268F4C("pathIcon_%02d_001.png", a2);
CString = (char *)cocos2d::CCString::getCString(v4);
sub_100009900(__p, CString);
if ( v10 >= 0 )
v6 = __p;
else
v6 = (void **)__p[0];
v7 = cocos2d::CCSprite::initWithSpriteFrameName(a1, (const char *)v6);
if ( v7 )
a1->m_pathNumber = a2;
if ( v10 < 0 )
operator delete(__p[0]);
return v7;
}