{"type": "func", "start": 3970724, "end": 3970828, "name": "GJGameLevel::levelWasAltered", "pseudocode": "// \n// GJGameLevel::levelWasAltered from 0x3c96a4 to 0x3c970c (104 bytes)\n// \n// 1 xrefs:\n// > EditorPauseLayer::saveLevel @ 0x401336\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; // s15\n  _BOOL4 m_isUploaded; // r3\n  int m_levelVersion; // r3\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  sub_7753D4((int)&a1->m_capacityString, (char *)&unk_939830);\n  m_isUploaded = a1->m_isUploaded;\n  a1->m_bestTime = 0;\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 0x3c96a4 to 0x3c970c (104 bytes)\n; \n; 1 xrefs:\n; > EditorPauseLayer::saveLevel @ 0x401336\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, 0x3c96a4\nMOVS            R3, #1                                                 ; +0x2, 0x3c96a6\nMOVS            R5, #0                                                 ; +0x4, 0x3c96a8\nSTRB.W          R3, [R0,#0x1AA]                                        ; +0x6, 0x3c96aa\nSTRB.W          R5, [R0,#0x1A8]                                        ; +0xa, 0x3c96ae\nMOV             R4, R0                                                 ; +0xe, 0x3c96b2\nBLX             rand                                                   ; +0x10, 0x3c96b4\nVLDR            S14, =1000.0                                           ; +0x14, 0x3c96b8\nVMOV            S15, R0                                                ; +0x18, 0x3c96bc\nMOV             R0, R4; this                                           ; +0x1c, 0x3c96c0\nVCVT.F32.S32    S15, S15, #0x1F                                        ; +0x1e, 0x3c96c2\nVMUL.F32        S15, S15, S14                                          ; +0x22, 0x3c96c6\nVCVT.S32.F32    S15, S15                                               ; +0x26, 0x3c96ca\nVSTR            S15, [R4,#0x1A4]                                       ; +0x2a, 0x3c96ce\nVSTR            S15, [R4,#0x1A0]                                       ; +0x2e, 0x3c96d2\nBL              _ZN11GJGameLevel13unverifyCoinsEv; GJGameLevel::unverifyCoins(void) ; +0x32, 0x3c96d6\nLDR             R1, =(unk_939830 - 0x3C96E4)                           ; +0x36, 0x3c96da\nADD.W           R0, R4, #0x304; int                                    ; +0x38, 0x3c96dc\nADD             R1, PC; unk_939830 ; char *                            ; +0x3c, 0x3c96e0\nBL              sub_7753D4                                             ; +0x3e, 0x3c96e2\nLDRB.W          R3, [R4,#0x1A9]                                        ; +0x42, 0x3c96e6\nSTR.W           R5, [R4,#0x324]                                        ; +0x46, 0x3c96ea\nSTR.W           R5, [R4,#0x338]                                        ; +0x4a, 0x3c96ee\nSTRB.W          R5, [R4,#0x358]                                        ; +0x4e, 0x3c96f2\nSTRB.W          R5, [R4,#0x359]                                        ; +0x52, 0x3c96f6\nCBZ             R3, locret_3C970A                                      ; +0x56, 0x3c96fa\nLDR.W           R3, [R4,#0x1AC]                                        ; +0x58, 0x3c96fc\nSTRB.W          R5, [R4,#0x1A9]                                        ; +0x5c, 0x3c9700\nADDS            R3, #1                                                 ; +0x60, 0x3c9704\nSTR.W           R3, [R4,#0x1AC]                                        ; +0x62, 0x3c9706\nPOP             {R3-R5,PC}                                             ; +0x66, 0x3c970a", "xrefs": ["EditorPauseLayer::saveLevel @ 0x401336"], "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"}