{"type": "func", "start": 4295571712, "end": 4295571944, "name": "GameLevelManager::verifyLevelState", "pseudocode": "// \n// GameLevelManager::verifyLevelState from 0x100093900 to 0x1000939e8 (232 bytes)\n// \n// 1 xrefs:\n// > GameLevelManager::onGetLevelSaveDataCompleted @ 0x10008ee94\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 GameLevelManager::verifyLevelState(GameLevelManager *a1, GJGameLevel *a2)\n{\n  GameStatsManager *v3; // x0\n  GameStatsManager *v4; // x0\n  int v5; // w8\n  int v6; // w8\n  float v7; // s0\n\n  v3 = GameStatsManager::sharedState();\n  if ( GameStatsManager::hasCompletedLevel(v3, a2)\n    && a2->m_stars.random - a2->m_stars.seed >= 8\n    && a2->m_jumps.random - a2->m_jumps.seed <= 49\n    && a2->m_clicks.random - a2->m_clicks.seed <= 49 )\n  {\n    v4 = GameStatsManager::sharedState();\n    GameStatsManager::uncompleteLevel(v4, a2);\n    a2->m_normalPercent.value = 0;\n    v5 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0);\n    a2->m_normalPercent.seed = v5;\n    a2->m_normalPercent.random = v5;\n    a2->m_orbCompletion.value = 0;\n    v6 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0);\n    a2->m_orbCompletion.seed = v6;\n    a2->m_orbCompletion.random = v6;\n    a2->m_newNormalPercent2.value = 0;\n    v7 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;\n    a2->m_newNormalPercent2.seed = (int)v7;\n    a2->m_newNormalPercent2.random = (int)v7;\n    a2->m_bestTime = 0;\n    a2->m_bestPoints = 0;\n    a2->m_isCompletionLegitimate = 1;\n  }\n}", "assembly": "; \n; GameLevelManager::verifyLevelState from 0x100093900 to 0x1000939e8 (232 bytes)\n; \n; 1 xrefs:\n; > GameLevelManager::onGetLevelSaveDataCompleted @ 0x10008ee94\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             D9, D8, [SP,#-0x10+var_20]!                            ; +0x0, 0x100093900\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100093904\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100093908\nADD             X29, SP, #0x20                                         ; +0xc, 0x10009390c\nMOV             X19, X1                                                ; +0x10, 0x100093910\nBL              GameStatsManager__sharedState                          ; +0x14, 0x100093914\nMOV             X1, X19                                                ; +0x18, 0x100093918\nBL              GameStatsManager__hasCompletedLevel                    ; +0x1c, 0x10009391c\nCBZ             W0, loc_1000939D8                                      ; +0x20, 0x100093920\nLDR             W8, [X19,#0x340]                                       ; +0x24, 0x100093924\nLDR             W9, [X19,#0x344]                                       ; +0x28, 0x100093928\nSUB             W8, W8, W9                                             ; +0x2c, 0x10009392c\nCMP             W8, #8                                                 ; +0x30, 0x100093930\nB.LT            loc_1000939D8                                          ; +0x34, 0x100093934\nLDR             W8, [X19,#0x2B4]                                       ; +0x38, 0x100093938\nLDR             W9, [X19,#0x2B8]                                       ; +0x3c, 0x10009393c\nSUB             W8, W8, W9                                             ; +0x40, 0x100093940\nCMP             W8, #0x31 ; '1'                                        ; +0x44, 0x100093944\nB.GT            loc_1000939D8                                          ; +0x48, 0x100093948\nLDR             W8, [X19,#0x2C0]                                       ; +0x4c, 0x10009394c\nLDR             W9, [X19,#0x2C4]                                       ; +0x50, 0x100093950\nSUB             W8, W8, W9                                             ; +0x54, 0x100093954\nCMP             W8, #0x31 ; '1'                                        ; +0x58, 0x100093958\nB.GT            loc_1000939D8                                          ; +0x5c, 0x10009395c\nBL              GameStatsManager__sharedState                          ; +0x60, 0x100093960\nMOV             X1, X19                                                ; +0x64, 0x100093964\nBL              GameStatsManager__uncompleteLevel                      ; +0x68, 0x100093968\nSTR             WZR, [X19,#0x2E0]                                      ; +0x6c, 0x10009396c\nBL              _rand                                                  ; +0x70, 0x100093970\nSCVTF           S0, W0, #0x1F                                          ; +0x74, 0x100093974\nMOV             W8, #0x447A0000                                        ; +0x78, 0x100093978\nFMOV            S8, W8                                                 ; +0x7c, 0x10009397c\nFMUL            S0, S0, S8                                             ; +0x80, 0x100093980\nFCVTZS          W8, S0                                                 ; +0x84, 0x100093984\nSTR             W8, [X19,#0x2E4]                                       ; +0x88, 0x100093988\nSTR             W8, [X19,#0x2E8]                                       ; +0x8c, 0x10009398c\nSTR             WZR, [X19,#0x2F4]                                      ; +0x90, 0x100093990\nBL              _rand                                                  ; +0x94, 0x100093994\nSCVTF           S0, W0, #0x1F                                          ; +0x98, 0x100093998\nFMUL            S0, S0, S8                                             ; +0x9c, 0x10009399c\nFCVTZS          W8, S0                                                 ; +0xa0, 0x1000939a0\nSTR             W8, [X19,#0x2F0]                                       ; +0xa4, 0x1000939a4\nSTR             W8, [X19,#0x2EC]                                       ; +0xa8, 0x1000939a8\nSTR             WZR, [X19,#0x300]                                      ; +0xac, 0x1000939ac\nBL              _rand                                                  ; +0xb0, 0x1000939b0\nSCVTF           S0, W0, #0x1F                                          ; +0xb4, 0x1000939b4\nFMUL            S0, S0, S8                                             ; +0xb8, 0x1000939b8\nFCVTZS          W8, S0                                                 ; +0xbc, 0x1000939bc\nSTR             W8, [X19,#0x2FC]                                       ; +0xc0, 0x1000939c0\nSTR             W8, [X19,#0x2F8]                                       ; +0xc4, 0x1000939c4\nSTR             WZR, [X19,#0x49C]                                      ; +0xc8, 0x1000939c8\nSTR             WZR, [X19,#0x4C8]                                      ; +0xcc, 0x1000939cc\nMOV             W8, #1                                                 ; +0xd0, 0x1000939d0\nSTRB            W8, [X19,#0x2DD]                                       ; +0xd4, 0x1000939d4\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xd8, 0x1000939d8\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xdc, 0x1000939dc\nLDP             D9, D8, [SP+0x20+var_20],#0x30                         ; +0xe0, 0x1000939e0\nRET                                                                    ; +0xe4, 0x1000939e4", "xrefs": ["GameLevelManager::onGetLevelSaveDataCompleted @ 0x10008ee94"], "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"}