{"type": "func", "start": 7387508, "end": 7387652, "name": "GJGameLevel::levelWasAltered", "pseudocode": "// \n// GJGameLevel::levelWasAltered from 0x70b974 to 0x70ba04 (144 bytes)\n// \n// 2 xrefs:\n// > EditorPauseLayer::saveLevel @ 0x78e258\n// > <???> @ 0x64c08\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::levelWasAltered(GJGameLevel *a1)\n{\n  int v2; // w1\n  _BOOL4 m_isUploaded; // w0\n  int m_levelVersion; // w0\n\n  a1->m_isVerifiedRaw = 0;\n  a1->m_hasBeenModified = 1;\n  v2 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0);\n  a1->m_isVerified.seed = v2;\n  a1->m_isVerified.random = v2;\n  GJGameLevel::unverifyCoins(a1);\n  sub_D1798C(&a1->m_capacityString, &byte_F288A0, 0);\n  a1->m_bestTime = 0;\n  m_isUploaded = a1->m_isUploaded;\n  a1->m_bestPoints = 0;\n  a1->m_savedTime = 0;\n  a1->m_savedPoints = 0;\n  if ( m_isUploaded )\n  {\n    m_levelVersion = a1->m_levelVersion;\n    a1->m_isUploaded = 0;\n    a1->m_levelVersion = m_levelVersion + 1;\n  }\n}", "assembly": "; \n; GJGameLevel::levelWasAltered from 0x70b974 to 0x70ba04 (144 bytes)\n; \n; 2 xrefs:\n; > EditorPauseLayer::saveLevel @ 0x78e258\n; > <???> @ 0x64c08\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_20]!                                ; +0x0, 0x70b974\nMOV             X29, SP                                                ; +0x4, 0x70b978\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0x70b97c\nMOV             X19, X0                                                ; +0xc, 0x70b980\nSTRB            WZR, [X0,#0x20C]                                       ; +0x10, 0x70b984\nMOV             W0, #1                                                 ; +0x14, 0x70b988\nSTRB            W0, [X19,#0x20E]                                       ; +0x18, 0x70b98c\nBL              .rand                                                  ; +0x1c, 0x70b990\nSCVTF           S0, W0                                                 ; +0x20, 0x70b994\nMOV             X0, X19; this                                          ; +0x24, 0x70b998\nLDR             S1, =0x30000000                                        ; +0x28, 0x70b99c\nFMUL            S0, S0, S1                                             ; +0x2c, 0x70b9a0\nLDR             S1, =0x447A0000                                        ; +0x30, 0x70b9a4\nFMUL            S0, S0, S1                                             ; +0x34, 0x70b9a8\nFCVTZS          W1, S0                                                 ; +0x38, 0x70b9ac\nSTR             W1, [X19,#0x208]                                       ; +0x3c, 0x70b9b0\nSTR             W1, [X19,#0x204]                                       ; +0x40, 0x70b9b4\nBL              _ZN11GJGameLevel13unverifyCoinsEv; GJGameLevel::unverifyCoins(void) ; +0x44, 0x70b9b8\nADRP            X1, #byte_F288A0@PAGE                                  ; +0x48, 0x70b9bc\nADD             X0, X19, #0x378                                        ; +0x4c, 0x70b9c0\nADD             X1, X1, #byte_F288A0@PAGEOFF                           ; +0x50, 0x70b9c4\nMOV             X2, #0                                                 ; +0x54, 0x70b9c8\nBL              sub_D1798C                                             ; +0x58, 0x70b9cc\nSTR             WZR, [X19,#0x3AC]                                      ; +0x5c, 0x70b9d0\nLDRB            W0, [X19,#0x20D]                                       ; +0x60, 0x70b9d4\nSTR             WZR, [X19,#0x3C8]                                      ; +0x64, 0x70b9d8\nSTRB            WZR, [X19,#0x3F8]                                      ; +0x68, 0x70b9dc\nSTRB            WZR, [X19,#0x3F9]                                      ; +0x6c, 0x70b9e0\nCBZ             W0, loc_70B9F8                                         ; +0x70, 0x70b9e4\nLDR             W0, [X19,#0x210]                                       ; +0x74, 0x70b9e8\nSTRB            WZR, [X19,#0x20D]                                      ; +0x78, 0x70b9ec\nADD             W0, W0, #1                                             ; +0x7c, 0x70b9f0\nSTR             W0, [X19,#0x210]                                       ; +0x80, 0x70b9f4\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x84, 0x70b9f8\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x88, 0x70b9fc\nRET                                                                    ; +0x8c, 0x70ba00", "xrefs": ["EditorPauseLayer::saveLevel @ 0x78e258", "<???> @ 0x64c08"], "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"}