// // GJRateLevelLayer::selectRating from 0x95076c to 0x950910 (420 bytes) // // 4 xrefs: // > GJRateLevelLayer::init @ 0x952aec // > @ 0x81970 // > GJRateLevelLayer::init @ 0x952710 // > @ 0x15435e0 // // 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:57:22 +0000 // __int64 __fastcall GJRateLevelLayer::selectRating(GJRateLevelLayer *this, cocos2d::CCObject *a2) { unsigned int i; // w19 __int64 v4; // x20 __int64 v5; // x22 __int64 v6; // x1 __int64 v7; // x0 const char *v8; // x1 ButtonSprite *v9; // x0 __int64 (*v10)(void); // x1 _QWORD *v11; // x0 int v12; // w0 bool v13; // zf __int64 v14; // x1 __int64 v15; // x0 _QWORD *v17; // x0 if ( a2 ) *((_DWORD *)this + 270) = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2); else *((_DWORD *)this + 270) = -1; for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 134)); ++i ) { v4 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 134), i); v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 1072LL))(v4); v6 = *(_QWORD *)v4; v7 = v4; LODWORD(v4) = *((_DWORD *)this + 270); v13 = (_DWORD)v4 == (*(unsigned int (__fastcall **)(__int64))(v6 + 64))(v7); v8 = "GJ_button_04.png"; v9 = (ButtonSprite *)v5; if ( v13 ) { v9 = (ButtonSprite *)v5; v8 = "GJ_button_01.png"; } ButtonSprite::updateBGImage(v9, v8); } v10 = *(__int64 (**)(void))(**((_QWORD **)this + 133) + 1072LL); if ( *((_DWORD *)this + 270) == -1 ) { v17 = (_QWORD *)v10(); ButtonSprite::setColor(v17, 10921638); } else { v11 = (_QWORD *)v10(); ButtonSprite::setColor(v11, 0xFFFFFF); } v12 = *((_DWORD *)this + 270); v13 = v12 == 1; if ( v12 <= 1 ) { v15 = *((_QWORD *)this + 138); if ( v13 ) v14 = 0xFFFFFFFFLL; else v14 = 0; } else if ( v12 == 2 ) { v14 = 1; v15 = *((_QWORD *)this + 138); } else if ( v12 == 3 ) { v14 = 2; v15 = *((_QWORD *)this + 138); } else { v14 = 3; if ( v12 > 5 && (v14 = 4, v12 > 7) && (v14 = 5, v12 > 9) ) { if ( v12 == 10 ) v14 = 6; else v14 = 0; v15 = *((_QWORD *)this + 138); } else { v15 = *((_QWORD *)this + 138); } } return GJDifficultySprite::updateDifficultyFrame(v15, v14, 0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source