{"type": "func", "start": 4245544, "end": 4245590, "name": "GJChallengeItem::setCount", "pseudocode": "// \n// GJChallengeItem::setCount from 0x40c828 to 0x40c856 (46 bytes)\n// \n// 3 xrefs:\n// > GJChallengeItem::incrementCount @ 0x412d30\n// > GJChallengeItem::dataLoaded @ 0x412f14\n// > GameStatsManager::dataLoaded @ 0x41dfa2\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::setCount(GJChallengeItem *a1, int a2)\n{\n  int v4; // s15\n\n  a1->m_count.value = a2;\n  v4 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0);\n  a1->m_count.seed = v4;\n  a1->m_count.random = v4 + a2;\n}", "assembly": "; \n; GJChallengeItem::setCount from 0x40c828 to 0x40c856 (46 bytes)\n; \n; 3 xrefs:\n; > GJChallengeItem::incrementCount @ 0x412d30\n; > GJChallengeItem::dataLoaded @ 0x412f14\n; > GameStatsManager::dataLoaded @ 0x41dfa2\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            {R3-R5,LR}                                             ; +0x0, 0x40c828\nMOV             R4, R0                                                 ; +0x2, 0x40c82a\nSTR             R1, [R4,#0x40]                                         ; +0x4, 0x40c82c\nMOV             R5, R1                                                 ; +0x6, 0x40c82e\nBLX             rand                                                   ; +0x8, 0x40c830\nVLDR            S14, =1000.0                                           ; +0xc, 0x40c834\nVMOV            S15, R0                                                ; +0x10, 0x40c838\nVCVT.F32.S32    S15, S15, #0x1F                                        ; +0x14, 0x40c83c\nVMUL.F32        S15, S15, S14                                          ; +0x18, 0x40c840\nVCVT.S32.F32    S15, S15                                               ; +0x1c, 0x40c844\nVMOV            R3, S15                                                ; +0x20, 0x40c848\nVSTR            S15, [R4,#0x3C]                                        ; +0x24, 0x40c84c\nADD             R3, R5                                                 ; +0x28, 0x40c850\nSTR             R3, [R4,#0x38]                                         ; +0x2a, 0x40c852\nPOP             {R3-R5,PC}                                             ; +0x2c, 0x40c854", "xrefs": ["GJChallengeItem::incrementCount @ 0x412d30", "GJChallengeItem::dataLoaded @ 0x412f14", "GameStatsManager::dataLoaded @ 0x41dfa2"], "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"}