//
// GJDifficultySprite::init from 0x1002e5778 to 0x1002e57e0 (104 bytes)
//
// 1 xrefs:
// > GJDifficultySprite::create @ 0x1002e5728
//
// 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
//
// local variable allocation has failed, the output may be wrong!
bool __fastcall GJDifficultySprite::init(GJDifficultySprite *a1, int a2, GJDifficultyName a3)
{
void **v4; // x1
bool v5; // w19
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v8; // [xsp+1Fh] [xbp-11h]
GJDifficultySprite::getDifficultyFrame(__p, *(_QWORD *)&a2, *(_QWORD *)&a3);
if ( v8 >= 0 )
v4 = __p;
else
v4 = (void **)__p[0];
v5 = cocos2d::CCSprite::initWithSpriteFrameName(a1, (const char *)v4);
if ( v8 < 0 )
operator delete(__p[0]);
return v5;
}