//
// GJDifficultySprite::create from 0x1002e56d0 to 0x1002e5764 (148 bytes)
//
// 5 xrefs:
// > LevelInfoLayer::setupLevelInfo @ 0x1000273e4
// > RateStarsLayer::init @ 0x100080520
// > LevelCell::loadCustomLevelCell @ 0x10010d9b0
// > StarInfoPopup::init @ 0x10019ddb0
// > GJRateLevelLayer::init @ 0x1001b105c
//
// 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 *__fastcall GJDifficultySprite::create(int a1, GJDifficultyName a2)
{
GJDifficultySprite *v4; // x19
v4 = (GJDifficultySprite *)operator new(0x258u);
cocos2d::CCSprite::CCSprite((__int64)v4);
v4->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GJDifficultySprite_vtbl *)&off_1007E5048;
v4->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)off_1007E5520;
v4->cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)off_1007E55A0;
v4->m_featureState = 0;
if ( GJDifficultySprite::init(v4, a1, a2) )
{
cocos2d::CCObject::autorelease(v4);
}
else
{
((void (__fastcall *)(GJDifficultySprite *))v4->~GJDifficultySprite_0)(v4);
return nullptr;
}
return v4;
}