//
// GJDifficultySprite::create from 0x8d9eb4 to 0x8d9f70 (188 bytes)
//
// 6 xrefs:
// > LevelCell::loadCustomLevelCell @ 0x610530
// > LevelInfoLayer::setupLevelInfo @ 0x6dac54
// > GJRateLevelLayer::init @ 0x822e78
// > RateStarsLayer::init @ 0x824e3c
// > StarInfoPopup::init @ 0x900724
// > ??> @ 0xc00f0
//
// 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
//
GJDifficultySprite *GJDifficultySprite::create(int a1, GJDifficultyName a2)
{
__int64 v4; // x19
v4 = operator new(0x258u);
cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v4);
*(_DWORD *)(v4 + 596) = 0;
*(_QWORD *)v4 = &off_1193FD0;
*(_QWORD *)(v4 + 320) = &off_11944A8;
*(_QWORD *)(v4 + 344) = &off_1194528;
if ( GJDifficultySprite::init((GJDifficultySprite *)v4, a1, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
return (GJDifficultySprite *)v4;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
}