//
// GJChallengeItem::dataLoaded from 0x412ea4 to 0x412fa6 (258 bytes)
//
// 1 xrefs:
// > GJChallengeItem::createWithCoder @ 0x412fe0
//
// 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 GJChallengeItem::dataLoaded(GJChallengeItem *a1, DS_Dictionary *a2)
{
int IntegerForKey; // r0
int v5; // r0
int v6; // r6
int v7; // s15
int v8; // r0
int v9; // r6
int v10; // s15
int v11; // [sp+0h] [bp-Ch] BYREF
a1->m_challengeType = DS_Dictionary::getIntegerForKey(a2, (const char *)&aO1i2r3e45s7t89[1]);
a1->m_timeLeft = DS_Dictionary::getIntegerForKey(a2, (const char *)&aO1i2r3e45s7t89[8]);
a1->m_canClaim = DS_Dictionary::getBoolForKey(a2, "6");
DS_Dictionary::getStringForKey((DS_Dictionary *)&v11, (const char *)a2);
sub_774794(&a1->m_name, &v11);
sub_774008(&v11);
IntegerForKey = DS_Dictionary::getIntegerForKey(a2, (const char *)&aO1i2r3e45s7t89[3]);
GJChallengeItem::setCount(a1, IntegerForKey);
v5 = DS_Dictionary::getIntegerForKey(a2, (const char *)&aO1i2r3e45s7t89[5]);
a1->m_goal.value = v5;
v6 = v5;
v7 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0);
a1->m_goal.seed = v7;
a1->m_goal.random = v7 + v6;
v8 = DS_Dictionary::getIntegerForKey(a2, (const char *)&aO1i2r3e45s7t89[7]);
a1->m_reward.value = v8;
v9 = v8;
v10 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0);
a1->m_reward.seed = v10;
a1->m_reward.random = v10 + v9;
a1->m_position = DS_Dictionary::getIntegerForKey(a2, (const char *)&aO1i2r3e45s7t89[12]);
}