// // GJDifficultySprite::create from 0x1403aaf10 to 0x1403aaff3 (227 bytes) // // 8 xrefs: // > SongUsagePopup::buildUsageGrid @ 0x1401031b7 // > LevelCell::loadCustomLevelCell @ 0x14014af4b // > GJRateLevelLayer::init @ 0x140419bb6 // > LevelInfoLayer::setupLevelInfo @ 0x140420489 // > StarInfoPopup::init @ 0x14055c3fe // > RateStarsLayer::init @ 0x14055e9e8 // > RateStarsModLayer::init @ 0x14055fa6e // > @ 0x140923a14 // // This function is hookable on this platform (idp: pc, 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:31:20 +0000 // // Hidden C++ exception states: #wind=2 cocos2d::CCSprite *GJDifficultySprite::create() { cocos2d::CCSprite *v0; // rsi __int64 DifficultyFrame; // rax bool v2; // bl _BYTE Src[32]; // [rsp+28h] [rbp-30h] BYREF v0 = (cocos2d::CCSprite *)operator new(0x260u); cocos2d::CCSprite::CCSprite(v0); *(_QWORD *)v0 = &GJDifficultySprite::`vftable'; *((_QWORD *)v0 + 40) = &GJDifficultySprite::`vftable'; *((_QWORD *)v0 + 43) = &GJDifficultySprite::`vftable'; *((_DWORD *)v0 + 150) = 0; DifficultyFrame = GJDifficultySprite::getDifficultyFrame(Src); if ( *(_QWORD *)(DifficultyFrame + 24) > 0xFu ) DifficultyFrame = *(_QWORD *)DifficultyFrame; v2 = cocos2d::CCSprite::initWithSpriteFrameName(v0, (const char *)DifficultyFrame); sub_14003D310((__int64)Src); if ( v2 ) { cocos2d::CCObject::autorelease(v0); return v0; } else { (*(void (__fastcall **)(cocos2d::CCSprite *, __int64))(*(_QWORD *)v0 + 8LL))(v0, 1); return nullptr; } }