//
// TabbedPopupLayer::beginTab from 0x10063f3e0 to 0x10063f40c (44 bytes)
//
// 6 xrefs:
// > GameSettingsLayer::buildTabContent @ 0x1005fe8a6
// > GameSettingsLayer::buildTabContent @ 0x1005febec
// > GameSettingsLayer::buildTabContent @ 0x1005ff1e4
// > GameSettingsLayer::buildTabContent @ 0x1005ff548
// > GameSettingsLayer::buildTabContent @ 0x1005ffdd2
// > GameSettingsLayer::buildTabContent @ 0x1005fffca
//
// 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::beginTab(__int64 a1, int a2)
{
__int64 result; // rax
if ( a2 >= 0 )
{
result = 954437177 * (unsigned int)((*(_QWORD *)(a1 + 1024) - *(_QWORD *)(a1 + 1016)) >> 3);
if ( (int)result > a2 )
*(_DWORD *)(a1 + 1068) = a2;
}
return result;
}