//
// TabbedPopupLayer::getPopupPage from 0xc381cc to 0xc3822c (96 bytes)
//
// 5 xrefs:
// > GameSettingsLayer::addSpecialContent @ 0xc05b5c
// > GameSettingsLayer::addSpecialContent @ 0xc05e10
// > GameSettingsLayer::addSpecialContent @ 0xc05f28
// > TabbedPopupLayer::showTab @ 0xc38a60
// > ??> @ 0x78928
//
// This function is hookable on this platform (idp: arm, 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 13:04:52 +0000
//
__int64 __fastcall TabbedPopupLayer::getPopupPage(TabbedPopupLayer *this, signed int a2, int a3)
{
__int64 v3; // x3
_QWORD *v4; // x0
if ( a2 < 0 )
return 0;
v3 = *((_QWORD *)this + 130);
if ( a2 >= (int)(-1431655765 * ((*((_QWORD *)this + 131) - v3) >> 3)) )
return 0;
if ( a3 < 0 )
return 0;
v4 = (_QWORD *)(v3 + 24LL * a2);
if ( a3 >= (int)((__int64)(v4[1] - *v4) >> 2) )
return 0;
else
return *(unsigned int *)(*v4 + 4LL * a3);
}