//
// GJChallengeItem::dataLoaded from 0x100340608 to 0x10034075c (340 bytes)
//
// 1 xrefs:
// > GJChallengeItem::createWithCoder @ 0x1003405f4
//
// 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
//
void __fastcall GJChallengeItem::dataLoaded(GJChallengeItem *a1, DS_Dictionary *a2)
{
int IntegerForKey; // w21
int v5; // w8
int v6; // w21
int v7; // w8
int v8; // w21
int v9; // w8
__int128 v10; // [xsp+8h] [xbp-48h] BYREF
char *v11; // [xsp+18h] [xbp-38h]
a1->m_challengeType = DS_Dictionary::getIntegerForKey(a2, "1");
a1->m_timeLeft = DS_Dictionary::getIntegerForKey(a2, "5");
a1->m_canClaim = DS_Dictionary::getBoolForKey(a2, "6");
DS_Dictionary::getStringForKey((__int64)a2, "7", &v10);
if ( a1->m_name.m_data.m_short.shortStorage.__elems_[22] < 0 )
operator delete((void *)a1->m_name.m_data.m_long.capacitym1);
*(_OWORD *)&a1->m_name.m_data.m_short.sizex2 = v10;
a1->m_name.m_data.m_long.longStorage = v11;
IntegerForKey = DS_Dictionary::getIntegerForKey(a2, "2");
a1->m_count.value = IntegerForKey;
v5 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0);
a1->m_count.random = IntegerForKey + v5;
a1->m_count.seed = v5;
v6 = DS_Dictionary::getIntegerForKey(a2, "3");
a1->m_goal.value = v6;
v7 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0);
a1->m_goal.random = v6 + v7;
a1->m_goal.seed = v7;
v8 = DS_Dictionary::getIntegerForKey(a2, "4");
a1->m_reward.value = v8;
v9 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0);
a1->m_reward.random = v8 + v9;
a1->m_reward.seed = v9;
a1->m_position = DS_Dictionary::getIntegerForKey(a2, "8");
}