//
// sub_B8B904 from 0xb8b904 to 0xb8b948 (68 bytes)
//
// 0 xrefs:
//
// 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_B8B904(__int64 result, __int64 a2)
{
__int64 v2; // x2
if ( *(_QWORD *)(a2 + 8) >= *(_QWORD *)(a2 + 16) )
return 0xFFFFFFFFLL;
**(_BYTE **)a2 = result;
v2 = *(_QWORD *)(a2 + 8);
++*(_QWORD *)a2;
*(_QWORD *)(a2 + 8) = v2 + 1;
return (unsigned __int8)result;
}