//
// 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!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__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;
}