//
// TabbedPopupLayer::getPopupPage from 0x72da90 to 0x72daca (58 bytes)
//
// 4 xrefs:
// > GameSettingsLayer::addSpecialContent @ 0x71115a
// > GameSettingsLayer::addSpecialContent @ 0x71143c
// > GameSettingsLayer::addSpecialContent @ 0x711516
// > TabbedPopupLayer::showTab @ 0x72dff0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:58:17 +0000
//
int __fastcall TabbedPopupLayer::getPopupPage(TabbedPopupLayer *this, int a2, int a3)
{
int v3; // r4
_DWORD *v5; // r3
if ( a2 < 0 )
return 0;
v3 = *((_DWORD *)this + 181);
if ( a2 >= -1431655765 * ((*((_DWORD *)this + 182) - v3) >> 2) )
return 0;
if ( a3 < 0 )
return 0;
v5 = (_DWORD *)(v3 + 12 * a2);
if ( a3 >= (v5[1] - *v5) >> 2 )
return 0;
else
return *(_DWORD *)(*v5 + 4 * a3);
}