//
// GJPathSprite::init from 0x58c268 to 0x58c2c6 (94 bytes)
//
// 1 xrefs:
// > GJPathSprite::create @ 0x58c30e
//
// 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 GJPathSprite::init(GJPathSprite *a1, int a2)
{
cocos2d::CCString *v4; // r0
char *CString; // r0
_BOOL4 v6; // r6
char *v8; // [sp+8h] [bp-8h] BYREF
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"pathIcon_%02d_001.png",
(const char *)a2);
CString = (char *)cocos2d::CCString::getCString(v4);
sub_776584((int)&v8, CString);
v6 = cocos2d::CCSprite::initWithSpriteFrameName(a1, v8);
if ( v6 )
a1->m_pathNumber = a2;
sub_774008(&v8);
return v6;
}