// // TabbedPopupLayer::showTab from 0x1001aa59c to 0x1001aa740 (420 bytes) // // 2 xrefs: // > GameSettingsLayer::showTab @ 0x1001672c8 // > @ 0x1008e6530 // // 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 11:00:05 +0000 // __int64 __fastcall TabbedPopupLayer::showTab(__int64 result, signed int a2) { __int64 v2; // x19 __int64 v3; // x9 __int64 v4; // x8 __int64 v5; // x20 int v6; // w10 int v7; // w11 unsigned __int64 v8; // x21 __int64 v9; // x22 signed int v10; // w9 __int64 v11; // x1 __int64 v12; // x8 __int64 v13; // x10 __int64 v14; // x9 __int64 *v15; // t2 if ( (a2 & 0x80000000) == 0 ) { v2 = result; v3 = *(_QWORD *)(result + 1024); v4 = *(_QWORD *)(result + 1016); if ( (int)(954437177 * ((unsigned __int64)(v3 - v4) >> 3)) > a2 ) { v5 = v4 + 72LL * (unsigned int)a2; v6 = *(_DWORD *)(v5 + 56); v7 = v6 - 1; if ( v6 < 1 ) { v7 = 0; } else if ( *(_DWORD *)(v5 + 52) < v6 ) { goto LABEL_9; } *(_DWORD *)(v5 + 52) = v7; LABEL_9: *(_DWORD *)(result + 1064) = a2; if ( v3 != v4 ) { v8 = 0; v9 = 48; do { (*(void (__fastcall **)(__int64, _QWORD, bool))(*(_QWORD *)v2 + 1352LL))( v2, *(unsigned int *)(v4 + v9), v8++ == *(int *)(v2 + 1064)); v4 = *(_QWORD *)(v2 + 1016); v9 += 72; } while ( v8 < 0x8E38E38E38E38E39LL * ((*(_QWORD *)(v2 + 1024) - v4) >> 3) ); v6 = *(_DWORD *)(v5 + 56); } if ( v6 <= 0 ) { sub_1001AC724(v2); sub_1001AC730(v2); LABEL_22: sub_1001AA740(v2, "GJ_button_02.png", "GJ_button_05.png"); return sub_1001AA7E8(v2); } v10 = *(_DWORD *)(v2 + 1064); if ( v10 < 0 ) goto LABEL_20; v11 = 0; v12 = *(unsigned int *)(v5 + 52); if ( (v12 & 0x80000000) != 0 ) goto LABEL_21; v13 = *(_QWORD *)(v2 + 1040); if ( v10 >= (int)(-1431655765 * ((unsigned __int64)(*(_QWORD *)(v2 + 1048) - v13) >> 3)) ) goto LABEL_21; v15 = (__int64 *)(v13 + 24LL * (unsigned int)v10); v14 = *v15; if ( (int)v12 >= (int)((unsigned __int64)(v15[1] - *v15) >> 2) ) LABEL_20: v11 = 0; else v11 = *(unsigned int *)(v14 + 4 * v12); LABEL_21: sub_1001AC4E8(v2, v11, 0); goto LABEL_22; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source