// // GJDifficultySprite::create from 0x1402a4f90 to 0x1402a506d (221 bytes) // // 6 xrefs: // > LevelCell::loadCustomLevelCell @ 0x1400af78f // > GJRateLevelLayer::init @ 0x1402f4e1b // > LevelInfoLayer::setupLevelInfo @ 0x1402fb56e // > StarInfoPopup::init @ 0x1403c8541 // > RateStarsLayer::init @ 0x1403ca60a // > @ 0x1406d2060 // // 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 // // Hidden C++ exception states: #wind=2 GJDifficultySprite *GJDifficultySprite::create(int a1, GJDifficultyName a2) { GJDifficultySprite *v2; // rsi __int64 DifficultyFrame; // rax bool v4; // bl _BYTE Src[32]; // [rsp+28h] [rbp-30h] BYREF v2 = (GJDifficultySprite *)operator new(0x260u); cocos2d::CCSprite::CCSprite(v2); v2->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GJDifficultySprite_vtbl *)&GJDifficultySprite::`vftable'; v2->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&GJDifficultySprite::`vftable'; v2->cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&GJDifficultySprite::`vftable'; v2->m_featureState = 0; DifficultyFrame = GJDifficultySprite::getDifficultyFrame(Src); if ( *(_QWORD *)(DifficultyFrame + 24) > 0xFu ) DifficultyFrame = *(_QWORD *)DifficultyFrame; v4 = cocos2d::CCSprite::initWithSpriteFrameName(v2, (const char *)DifficultyFrame); sub_14003A830((__int64)Src); if ( v4 ) { cocos2d::CCObject::autorelease(v2); return v2; } else { ((void (__fastcall *)(GJDifficultySprite *, __int64))v2->~GJDifficultySprite)(v2, 1); return nullptr; } }