// // TabbedPopupLayer::showTab from 0xc38934 to 0xc38ae0 (428 bytes) // // 3 xrefs: // > GameSettingsLayer::showTab @ 0xc04a24 // > @ 0xf1cd8 // > @ 0x14e4ee0 // // 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 13:04:53 +0000 // __int64 __fastcall TabbedPopupLayer::showTab(__int64 this, int a2) { __int64 v2; // x2 __int64 v3; // x3 unsigned __int64 v4; // x20 __int64 v5; // x21 int v6; // w3 __int64 v7; // x19 __int64 v8; // x22 unsigned __int64 v9; // x20 __int64 v10; // x4 _BOOL8 v11; // x2 int PopupPage; // w0 if ( (a2 & 0x80000000) == 0 ) { v2 = *(_QWORD *)(this + 1016); v3 = (*(_QWORD *)(this + 1024) - v2) >> 3; v4 = 0x8E38E38E38E38E39LL * v3; if ( a2 < 954437177 * (int)v3 ) { v5 = v2 + 72LL * a2; v6 = *(_DWORD *)(v5 + 56); if ( v6 <= 0 ) { *(_DWORD *)(v5 + 52) = 0; v2 = *(_QWORD *)(this + 1016); v4 = 0x8E38E38E38E38E39LL * ((*(_QWORD *)(this + 1024) - v2) >> 3); } else if ( v6 <= *(_DWORD *)(v5 + 52) ) { *(_DWORD *)(v5 + 52) = v6 - 1; v2 = *(_QWORD *)(this + 1016); v4 = 0x8E38E38E38E38E39LL * ((*(_QWORD *)(this + 1024) - v2) >> 3); } *(_DWORD *)(this + 1064) = a2; v7 = this; if ( v4 ) { v8 = 0; v9 = 0; while ( 1 ) { v10 = v2 + v8; v11 = v9++ == a2; v8 += 72; (*(void (__fastcall **)(__int64, _QWORD, _BOOL8))(*(_QWORD *)v7 + 1352LL))( v7, *(unsigned int *)(v10 + 48), v11); v2 = *(_QWORD *)(v7 + 1016); if ( v9 >= 0x8E38E38E38E38E39LL * ((*(_QWORD *)(v7 + 1024) - v2) >> 3) ) break; a2 = *(_DWORD *)(v7 + 1064); } } if ( *(int *)(v5 + 56) <= 0 ) { SetupTriggerPopup::hideAll((cocos2d::CCArray **)v7); SetupTriggerPopup::refreshGroupVisibility((cocos2d::CCArray **)v7); } else { PopupPage = TabbedPopupLayer::getPopupPage((TabbedPopupLayer *)v7, *(_DWORD *)(v7 + 1064), *(_DWORD *)(v5 + 52)); SetupTriggerPopup::goToPage((cocos2d::CCArray **)v7, PopupPage, 0); } TabbedPopupLayer::refreshTabButtons((TabbedPopupLayer *)v7, "GJ_button_02.png", "GJ_button_05.png"); return TabbedPopupLayer::refreshPageButtons((TabbedPopupLayer *)v7); } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source