//
// sub_F3390 from 0xf3390 to 0xf33bc (44 bytes)
//
// 2 xrefs:
// > sub_F8D74 @ 0xf8e3c
// > sub_F9508 @ 0xf95c4
//
// 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 12:15:06 +0000
//
__int64 __fastcall sub_F3390(__int64 a1, int a2)
{
int v2; // w9
int v4; // w10
v2 = *(_DWORD *)(a1 + 8);
if ( v2 < 0 )
return 0xFFFFFFFFLL;
v4 = *(_DWORD *)(a1 + 12) + a2;
if ( v4 > v2 )
return 0xFFFFFFFFLL;
*(_DWORD *)(a1 + 12) = v4;
return 0;
}