//
// GJRewardItem::getRandomShardType from 0x7ad4e0 to 0x7ad540 (96 bytes)
//
// 2 xrefs:
// > GJRewardItem::getRandomNonMaxShardType @ 0x7b4028
// > ??> @ 0x79b60
//
// 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
//
SpecialRewardItem GJRewardItem::getRandomShardType()
{
int v0; // w0
SpecialRewardItem v1; // w1
unsigned int v2; // w0
v0 = rand();
v1 = FireShard;
v2 = (int)(floor((float)((float)v0 * 4.6566e-10) * 10.0) + 1.0) - 2;
if ( v2 <= 8 )
return dword_ED0610[v2];
return v1;
}