//
// sub_1001A9FB0 from 0x1001a9fb0 to 0x1001aa010 (96 bytes)
//
// 3 xrefs:
// > GameSettingsLayer::addSpecialContent @ 0x100165420
// > GameSettingsLayer::addSpecialContent @ 0x1001656fc
// > GameSettingsLayer::addSpecialContent @ 0x10016581c
//
// 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_1001A9FB0(__int64 a1, signed int a2, int a3)
{
__int64 result; // x0
__int64 v5; // x9
__int64 v6; // x8
__int64 v7; // x8
__int64 *v8; // t2
if ( a2 < 0 )
return 0;
result = 0;
if ( (a3 & 0x80000000) == 0 )
{
v5 = *(_QWORD *)(a1 + 1048);
v6 = *(_QWORD *)(a1 + 1040);
if ( (int)(-1431655765 * ((unsigned __int64)(v5 - v6) >> 3)) > a2 )
{
v8 = (__int64 *)(v6 + 24LL * (unsigned int)a2);
v7 = *v8;
if ( (int)((unsigned __int64)(v8[1] - *v8) >> 2) > a3 )
return *(unsigned int *)(v7 + 4LL * (unsigned int)a3);
return 0;
}
}
return result;
}