//
// sub_10056284C from 0x10056284c to 0x100562884 (56 bytes)
//
// 2 xrefs:
// > sub_100561458 @ 0x10056146c
// > sub_100562884 @ 0x10056289c
//
// 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_10056284C(__int64 result, __int64 a2)
{
__int64 v2; // x9
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;
}