// // LeaderboardsLayer::toggleTabButtons from 0x94e340 to 0x94e5fc (700 bytes) // // 2 xrefs: // > LeaderboardsLayer::selectLeaderboard @ 0x94e65c // > @ 0xb5b40 // // 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:21 +0000 // __int64 __fastcall LeaderboardsLayer::toggleTabButtons(CCMenuItemToggler **this) { __int64 v2; // x0 __int64 v3; // x2 __int64 v4; // x0 __int64 v5; // x2 __int64 v6; // x0 __int64 v7; // x2 __int64 v8; // x0 __int64 v9; // x2 __int64 result; // x0 unsigned int *v11; // x1 char *v12; // x21 char *v13; // x22 __int64 i; // x19 ButtonSprite *v15; // x25 const char *v16; // x1 __int64 v17; // [xsp+58h] [xbp+58h] __int64 v18; // [xsp+58h] [xbp+58h] __int64 v19; // [xsp+58h] [xbp+58h] __int64 v20; // [xsp+58h] [xbp+58h] CCMenuItemToggler::toggle(*(this + 56), *((_DWORD *)this + 110) == 1); CCMenuItemToggler::toggle(*(this + 59), *((_DWORD *)this + 110) == 4); CCMenuItemToggler::toggle(*(this + 57), *((_DWORD *)this + 110) == 2); CCMenuItemToggler::toggle(*(this + 58), *((_DWORD *)this + 110) == 3); (*(void (__fastcall **)(_QWORD, bool))(*(_QWORD *)*(this + 56) + 1056LL))(*(this + 56), *((_DWORD *)this + 110) != 1); (*(void (__fastcall **)(_QWORD, bool))(*(_QWORD *)*(this + 59) + 1056LL))(*(this + 59), *((_DWORD *)this + 110) != 4); (*(void (__fastcall **)(_QWORD, bool))(*(_QWORD *)*(this + 57) + 1056LL))(*(this + 57), *((_DWORD *)this + 110) != 2); (*(void (__fastcall **)(_QWORD, bool))(*(_QWORD *)*(this + 58) + 1056LL))(*(this + 58), *((_DWORD *)this + 110) != 3); v17 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 56) + 512LL))(*(this + 56)); v2 = (*(__int64 (**)(void))(*(_QWORD *)v17 + 512LL))(); if ( *((_DWORD *)this + 110) == 1 ) v3 = 2; else v3 = 0xFFFFFFFFLL; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v2 + 592LL))(v2, v17, v3); v18 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 59) + 512LL))(*(this + 59)); v4 = (*(__int64 (**)(void))(*(_QWORD *)v18 + 512LL))(); if ( *((_DWORD *)this + 110) == 4 ) v5 = 2; else v5 = 0xFFFFFFFFLL; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v4 + 592LL))(v4, v18, v5); v19 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 57) + 512LL))(*(this + 57)); v6 = (*(__int64 (**)(void))(*(_QWORD *)v19 + 512LL))(); if ( *((_DWORD *)this + 110) == 2 ) v7 = 2; else v7 = 0xFFFFFFFFLL; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v6 + 592LL))(v6, v19, v7); v20 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 58) + 512LL))(*(this + 58)); v8 = (*(__int64 (**)(void))(*(_QWORD *)v20 + 512LL))(); if ( *((_DWORD *)this + 110) == 3 ) v9 = 2; else v9 = 0xFFFFFFFFLL; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v8 + 592LL))(v8, v20, v9); LeaderboardsLayer::refreshTabs(this); result = (__int64)*(this + 63); if ( result ) { v11 = *(unsigned int **)(result + 56); result = *v11; if ( (_DWORD)result ) { v12 = *((char **)v11 + 2); result = 8LL * (unsigned int)result - 8; v13 = &v12[result]; if ( v12 <= &v12[result] ) { for ( i = *(_QWORD *)v12; *(_QWORD *)v12; i = *(_QWORD *)v12 ) { v12 += 8; v15 = (ButtonSprite *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)i + 1072LL))(i); if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)i + 64LL))(i) == *((_DWORD *)this + 111) ) v16 = "GJ_button_02.png"; else v16 = "GJ_button_01.png"; ButtonSprite::updateBGImage(v15, v16); result = (*(__int64 (__fastcall **)(__int64, bool))(*(_QWORD *)i + 344LL))(i, *((_DWORD *)this + 110) != 3); if ( v13 < v12 ) break; } } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source