//
// GJDifficultySprite::create from 0xa314ac to 0xa31568 (188 bytes)
//
// 8 xrefs:
// > LevelCell::loadCustomLevelCell @ 0x7462d0
// > LevelInfoLayer::setupLevelInfo @ 0x7e96b4
// > GJRateLevelLayer::init @ 0x952840
// > RateStarsLayer::init @ 0x957d60
// > StarInfoPopup::init @ 0xa57bb4
// > SongUsagePopup::buildUsageGrid @ 0xc8c884
// > RateStarsModLayer::init @ 0xcfd4a0
// > ??> @ 0xfa450
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:59:47 +0000
//
__int64 __fastcall GJDifficultySprite::create(unsigned int a1, int a2)
{
__int64 v4; // x19
v4 = operator new(0x258u);
cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v4);
*(_DWORD *)(v4 + 596) = 0;
*(_QWORD *)v4 = &off_1479500;
*(_QWORD *)(v4 + 320) = &off_14799E8;
*(_QWORD *)(v4 + 344) = &off_1479A68;
if ( (unsigned __int8)GJDifficultySprite::init((cocos2d::CCSprite *)v4, (char *)a1, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
return v4;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 16LL))(v4);
return 0;
}
}