//
// TabbedPopupLayer::getPopupPage from 0x10063f600 to 0x10063f64e (78 bytes)
//
// 3 xrefs:
// > GameSettingsLayer::addSpecialContent @ 0x100600612
// > GameSettingsLayer::addSpecialContent @ 0x100600a5b
// > GameSettingsLayer::addSpecialContent @ 0x100600e9d
//
// 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:34:42 +0000
//
__int64 __fastcall TabbedPopupLayer::getPopupPage(__int64 a1, int a2, int a3)
{
__int64 result; // rax
__int64 v4; // rcx
__int64 v5; // rdi
__int64 v6; // rsi
result = 0;
if ( a2 >= 0 && a3 >= 0 )
{
v4 = *(_QWORD *)(a1 + 1040);
if ( (int)(-1431655765 * ((unsigned __int64)(*(_QWORD *)(a1 + 1048) - v4) >> 3)) > a2 )
{
v5 = 3LL * (unsigned int)a2;
v6 = *(_QWORD *)(v4 + 24LL * (unsigned int)a2);
if ( (int)((unsigned __int64)(*(_QWORD *)(v4 + 8 * v5 + 8) - v6) >> 2) > a3 )
return *(unsigned int *)(v6 + 4LL * (unsigned int)a3);
}
}
return result;
}