{"type": "func", "start": 7360064, "end": 7360144, "name": "GJGameLevel::setNormalPercent", "pseudocode": "// \n// GJGameLevel::setNormalPercent from 0x704e40 to 0x704e90 (80 bytes)\n// \n// 8 xrefs:\n// > GameLevelManager::updateLevelRewards @ 0x704ef8\n// > GameLevelManager::saveFetchedLevels @ 0x705100\n// > GameLevelManager::saveLevel @ 0x706c7c\n// > GJGameLevel::dataLoaded @ 0x709f4c\n// > GameLevelManager::verifyLevelState @ 0x70b468\n// > GJGameLevel::savePercentage @ 0x735f10\n// > GJGameLevel::handleStatsConflict @ 0x739560\n// > <???> @ 0xa77f0\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 v3; // w0\n\n  a1->m_normalPercent.value = a2;\n  v3 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0);\n  a1->m_normalPercent.seed = v3;\n  a1->m_normalPercent.random = a2 + v3;\n}", "assembly": "; \n; GJGameLevel::setNormalPercent from 0x704e40 to 0x704e90 (80 bytes)\n; \n; 8 xrefs:\n; > GameLevelManager::updateLevelRewards @ 0x704ef8\n; > GameLevelManager::saveFetchedLevels @ 0x705100\n; > GameLevelManager::saveLevel @ 0x706c7c\n; > GJGameLevel::dataLoaded @ 0x709f4c\n; > GameLevelManager::verifyLevelState @ 0x70b468\n; > GJGameLevel::savePercentage @ 0x735f10\n; > GJGameLevel::handleStatsConflict @ 0x739560\n; > <???> @ 0xa77f0\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\nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x704e40\nMOV             X29, SP                                                ; +0x4, 0x704e44\nSTR             X19, [SP,#0x30+var_20]                                 ; +0x8, 0x704e48\nMOV             X19, X0                                                ; +0xc, 0x704e4c\nSTR             W1, [X0,#0x250]                                        ; +0x10, 0x704e50\nSTR             X1, [X29,#0x30+var_8]                                  ; +0x14, 0x704e54\nBL              .rand                                                  ; +0x18, 0x704e58\nSCVTF           S0, W0                                                 ; +0x1c, 0x704e5c\nLDR             X1, [X29,#0x30+var_8]                                  ; +0x20, 0x704e60\nLDR             S1, =0x30000000                                        ; +0x24, 0x704e64\nFMUL            S0, S0, S1                                             ; +0x28, 0x704e68\nLDR             S1, =0x447A0000                                        ; +0x2c, 0x704e6c\nFMUL            S0, S0, S1                                             ; +0x30, 0x704e70\nFCVTZS          W0, S0                                                 ; +0x34, 0x704e74\nSTR             W0, [X19,#0x254]                                       ; +0x38, 0x704e78\nADD             W1, W1, W0                                             ; +0x3c, 0x704e7c\nSTR             W1, [X19,#0x258]                                       ; +0x40, 0x704e80\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x44, 0x704e84\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x48, 0x704e88\nRET                                                                    ; +0x4c, 0x704e8c", "xrefs": ["GameLevelManager::updateLevelRewards @ 0x704ef8", "GameLevelManager::saveFetchedLevels @ 0x705100", "GameLevelManager::saveLevel @ 0x706c7c", "GJGameLevel::dataLoaded @ 0x709f4c", "GameLevelManager::verifyLevelState @ 0x70b468", "GJGameLevel::savePercentage @ 0x735f10", "GJGameLevel::handleStatsConflict @ 0x739560", "<???> @ 0xa77f0"], "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"}