// // GJDifficultySprite::updateDifficultyFrame from 0x1403ab0e0 to 0x1403ab1ec (268 bytes) // // 6 xrefs: // > sub_14041B3F0 @ 0x14041b5df // > LevelInfoLayer::updateLabelValues @ 0x140425895 // > RateStarsLayer::selectRating @ 0x14055eedf // > GJRateLevelLayer::selectRating @ 0x140560267 // > RateStarsModLayer::updateDSprite @ 0x140560331 // > @ 0x140923a2c // // 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=1 void __fastcall GJDifficultySprite::updateDifficultyFrame(cocos2d::CCArray **a1, int a2, int a3) { void **DifficultyFrame; // rax __int64 v5; // rdx __int64 v6; // rcx const char *v7; // rsi cocos2d::CCArray *v8; // rbx cocos2d::CCSpriteFrameCache *v9; // rax struct cocos2d::CCSpriteFrame *v10; // rax float *v11; // rbx __int64 v12; // rax unsigned int i; // ebx struct cocos2d::CCObject *v14; // rax _BYTE v15[8]; // [rsp+20h] [rbp-48h] BYREF void *Src[4]; // [rsp+28h] [rbp-40h] BYREF DifficultyFrame = GJDifficultySprite::getDifficultyFrame(Src, a2, a3); v7 = (const char *)DifficultyFrame; if ( (unsigned __int64)DifficultyFrame[3] > 0xF ) v7 = (const char *)*DifficultyFrame; v8 = *a1; v9 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v6, v5); v10 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v9, v7); (*((void (__fastcall **)(cocos2d::CCArray **, struct cocos2d::CCSpriteFrame *))v8 + 126))(a1, v10); sub_14003D310((__int64)Src); if ( a1[26] ) { v11 = (float *)(*((__int64 (__fastcall **)(cocos2d::CCArray **))*a1 + 40))(a1); v12 = (*((__int64 (__fastcall **)(cocos2d::CCArray **))*a1 + 40))(a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, *v11 * 0.5, *(float *)(v12 + 4) * 0.5); for ( i = 0; i < cocos2d::CCArray::count(a1[26]); ++i ) { v14 = cocos2d::CCArray::objectAtIndex(a1[26], i); (*(void (__fastcall **)(struct cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v14 + 184LL))(v14, v15); } } }