//
// AccountReviewPopup::selectTab from 0x1400b3030 to 0x1400b313b (267 bytes)
//
// 3 xrefs:
// > AccountReviewPopup::init @ 0x1400b095e
// > AccountReviewPopup::onTab @ 0x1400b3024
// > ??> @ 0x140913574
//
// 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:26:13 +0000
//
__int64 __fastcall AccountReviewPopup::selectTab(__int64 a1, int a2)
{
__int64 *v4; // rsi
int v5; // edi
__int64 v6; // rbp
const char *v7; // rdx
int v8; // eax
__int64 v9; // rcx
__int64 v10; // rcx
__int64 v11; // rcx
*(_DWORD *)(a1 + 1324) = a2;
v4 = (__int64 *)(a1 + 1464);
v5 = 0;
v6 = 3;
do
{
v7 = "GJ_button_04.png";
if ( v5 == a2 )
v7 = "GJ_button_01.png";
ButtonSprite::updateBGImage(*v4, v7);
++v5;
++v4;
--v6;
}
while ( v6 );
AccountReviewPopup::updateTabControls(a1);
if ( (*(unsigned __int8 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1080LL))(a1, 0) )
{
*(_DWORD *)(a1 + 680) = 0;
v8 = -1;
}
else
{
v8 = 0;
}
*(_DWORD *)(a1 + 684) = v8;
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1088LL))(a1);
v9 = *(_QWORD *)(a1 + 760);
if ( v9 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 512LL))(v9);
*(_QWORD *)(a1 + 760) = 0;
}
v10 = *(_QWORD *)(a1 + 720);
if ( v10 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v10 + 336LL))(v10, 0);
v11 = *(_QWORD *)(a1 + 728);
if ( v11 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v11 + 336LL))(v11, 0);
return PagedListPopup::showLoading(a1);
}