{"type": "func", "start": 3926328, "end": 3926378, "name": "GJGameLevel::setLevelID", "pseudocode": "// \n// GJGameLevel::setLevelID from 0x3be938 to 0x3be96a (50 bytes)\n// \n// 6 xrefs:\n// > GameLevelManager::getMainLevel @ 0x3bf5f6\n// > GameLevelManager::onUploadLevelCompleted @ 0x3c5474\n// > GJGameLevel::create @ 0x3c5d7a\n// > GJGameLevel::getListSnapshot @ 0x3c87ac\n// > GJGameLevel::dataLoaded @ 0x3c8918\n// > GJLevelList::getListLevelsArray @ 0x3cef8e\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::setLevelID(GJGameLevel *a1, int a2)\n{\n  int v4; // s15\n\n  a1->m_levelID.value = a2;\n  v4 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0);\n  a1->m_levelID.seed = v4;\n  a1->m_levelID.random = v4 + a2;\n}", "assembly": "; \n; GJGameLevel::setLevelID from 0x3be938 to 0x3be96a (50 bytes)\n; \n; 6 xrefs:\n; > GameLevelManager::getMainLevel @ 0x3bf5f6\n; > GameLevelManager::onUploadLevelCompleted @ 0x3c5474\n; > GJGameLevel::create @ 0x3c5d7a\n; > GJGameLevel::getListSnapshot @ 0x3c87ac\n; > GJGameLevel::dataLoaded @ 0x3c8918\n; > GJLevelList::getListLevelsArray @ 0x3cef8e\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, 0x3be938\nMOV             R4, R0                                                 ; +0x2, 0x3be93a\nSTR.W           R1, [R4,#0x114]                                        ; +0x4, 0x3be93c\nMOV             R5, R1                                                 ; +0x8, 0x3be940\nBLX             rand                                                   ; +0xa, 0x3be942\nVLDR            S14, =1000.0                                           ; +0xe, 0x3be946\nVMOV            S15, R0                                                ; +0x12, 0x3be94a\nVCVT.F32.S32    S15, S15, #0x1F                                        ; +0x16, 0x3be94e\nVMUL.F32        S15, S15, S14                                          ; +0x1a, 0x3be952\nVCVT.S32.F32    S15, S15                                               ; +0x1e, 0x3be956\nVMOV            R3, S15                                                ; +0x22, 0x3be95a\nVSTR            S15, [R4,#0x110]                                       ; +0x26, 0x3be95e\nADD             R3, R5                                                 ; +0x2a, 0x3be962\nSTR.W           R3, [R4,#0x10C]                                        ; +0x2c, 0x3be964\nPOP             {R3-R5,PC}                                             ; +0x30, 0x3be968", "xrefs": ["GameLevelManager::getMainLevel @ 0x3bf5f6", "GameLevelManager::onUploadLevelCompleted @ 0x3c5474", "GJGameLevel::create @ 0x3c5d7a", "GJGameLevel::getListSnapshot @ 0x3c87ac", "GJGameLevel::dataLoaded @ 0x3c8918", "GJLevelList::getListLevelsArray @ 0x3cef8e"], "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"}