{"type": "func", "start": 4298376712, "end": 4298377052, "name": "GJChallengeItem::dataLoaded", "pseudocode": "// \n// GJChallengeItem::dataLoaded from 0x100340608 to 0x10034075c (340 bytes)\n// \n// 1 xrefs:\n// > GJChallengeItem::createWithCoder @ 0x1003405f4\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall GJChallengeItem::dataLoaded(GJChallengeItem *a1, DS_Dictionary *a2)\n{\n  int IntegerForKey; // w21\n  int v5; // w8\n  int v6; // w21\n  int v7; // w8\n  int v8; // w21\n  int v9; // w8\n  __int128 v10; // [xsp+8h] [xbp-48h] BYREF\n  char *v11; // [xsp+18h] [xbp-38h]\n\n  a1->m_challengeType = DS_Dictionary::getIntegerForKey(a2, \"1\");\n  a1->m_timeLeft = DS_Dictionary::getIntegerForKey(a2, \"5\");\n  a1->m_canClaim = DS_Dictionary::getBoolForKey(a2, \"6\");\n  DS_Dictionary::getStringForKey((__int64)a2, \"7\", &v10);\n  if ( a1->m_name.m_data.m_short.shortStorage.__elems_[22] < 0 )\n    operator delete((void *)a1->m_name.m_data.m_long.capacitym1);\n  *(_OWORD *)&a1->m_name.m_data.m_short.sizex2 = v10;\n  a1->m_name.m_data.m_long.longStorage = v11;\n  IntegerForKey = DS_Dictionary::getIntegerForKey(a2, \"2\");\n  a1->m_count.value = IntegerForKey;\n  v5 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0);\n  a1->m_count.random = IntegerForKey + v5;\n  a1->m_count.seed = v5;\n  v6 = DS_Dictionary::getIntegerForKey(a2, \"3\");\n  a1->m_goal.value = v6;\n  v7 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0);\n  a1->m_goal.random = v6 + v7;\n  a1->m_goal.seed = v7;\n  v8 = DS_Dictionary::getIntegerForKey(a2, \"4\");\n  a1->m_reward.value = v8;\n  v9 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0);\n  a1->m_reward.random = v8 + v9;\n  a1->m_reward.seed = v9;\n  a1->m_position = DS_Dictionary::getIntegerForKey(a2, \"8\");\n}", "assembly": "; \n; GJChallengeItem::dataLoaded from 0x100340608 to 0x10034075c (340 bytes)\n; \n; 1 xrefs:\n; > GJChallengeItem::createWithCoder @ 0x1003405f4\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSUB             SP, SP, #0x60                                          ; +0x0, 0x100340608\nSTP             D9, D8, [SP,#0x50+var_30]                              ; +0x4, 0x10034060c\nSTP             X22, X21, [SP,#0x50+var_20]                            ; +0x8, 0x100340610\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0xc, 0x100340614\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0x10, 0x100340618\nADD             X29, SP, #0x50                                         ; +0x14, 0x10034061c\nMOV             X20, X1                                                ; +0x18, 0x100340620\nMOV             X19, X0                                                ; +0x1c, 0x100340624\nADRL            X1, a1; \"1\"                                            ; +0x20, 0x100340628\nMOV             X0, X20                                                ; +0x28, 0x100340630\nBL              DS_Dictionary__getIntegerForKey                        ; +0x2c, 0x100340634\nSTR             W0, [X19,#0x38]                                        ; +0x30, 0x100340638\nADRL            X1, a5; \"5\"                                            ; +0x34, 0x10034063c\nMOV             X0, X20                                                ; +0x3c, 0x100340644\nBL              DS_Dictionary__getIntegerForKey                        ; +0x40, 0x100340648\nSTR             W0, [X19,#0x60]                                        ; +0x44, 0x10034064c\nADRL            X1, a6; \"6\"                                            ; +0x48, 0x100340650\nMOV             X0, X20                                                ; +0x50, 0x100340658\nBL              DS_Dictionary__getBoolForKey                           ; +0x54, 0x10034065c\nSTRB            W0, [X19,#0x64]                                        ; +0x58, 0x100340660\nADRL            X1, a7; \"7\"                                            ; +0x5c, 0x100340664\nADD             X8, SP, #0x50+var_48                                   ; +0x64, 0x10034066c\nMOV             X0, X20                                                ; +0x68, 0x100340670\nBL              DS_Dictionary__getStringForKey                         ; +0x6c, 0x100340674\nLDRSB           W8, [X19,#0x87]                                        ; +0x70, 0x100340678\nTBZ             W8, #0x1F, loc_100340688                               ; +0x74, 0x10034067c\nLDUR            X0, [X19,#0x70]; __p                                   ; +0x78, 0x100340680\nBL              __ZdlPv; operator delete(void *)                       ; +0x7c, 0x100340684\nLDUR            Q0, [SP,#0x50+var_48]                                  ; +0x80, 0x100340688\nSTUR            Q0, [X19,#0x70]                                        ; +0x84, 0x10034068c\nLDR             X8, [SP,#0x50+var_38]                                  ; +0x88, 0x100340690\nSTUR            X8, [X19,#0x80]                                        ; +0x8c, 0x100340694\nADRL            X1, a2; \"2\"                                            ; +0x90, 0x100340698\nMOV             X0, X20                                                ; +0x98, 0x1003406a0\nBL              DS_Dictionary__getIntegerForKey                        ; +0x9c, 0x1003406a4\nMOV             X21, X0                                                ; +0xa0, 0x1003406a8\nSTR             W0, [X19,#0x44]                                        ; +0xa4, 0x1003406ac\nBL              _rand                                                  ; +0xa8, 0x1003406b0\nSCVTF           S0, W0, #0x1F                                          ; +0xac, 0x1003406b4\nMOV             W8, #0x447A0000                                        ; +0xb0, 0x1003406b8\nFMOV            S8, W8                                                 ; +0xb4, 0x1003406bc\nFMUL            S0, S0, S8                                             ; +0xb8, 0x1003406c0\nFCVTZS          W8, S0                                                 ; +0xbc, 0x1003406c4\nADD             W9, W21, W8                                            ; +0xc0, 0x1003406c8\nSTP             W9, W8, [X19,#0x3C]                                    ; +0xc4, 0x1003406cc\nADRL            X1, a3; \"3\"                                            ; +0xc8, 0x1003406d0\nMOV             X0, X20                                                ; +0xd0, 0x1003406d8\nBL              DS_Dictionary__getIntegerForKey                        ; +0xd4, 0x1003406dc\nMOV             X21, X0                                                ; +0xd8, 0x1003406e0\nSTR             W0, [X19,#0x5C]                                        ; +0xdc, 0x1003406e4\nBL              _rand                                                  ; +0xe0, 0x1003406e8\nSCVTF           S0, W0, #0x1F                                          ; +0xe4, 0x1003406ec\nFMUL            S0, S0, S8                                             ; +0xe8, 0x1003406f0\nFCVTZS          W8, S0                                                 ; +0xec, 0x1003406f4\nADD             W9, W21, W8                                            ; +0xf0, 0x1003406f8\nSTP             W9, W8, [X19,#0x54]                                    ; +0xf4, 0x1003406fc\nADRL            X1, a4; \"4\"                                            ; +0xf8, 0x100340700\nMOV             X0, X20                                                ; +0x100, 0x100340708\nBL              DS_Dictionary__getIntegerForKey                        ; +0x104, 0x10034070c\nMOV             X21, X0                                                ; +0x108, 0x100340710\nSTR             W0, [X19,#0x50]                                        ; +0x10c, 0x100340714\nBL              _rand                                                  ; +0x110, 0x100340718\nSCVTF           S0, W0, #0x1F                                          ; +0x114, 0x10034071c\nFMUL            S0, S0, S8                                             ; +0x118, 0x100340720\nFCVTZS          W8, S0                                                 ; +0x11c, 0x100340724\nADD             W9, W21, W8                                            ; +0x120, 0x100340728\nSTP             W9, W8, [X19,#0x48]                                    ; +0x124, 0x10034072c\nADRL            X1, a8; \"8\"                                            ; +0x128, 0x100340730\nMOV             X0, X20                                                ; +0x130, 0x100340738\nBL              DS_Dictionary__getIntegerForKey                        ; +0x134, 0x10034073c\nSTR             W0, [X19,#0x68]                                        ; +0x138, 0x100340740\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0x13c, 0x100340744\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0x140, 0x100340748\nLDP             X22, X21, [SP,#0x50+var_20]                            ; +0x144, 0x10034074c\nLDP             D9, D8, [SP,#0x50+var_30]                              ; +0x148, 0x100340750\nADD             SP, SP, #0x60 ; '`'                                    ; +0x14c, 0x100340754\nRET                                                                    ; +0x150, 0x100340758", "xrefs": ["GJChallengeItem::createWithCoder @ 0x1003405f4"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}