//
// sub_100491974 from 0x100491974 to 0x1004919a4 (48 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_100491974(__int64 a1, int a2, unsigned int a3)
{
unsigned int v3; // w8
bool v4; // cf
int v5; // w8
int v6; // w9
if ( !a2 )
{
v6 = 4;
LABEL_7:
*(_DWORD *)(a1 + 1152) = v6;
return 0;
}
v3 = *(_DWORD *)(a1 + 1152);
if ( v3 )
{
v4 = v3 >= a3;
v5 = v3 - a3;
if ( v4 )
v6 = v5;
else
v6 = 0;
goto LABEL_7;
}
return 11;
}