{"type": "func", "start": 4271780, "end": 4272038, "name": "GJChallengeItem::dataLoaded", "pseudocode": "// \n// GJChallengeItem::dataLoaded from 0x412ea4 to 0x412fa6 (258 bytes)\n// \n// 1 xrefs:\n// > GJChallengeItem::createWithCoder @ 0x412fe0\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 GJChallengeItem::dataLoaded(GJChallengeItem *a1, DS_Dictionary *a2)\n{\n  int IntegerForKey; // r0\n  int v5; // r0\n  int v6; // r6\n  int v7; // s15\n  int v8; // r0\n  int v9; // r6\n  int v10; // s15\n  int v11; // [sp+0h] [bp-Ch] BYREF\n\n  a1->m_challengeType = DS_Dictionary::getIntegerForKey(a2, (const char *)&aO1i2r3e45s7t89[1]);\n  a1->m_timeLeft = DS_Dictionary::getIntegerForKey(a2, (const char *)&aO1i2r3e45s7t89[8]);\n  a1->m_canClaim = DS_Dictionary::getBoolForKey(a2, \"6\");\n  DS_Dictionary::getStringForKey((DS_Dictionary *)&v11, (const char *)a2);\n  sub_774794(&a1->m_name, &v11);\n  sub_774008(&v11);\n  IntegerForKey = DS_Dictionary::getIntegerForKey(a2, (const char *)&aO1i2r3e45s7t89[3]);\n  GJChallengeItem::setCount(a1, IntegerForKey);\n  v5 = DS_Dictionary::getIntegerForKey(a2, (const char *)&aO1i2r3e45s7t89[5]);\n  a1->m_goal.value = v5;\n  v6 = v5;\n  v7 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0);\n  a1->m_goal.seed = v7;\n  a1->m_goal.random = v7 + v6;\n  v8 = DS_Dictionary::getIntegerForKey(a2, (const char *)&aO1i2r3e45s7t89[7]);\n  a1->m_reward.value = v8;\n  v9 = v8;\n  v10 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0);\n  a1->m_reward.seed = v10;\n  a1->m_reward.random = v10 + v9;\n  a1->m_position = DS_Dictionary::getIntegerForKey(a2, (const char *)&aO1i2r3e45s7t89[12]);\n}", "assembly": "; \n; GJChallengeItem::dataLoaded from 0x412ea4 to 0x412fa6 (258 bytes)\n; \n; 1 xrefs:\n; > GJChallengeItem::createWithCoder @ 0x412fe0\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\nPUSH            {R4-R7,LR}                                             ; +0x0, 0x412ea4\nMOV             R4, R0                                                 ; +0x2, 0x412ea6\nLDR             R7, =(__stack_chk_guard_ptr - 0x412EB6)                ; +0x4, 0x412ea8\nMOV             R5, R1                                                 ; +0x6, 0x412eaa\nVPUSH           {D8}                                                   ; +0x8, 0x412eac\nMOV             R0, R1; this                                           ; +0xc, 0x412eb0\nADD             R7, PC; __stack_chk_guard_ptr                          ; +0xe, 0x412eb2\nLDR             R7, [R7]; __stack_chk_guard                            ; +0x10, 0x412eb4\nLDR             R1, =(aO1i2r3e45s7t89+2 - 0x412EBE); \"1i2r3e45s7t89g\"  ; +0x12, 0x412eb6\nLDR             R3, [R7]                                               ; +0x14, 0x412eb8\nADD             R1, PC; \"1i2r3e45s7t89g\" ; char *                      ; +0x16, 0x412eba\nSUB             SP, SP, #0xC                                           ; +0x18, 0x412ebc\nSTR             R3, [SP,#0xC+var_8]                                    ; +0x1a, 0x412ebe\nBL              _ZN13DS_Dictionary16getIntegerForKeyEPKc; DS_Dictionary::getIntegerForKey(char const*) ; +0x1c, 0x412ec0\nLDR             R1, =(aO1i2r3e45s7t89+0x10 - 0x412ECC); \"5s7t89g\"      ; +0x20, 0x412ec4\nMOV             R6, SP                                                 ; +0x22, 0x412ec6\nADD             R1, PC; \"5s7t89g\" ; char *                             ; +0x24, 0x412ec8\nSTR             R0, [R4,#0x34]                                         ; +0x26, 0x412eca\nMOV             R0, R5; this                                           ; +0x28, 0x412ecc\nBL              _ZN13DS_Dictionary16getIntegerForKeyEPKc; DS_Dictionary::getIntegerForKey(char const*) ; +0x2a, 0x412ece\nLDR             R1, =(a6 - 0x412ED8); \"6\"                              ; +0x2e, 0x412ed2\nADD             R1, PC; \"6\"                                            ; +0x30, 0x412ed4\nSTR             R0, [R4,#0x5C]                                         ; +0x32, 0x412ed6\nMOV             R0, R5; this                                           ; +0x34, 0x412ed8\nBL              _ZN13DS_Dictionary13getBoolForKeyEPKc; DS_Dictionary::getBoolForKey(char const*) ; +0x36, 0x412eda\nLDR             R2, =(aO1i2r3e45s7t89+0x14 - 0x412EE6); \"7t89g\"        ; +0x3a, 0x412ede\nMOV             R1, R5; char *                                         ; +0x3c, 0x412ee0\nADD             R2, PC; \"7t89g\"                                        ; +0x3e, 0x412ee2\nSTRB.W          R0, [R4,#0x60]                                         ; +0x40, 0x412ee4\nMOV             R0, SP; this                                           ; +0x44, 0x412ee8\nBL              _ZN13DS_Dictionary15getStringForKeyEPKc; DS_Dictionary::getStringForKey(char const*) ; +0x46, 0x412eea\nADD.W           R0, R4, #0x68 ; 'h'                                    ; +0x4a, 0x412eee\nMOV             R1, SP                                                 ; +0x4e, 0x412ef2\nBL              sub_774794                                             ; +0x50, 0x412ef4\nMOV             R0, SP                                                 ; +0x54, 0x412ef8\nVLDR            S17, =4.6566e-10                                       ; +0x56, 0x412efa\nBL              sub_774008                                             ; +0x5a, 0x412efe\nLDR             R1, =(aO1i2r3e45s7t89+6 - 0x412F0A); \"2r3e45s7t89g\"    ; +0x5e, 0x412f02\nMOV             R0, R5; this                                           ; +0x60, 0x412f04\nADD             R1, PC; \"2r3e45s7t89g\" ; char *                        ; +0x62, 0x412f06\nVLDR            S16, =1000.0                                           ; +0x64, 0x412f08\nBL              _ZN13DS_Dictionary16getIntegerForKeyEPKc; DS_Dictionary::getIntegerForKey(char const*) ; +0x68, 0x412f0c\nMOV             R1, R0; int                                            ; +0x6c, 0x412f10\nMOV             R0, R4; this                                           ; +0x6e, 0x412f12\nBL              _ZN15GJChallengeItem8setCountEi; GJChallengeItem::setCount(int) ; +0x70, 0x412f14\nLDR             R1, =(aO1i2r3e45s7t89+0xA - 0x412F20); \"3e45s7t89g\"    ; +0x74, 0x412f18\nMOV             R0, R5; this                                           ; +0x76, 0x412f1a\nADD             R1, PC; \"3e45s7t89g\" ; char *                          ; +0x78, 0x412f1c\nBL              _ZN13DS_Dictionary16getIntegerForKeyEPKc; DS_Dictionary::getIntegerForKey(char const*) ; +0x7a, 0x412f1e\nSTR             R0, [R4,#0x58]                                         ; +0x7e, 0x412f22\nMOV             R6, R0                                                 ; +0x80, 0x412f24\nBLX             rand                                                   ; +0x82, 0x412f26\nLDR             R1, =(aO1i2r3e45s7t89+0xE - 0x412F30); \"45s7t89g\"      ; +0x86, 0x412f2a\nADD             R1, PC; \"45s7t89g\" ; char *                            ; +0x88, 0x412f2c\nVMOV            S15, R0                                                ; +0x8a, 0x412f2e\nMOV             R0, R5; this                                           ; +0x8e, 0x412f32\nVCVT.F32.S32    S15, S15                                               ; +0x90, 0x412f34\nVMUL.F32        S15, S15, S17                                          ; +0x94, 0x412f38\nVMUL.F32        S15, S15, S16                                          ; +0x98, 0x412f3c\nVCVT.S32.F32    S15, S15                                               ; +0x9c, 0x412f40\nVMOV            R3, S15                                                ; +0xa0, 0x412f44\nVSTR            S15, [R4,#0x54]                                        ; +0xa4, 0x412f48\nADD             R3, R6                                                 ; +0xa8, 0x412f4c\nSTR             R3, [R4,#0x50]                                         ; +0xaa, 0x412f4e\nBL              _ZN13DS_Dictionary16getIntegerForKeyEPKc; DS_Dictionary::getIntegerForKey(char const*) ; +0xac, 0x412f50\nSTR             R0, [R4,#0x4C]                                         ; +0xb0, 0x412f54\nMOV             R6, R0                                                 ; +0xb2, 0x412f56\nBLX             rand                                                   ; +0xb4, 0x412f58\nLDR             R1, =(aO1i2r3e45s7t89+0x18 - 0x412F62); \"89g\"          ; +0xb8, 0x412f5c\nADD             R1, PC; \"89g\" ; char *                                 ; +0xba, 0x412f5e\nVMOV            S15, R0                                                ; +0xbc, 0x412f60\nMOV             R0, R5; this                                           ; +0xc0, 0x412f64\nVCVT.F32.S32    S15, S15                                               ; +0xc2, 0x412f66\nVMUL.F32        S15, S15, S17                                          ; +0xc6, 0x412f6a\nVMUL.F32        S15, S15, S16                                          ; +0xca, 0x412f6e\nVCVT.S32.F32    S15, S15                                               ; +0xce, 0x412f72\nVMOV            R3, S15                                                ; +0xd2, 0x412f76\nVSTR            S15, [R4,#0x48]                                        ; +0xd6, 0x412f7a\nADD             R3, R6                                                 ; +0xda, 0x412f7e\nSTR             R3, [R4,#0x44]                                         ; +0xdc, 0x412f80\nBL              _ZN13DS_Dictionary16getIntegerForKeyEPKc; DS_Dictionary::getIntegerForKey(char const*) ; +0xde, 0x412f82\nLDR             R2, [SP,#0xC+var_8]                                    ; +0xe2, 0x412f86\nLDR             R3, [R7]                                               ; +0xe4, 0x412f88\nCMP             R2, R3                                                 ; +0xe6, 0x412f8a\nSTR             R0, [R4,#0x64]                                         ; +0xe8, 0x412f8c\nBEQ             loc_412F9E                                             ; +0xea, 0x412f8e\nBLX             __stack_chk_fail                                       ; +0xec, 0x412f90\nMOV             R0, R6                                                 ; +0xf0, 0x412f94\nBL              sub_774008                                             ; +0xf2, 0x412f96\nBL              __cxa_end_cleanup                                      ; +0xf6, 0x412f9a\nADD             SP, SP, #0xC                                           ; +0xfa, 0x412f9e\nVPOP            {D8}                                                   ; +0xfc, 0x412fa0\nPOP             {R4-R7,PC}                                             ; +0x100, 0x412fa4", "xrefs": ["GJChallengeItem::createWithCoder @ 0x412fe0"], "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"}