//
// sub_F2900 from 0xf2900 to 0xf2930 (48 bytes)
//
// 9 xrefs:
// > sub_F13AC @ 0xf14e4
// > sub_F13AC @ 0xf183c
// > sub_F13AC @ 0xf1868
// > sub_F13AC @ 0xf1b08
// > sub_F13AC @ 0xf1ebc
// > sub_F13AC @ 0xf210c
// > sub_F13AC @ 0xf214c
// > sub_F13AC @ 0xf21b4
// > sub_F2CF0 @ 0xf2cf8
//
// 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:05 +0000
//
__int64 __fastcall sub_F2900(__int64 result, int a2)
{
__int64 v2; // x8
v2 = *(_QWORD *)(result + 8);
if ( !*(_DWORD *)(v2 + 4112) )
return (*(__int64 (**)(void))(v2 + 56))();
if ( a2 == 3 )
++*(_DWORD *)(v2 + 6864);
return result;
}