//
// GJDifficultySprite::create from 0x100380570 to 0x100380604 (148 bytes)
//
// 7 xrefs:
// > sub_10002A788 @ 0x10002addc
// > RateStarsLayer::init @ 0x100088cd4
// > LevelCell::loadCustomLevelCell @ 0x100134b0c
// > StarInfoPopup::init @ 0x10023239c
// > sub_100245DF0 @ 0x10024614c
// > sub_10051E954 @ 0x10051ed9c
// > sub_10052B0F4 @ 0x10052b224
//
// 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 11:03:30 +0000
//
_QWORD *__fastcall GJDifficultySprite::create(__int64 a1, __int64 a2)
{
_QWORD *v4; // x19
v4 = operator new(0x258u);
cocos2d::CCSprite::CCSprite((__int64)v4);
*v4 = &off_10093C940;
v4[40] = off_10093CE28;
v4[43] = off_10093CEA8;
*((_DWORD *)v4 + 149) = 0;
if ( (unsigned int)sub_100380618(v4, a1, a2) )
{
cocos2d::CCObject::autorelease((__int64)v4);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v4 + 16LL))(v4);
return nullptr;
}
return v4;
}