{"type": "func", "start": 3320252, "end": 3320302, "name": "GJGameLevel::setDemon", "pseudocode": "// \n// GJGameLevel::setDemon from 0x32a9bc to 0x32a9ee (50 bytes)\n// \n// 10 xrefs:\n// > LevelTools::getLevel @ 0x32b0ea\n// > LevelTools::getLevel @ 0x32b214\n// > LevelTools::getLevel @ 0x32b2a6\n// > GJGameLevel::init @ 0x3bebe6\n// > GameLevelManager::getMainLevel @ 0x3bf5cc\n// > GJGameLevel::create @ 0x3c5ea2\n// > GameLevelManager::saveFetchedLevels @ 0x3c649a\n// > GJGameLevel::getListSnapshot @ 0x3c8848\n// > GJGameLevel::dataLoaded @ 0x3c8a16\n// > GameLevelManager::onGetLevelSaveDataCompleted @ 0x3c9574\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::setDemon(GJGameLevel *a1, int a2)\n{\n  int v4; // s15\n\n  a1->m_demon.value = a2;\n  v4 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0);\n  a1->m_demon.seed = v4;\n  a1->m_demon.random = v4 + a2;\n}", "assembly": "; \n; GJGameLevel::setDemon from 0x32a9bc to 0x32a9ee (50 bytes)\n; \n; 10 xrefs:\n; > LevelTools::getLevel @ 0x32b0ea\n; > LevelTools::getLevel @ 0x32b214\n; > LevelTools::getLevel @ 0x32b2a6\n; > GJGameLevel::init @ 0x3bebe6\n; > GameLevelManager::getMainLevel @ 0x3bf5cc\n; > GJGameLevel::create @ 0x3c5ea2\n; > GameLevelManager::saveFetchedLevels @ 0x3c649a\n; > GJGameLevel::getListSnapshot @ 0x3c8848\n; > GJGameLevel::dataLoaded @ 0x3c8a16\n; > GameLevelManager::onGetLevelSaveDataCompleted @ 0x3c9574\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, 0x32a9bc\nMOV             R4, R0                                                 ; +0x2, 0x32a9be\nSTR.W           R1, [R4,#0x244]                                        ; +0x4, 0x32a9c0\nMOV             R5, R1                                                 ; +0x8, 0x32a9c4\nBLX             rand                                                   ; +0xa, 0x32a9c6\nVLDR            S14, =1000.0                                           ; +0xe, 0x32a9ca\nVMOV            S15, R0                                                ; +0x12, 0x32a9ce\nVCVT.F32.S32    S15, S15, #0x1F                                        ; +0x16, 0x32a9d2\nVMUL.F32        S15, S15, S14                                          ; +0x1a, 0x32a9d6\nVCVT.S32.F32    S15, S15                                               ; +0x1e, 0x32a9da\nVMOV            R3, S15                                                ; +0x22, 0x32a9de\nVSTR            S15, [R4,#0x240]                                       ; +0x26, 0x32a9e2\nADD             R3, R5                                                 ; +0x2a, 0x32a9e6\nSTR.W           R3, [R4,#0x23C]                                        ; +0x2c, 0x32a9e8\nPOP             {R3-R5,PC}                                             ; +0x30, 0x32a9ec", "xrefs": ["LevelTools::getLevel @ 0x32b0ea", "LevelTools::getLevel @ 0x32b214", "LevelTools::getLevel @ 0x32b2a6", "GJGameLevel::init @ 0x3bebe6", "GameLevelManager::getMainLevel @ 0x3bf5cc", "GJGameLevel::create @ 0x3c5ea2", "GameLevelManager::saveFetchedLevels @ 0x3c649a", "GJGameLevel::getListSnapshot @ 0x3c8848", "GJGameLevel::dataLoaded @ 0x3c8a16", "GameLevelManager::onGetLevelSaveDataCompleted @ 0x3c9574"], "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"}