{"type": "func", "start": 4295673404, "end": 4295673540, "name": "GJGameLevel::levelWasAltered", "pseudocode": "// \n// GJGameLevel::levelWasAltered from 0x1000ac63c to 0x1000ac6c4 (136 bytes)\n// \n// 1 xrefs:\n// > EditorPauseLayer::saveLevel @ 0x10039e380\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 GJGameLevel::levelWasAltered(GJGameLevel *a1)\n{\n  int v2; // w8\n\n  a1->m_hasBeenModified = 1;\n  a1->m_isVerifiedRaw = 0;\n  v2 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0);\n  a1->m_isVerified.seed = v2;\n  a1->m_isVerified.random = v2;\n  GJGameLevel::unverifyCoins(a1);\n  std::string::assign((std::string *)&a1->m_capacityString, \"\");\n  a1->m_bestTime = 0;\n  a1->m_bestPoints = 0;\n  *(_WORD *)&a1->m_savedTime = 0;\n  if ( a1->m_isUploaded )\n  {\n    a1->m_isUploaded = 0;\n    ++a1->m_levelVersion;\n  }\n}", "assembly": "; \n; GJGameLevel::levelWasAltered from 0x1000ac63c to 0x1000ac6c4 (136 bytes)\n; \n; 1 xrefs:\n; > EditorPauseLayer::saveLevel @ 0x10039e380\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             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1000ac63c\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1000ac640\nADD             X29, SP, #0x10                                         ; +0x8, 0x1000ac644\nMOV             X19, X0                                                ; +0xc, 0x1000ac648\nMOV             W8, #1                                                 ; +0x10, 0x1000ac64c\nSTRB            W8, [X0,#0x29E]                                        ; +0x14, 0x1000ac650\nSTRB            WZR, [X0,#0x29C]                                       ; +0x18, 0x1000ac654\nBL              _rand                                                  ; +0x1c, 0x1000ac658\nSCVTF           S0, W0, #0x1F                                          ; +0x20, 0x1000ac65c\nMOV             W8, #0x447A0000                                        ; +0x24, 0x1000ac660\nFMOV            S1, W8                                                 ; +0x28, 0x1000ac664\nFMUL            S0, S0, S1                                             ; +0x2c, 0x1000ac668\nFCVTZS          W8, S0                                                 ; +0x30, 0x1000ac66c\nSTR             W8, [X19,#0x298]                                       ; +0x34, 0x1000ac670\nSTR             W8, [X19,#0x294]                                       ; +0x38, 0x1000ac674\nMOV             X0, X19                                                ; +0x3c, 0x1000ac678\nBL              GJGameLevel__unverifyCoins                             ; +0x40, 0x1000ac67c\nADRL            X1, asc_100746688; \"\"                                  ; +0x44, 0x1000ac680\nADD             X0, X19, #0x428; this                                  ; +0x4c, 0x1000ac688\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x50, 0x1000ac68c\nSTR             WZR, [X19,#0x49C]                                      ; +0x54, 0x1000ac690\nSTR             WZR, [X19,#0x4C8]                                      ; +0x58, 0x1000ac694\nSTRH            WZR, [X19,#0x528]                                      ; +0x5c, 0x1000ac698\nLDRB            W8, [X19,#0x29D]                                       ; +0x60, 0x1000ac69c\nCMP             W8, #1                                                 ; +0x64, 0x1000ac6a0\nB.NE            loc_1000AC6B8                                          ; +0x68, 0x1000ac6a4\nSTRB            WZR, [X19,#0x29D]                                      ; +0x6c, 0x1000ac6a8\nLDR             W8, [X19,#0x2A0]                                       ; +0x70, 0x1000ac6ac\nADD             W8, W8, #1                                             ; +0x74, 0x1000ac6b0\nSTR             W8, [X19,#0x2A0]                                       ; +0x78, 0x1000ac6b4\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x7c, 0x1000ac6b8\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x80, 0x1000ac6bc\nRET                                                                    ; +0x84, 0x1000ac6c0", "xrefs": ["EditorPauseLayer::saveLevel @ 0x10039e380"], "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"}