// // TabbedPopupLayer::showTab from 0x14066cc10 to 0x14066cddb (459 bytes) // // 5 xrefs: // > GameSettingsLayer::showTab @ 0x1402c8429 // > @ 0x14074f450 // > @ 0x1408ea778 // > @ 0x1408ea7f0 // > @ 0x140932060 // // 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:35:52 +0000 // void __fastcall TabbedPopupLayer::showTab(__int64 a1, int a2) { __int64 v2; // r10 __int64 v4; // r8 signed int v5; // edi __int64 v6; // rsi int v7; // eax __int64 v8; // r9 unsigned __int64 v9; // rbp __int64 v10; // r14 __int64 v11; // r9 __int64 v12; // r8 __int64 v13; // r10 __int64 v14; // rdx if ( a2 >= 0 ) { v2 = *(_QWORD *)(a1 + 1000); v4 = *(_QWORD *)(a1 + 1008) - v2; if ( a2 < (int)(v4 / 88) ) { v5 = 0; v6 = v2 + 88LL * a2; v7 = *(_DWORD *)(v6 + 72); if ( v7 <= 0 ) { *(_DWORD *)(v6 + 68) = 0; } else if ( *(_DWORD *)(v6 + 68) >= v7 ) { *(_DWORD *)(v6 + 68) = v7 - 1; } *(_DWORD *)(a1 + 1048) = a2; v8 = *(_QWORD *)(a1 + 1000); v9 = 0; if ( (*(_QWORD *)(a1 + 1008) - v8) / 88 ) { v10 = 0; do { LOBYTE(v4) = v9 == *(int *)(a1 + 1048); (*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)a1 + 1088LL))( a1, *(unsigned int *)(v10 + v8 + 64), v4); v8 = *(_QWORD *)(a1 + 1000); v10 += 88; ++v9; } while ( v9 < (*(_QWORD *)(a1 + 1008) - v8) / 88 ); } if ( *(int *)(v6 + 72) <= 0 ) { SetupTriggerPopup::goToPage(a1, 0, 1); SetupTriggerPopup::refreshGroupVisibility(a1); } else { v11 = *(int *)(a1 + 1048); v12 = *(int *)(v6 + 68); if ( (int)v11 >= 0 ) { v13 = *(_QWORD *)(a1 + 1024); if ( (int)v11 < (int)((*(_QWORD *)(a1 + 1032) - v13) / 24) && (int)v12 >= 0 ) { v14 = *(_QWORD *)(v13 + 24 * v11); if ( (int)v12 < (int)((*(_QWORD *)(v13 + 24 * v11 + 8) - v14) >> 2) ) v5 = *(_DWORD *)(v14 + 4 * v12); } } SetupTriggerPopup::goToPage(a1, v5, 0); } TabbedPopupLayer::refreshTabButtons(a1); TabbedPopupLayer::refreshPageButtons(a1); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source