//
// TabbedPopupLayer::beginTab from 0xc38124 to 0xc38160 (60 bytes)
//
// 7 xrefs:
// > GameSettingsLayer::buildTabContent @ 0xc074d0
// > GameSettingsLayer::buildTabContent @ 0xc07618
// > GameSettingsLayer::buildTabContent @ 0xc078a0
// > GameSettingsLayer::buildTabContent @ 0xc07a0c
// > GameSettingsLayer::buildTabContent @ 0xc07de4
// > GameSettingsLayer::buildTabContent @ 0xc07ec0
// > ??> @ 0xde178
//
// 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::beginTab(__int64 this, signed int a2)
{
if ( (a2 & 0x80000000) == 0
&& a2 < (int)(954437177 * ((__int64)(*(_QWORD *)(this + 1024) - *(_QWORD *)(this + 1016)) >> 3)) )
{
*(_DWORD *)(this + 1068) = a2;
}
return this;
}