// // RateLevelLayer::selectRating from 0x511108 to 0x5111ca (194 bytes) // // 1 xrefs: // > RateLevelLayer::init @ 0x511488 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:51:32 +0000 // int __fastcall RateLevelLayer::selectRating(RateLevelLayer *this, cocos2d::CCObject *a2, int a3) { unsigned int v4; // r5 int v5; // r1 int v6; // r2 int v7; // r0 int v8; // r2 bool v9; // zf char *v10; // r1 void (__fastcall *v11)(int, char *, int); // r3 int v12; // r0 int (__fastcall *v13)(int, int, int); // r3 _DWORD *v14; // r0 int v15; // r3 int v16; // r1 _DWORD v18[3]; // [sp+0h] [bp-Ch] BYREF v18[0] = this; v18[1] = a2; v18[2] = a3; if ( a2 ) *((_DWORD *)this + 133) = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2); else *((_DWORD *)this + 133) = -1; v4 = 0; while ( v4 < cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 131)) ) { v7 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 131), v4); v9 = *((_DWORD *)this + 133) == v4++; if ( v9 ) v10 = &byte_BECBFC; else v10 = (char *)v18; v11 = *(void (__fastcall **)(int, char *, int))(*(_DWORD *)v7 + 480); if ( !v9 ) memset(v18, 125, 3); v11(v7, v10, v8); } v12 = *((_DWORD *)this + 130); v13 = *(int (__fastcall **)(int, int, int))(*(_DWORD *)v12 + 536); if ( *((_DWORD *)this + 133) == -1 ) { v14 = (_DWORD *)v13(v12, v5, v6); v15 = 42662; v16 = 166; } else { v14 = (_DWORD *)v13(v12, v5, v6); v15 = 0xFFFF; v16 = 255; } return ButtonSprite::setColor(v14, v15 | (v16 << 16)); }
GD Web Decomp Icon

GD Web Decomp

Raw Source