//
// sub_80F588 from 0x80f588 to 0x80f59c (20 bytes)
//
// 5 xrefs:
// > sub_811418 @ 0x811430
// > sub_81406C @ 0x8140f4
// > sub_81406C @ 0x8141b4
// > sub_81406C @ 0x8142e4
// > sub_81406C @ 0x814394
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:01:36 +0000
//
int __fastcall sub_80F588(int a1, unsigned int a2)
{
if ( a2 <= 0x7F )
return a1 + 1;
if ( a2 >= 0x800 )
return a1 + 3;
return a1 + 2;
}