//
// GJDifficultySprite::create from 0x5e0280 to 0x5e02e4 (100 bytes)
//
// 7 xrefs:
// > LevelCell::loadCustomLevelCell @ 0x42f970
// > LevelInfoLayer::setupLevelInfo @ 0x49c938
// > GJRateLevelLayer::init @ 0x565e58
// > RateStarsLayer::init @ 0x56986e
// > StarInfoPopup::init @ 0x5f86fc
// > SongUsagePopup::buildUsageGrid @ 0x760128
// > RateStarsModLayer::init @ 0x79ecf8
//
// 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:54:15 +0000
//
cocos2d::CCSprite *__fastcall GJDifficultySprite::create(const char *a1, char *a2)
{
cocos2d::CCSprite *v4; // r4
int v5; // r3
cocos2d::CCSprite *v6; // r0
v4 = (cocos2d::CCSprite *)operator new(0x200u);
cocos2d::CCSprite::CCSprite(v4);
*(_DWORD *)v4 = &off_CB64D8;
*((_DWORD *)v4 + 66) = &off_CB674C;
*((_DWORD *)v4 + 70) = &off_CB678C;
*((_DWORD *)v4 + 127) = 0;
if ( GJDifficultySprite::init(v4, a1, a2, 0) )
{
cocos2d::CCObject::autorelease(v4);
}
else
{
v5 = *(_DWORD *)v4;
v6 = v4;
v4 = nullptr;
(*(void (__fastcall **)(cocos2d::CCSprite *))(v5 + 8))(v6);
}
return v4;
}