{"type": "func", "start": 3957664, "end": 3957714, "name": "GJGameLevel::setNormalPercent", "pseudocode": "// \n// GJGameLevel::setNormalPercent from 0x3c63a0 to 0x3c63d2 (50 bytes)\n// \n// 7 xrefs:\n// > GameLevelManager::updateLevelRewards @ 0x3c63ec\n// > GameLevelManager::saveFetchedLevels @ 0x3c6512\n// > GameLevelManager::saveLevel @ 0x3c6f52\n// > GJGameLevel::dataLoaded @ 0x3c8940\n// > GameLevelManager::verifyLevelState @ 0x3c948a\n// > GJGameLevel::savePercentage @ 0x3d54f0\n// > GJGameLevel::handleStatsConflict @ 0x3d84e0\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 GJGameLevel::setNormalPercent(GJGameLevel *a1, int a2)\n{\n  int v4; // s15\n\n  a1->m_normalPercent.value = a2;\n  v4 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0);\n  a1->m_normalPercent.seed = v4;\n  a1->m_normalPercent.random = v4 + a2;\n}", "assembly": "; \n; GJGameLevel::setNormalPercent from 0x3c63a0 to 0x3c63d2 (50 bytes)\n; \n; 7 xrefs:\n; > GameLevelManager::updateLevelRewards @ 0x3c63ec\n; > GameLevelManager::saveFetchedLevels @ 0x3c6512\n; > GameLevelManager::saveLevel @ 0x3c6f52\n; > GJGameLevel::dataLoaded @ 0x3c8940\n; > GameLevelManager::verifyLevelState @ 0x3c948a\n; > GJGameLevel::savePercentage @ 0x3d54f0\n; > GJGameLevel::handleStatsConflict @ 0x3d84e0\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, 0x3c63a0\nMOV             R4, R0                                                 ; +0x2, 0x3c63a2\nSTR.W           R1, [R4,#0x1EC]                                        ; +0x4, 0x3c63a4\nMOV             R5, R1                                                 ; +0x8, 0x3c63a8\nBLX             rand                                                   ; +0xa, 0x3c63aa\nVLDR            S14, =1000.0                                           ; +0xe, 0x3c63ae\nVMOV            S15, R0                                                ; +0x12, 0x3c63b2\nVCVT.F32.S32    S15, S15, #0x1F                                        ; +0x16, 0x3c63b6\nVMUL.F32        S15, S15, S14                                          ; +0x1a, 0x3c63ba\nVCVT.S32.F32    S15, S15                                               ; +0x1e, 0x3c63be\nVMOV            R3, S15                                                ; +0x22, 0x3c63c2\nVSTR            S15, [R4,#0x1F0]                                       ; +0x26, 0x3c63c6\nADD             R3, R5                                                 ; +0x2a, 0x3c63ca\nSTR.W           R3, [R4,#0x1F4]                                        ; +0x2c, 0x3c63cc\nPOP             {R3-R5,PC}                                             ; +0x30, 0x3c63d0", "xrefs": ["GameLevelManager::updateLevelRewards @ 0x3c63ec", "GameLevelManager::saveFetchedLevels @ 0x3c6512", "GameLevelManager::saveLevel @ 0x3c6f52", "GJGameLevel::dataLoaded @ 0x3c8940", "GameLevelManager::verifyLevelState @ 0x3c948a", "GJGameLevel::savePercentage @ 0x3d54f0", "GJGameLevel::handleStatsConflict @ 0x3d84e0"], "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"}