//
// SetupTriggerPopup::onPage from 0x100219d60 to 0x100219dc2 (98 bytes)
//
// 2 xrefs:
// > SetupTriggerPopup::createPageButtons @ 0x100219bc2
// > SetupTriggerPopup::createPageButtons @ 0x100219c8b
//
// 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 12:27:01 +0000
//
__int64 __fastcall SetupTriggerPopup::onPage(__int64 a1, __int64 a2)
{
int v2; // ebx
int v3; // eax
bool v4; // sf
unsigned int v5; // eax
unsigned int v6; // ecx
v2 = sub_1007FEF90(*(_QWORD *)(a1 + 912));
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
v4 = *(_DWORD *)(a1 + 920) + v3 < 0;
v5 = *(_DWORD *)(a1 + 920) + v3;
*(_DWORD *)(a1 + 920) = v5;
if ( v4 )
{
v5 += v2;
v6 = v5;
goto LABEL_5;
}
v6 = v5 - v2;
if ( (int)v5 >= v2 )
{
v5 -= v2;
LABEL_5:
*(_DWORD *)(a1 + 920) = v6;
}
return SetupTriggerPopup::goToPage(a1, v5, 0);
}