//
// sub_1001A9E74 from 0x1001a9e74 to 0x1001a9ea4 (48 bytes)
//
// 6 xrefs:
// > GameSettingsLayer::buildTabContent @ 0x10016470c
// > GameSettingsLayer::buildTabContent @ 0x10016484c
// > GameSettingsLayer::buildTabContent @ 0x100164adc
// > GameSettingsLayer::buildTabContent @ 0x100164c40
// > GameSettingsLayer::buildTabContent @ 0x100165018
// > GameSettingsLayer::buildTabContent @ 0x1001650f8
//
// 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 11:00:05 +0000
//
__int64 __fastcall sub_1001A9E74(__int64 result, signed int a2)
{
if ( (a2 & 0x80000000) == 0
&& (int)(954437177 * ((*(_QWORD *)(result + 1024) - *(_QWORD *)(result + 1016)) >> 3)) > a2 )
{
*(_DWORD *)(result + 1068) = a2;
}
return result;
}