//
// GJRewardItem::getRandomShardType from 0x51668c to 0x5166d8 (76 bytes)
//
// 1 xrefs:
// > GJRewardItem::getRandomNonMaxShardType @ 0x523096
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:51:41 +0000
//
int __fastcall GJRewardItem::getRandomShardType(GJRewardItem *this)
{
unsigned int v1; // r0
unsigned int v2; // r3
v1 = rand();
v2 = (int)(floor(vcvts_n_f32_s32(v1, 0x1Fu) * 10.0) + 1.0) - 2;
if ( v2 > 8 )
return 1;
else
return aD_2[v2 + 36];
}