//
// GJChallengeItem::init from 0x10008f7f0 to 0x10008f87c (140 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
//
char __fastcall GJChallengeItem::init(__int64 a1, int a2, int a3, int a4, int a5, const std::string *a6)
{
float v8; // xmm0_4
float v9; // xmm0_4
*(_DWORD *)(a1 + 56) = a2;
*(_DWORD *)(a1 + 96) = a5;
std::string::operator=((std::string *)(a1 + 112), a6);
*(_DWORD *)(a1 + 92) = a3;
v8 = (float)((float)rand() * 4.6566129e-10) * 1000.0;
*(_DWORD *)(a1 + 88) = (int)v8;
*(_DWORD *)(a1 + 84) = a3 + (int)v8;
*(_DWORD *)(a1 + 80) = a4;
v9 = (float)((float)rand() * 4.6566129e-10) * 1000.0;
*(_DWORD *)(a1 + 76) = (int)v9;
*(_DWORD *)(a1 + 72) = a4 + (int)v9;
return 1;
}