//
// AccountReviewPopup::onToggleHistory from 0x1400b3450 to 0x1400b349e (78 bytes)
//
// 2 xrefs:
// > AccountReviewPopup::init @ 0x1400b002e
// > ??> @ 0x1409135b0
//
// 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::onToggleHistory(__int64 a1)
{
int v1; // r8d
char *v2; // rdx
__int64 *v4; // rcx
v1 = *(_DWORD *)(a1 + 1332);
v2 = "All";
*(_DWORD *)(a1 + 1332) = v1 == 0;
v4 = *(__int64 **)(a1 + 1496);
if ( v1 )
v2 = "Un-reviewed";
ButtonSprite::setString(v4, v2);
return PagedListPopup::loadPage(a1, 0);
}