[Moto G40 / G60] arsradu:
I see... :) Ok, but if I want to go back to stock ROM and lock the bootloader (because contactless payments don't work anymore with bootloader unlocked), what would be the best way to do so?

Cause I tried flashing back stock (with LMSA), and...the ON/OFF toggle is set to OFF (so bootloader is not unlockable anymore).

Which means that, if I try to lock the bootloader now, and something goes wrong, I won't be able to fix it. Cause the option is OFF (so fastboot will complain about that when you try to flash anything), and...if you can't boot (like in the case of "no valid operating system could be found" error, that seems to be plaguing some of the Motorola devices)...well, you've got yourself a brick. And I don't want that.

So...if you were to go back to stock and lock the bootloader back, what would be the recommended procedure?

By the way, this is my getvar output (removed serials and IMEI and all that, since they're not important).

fastboot getvar all
(bootloader) kernel: uefi
(bootloader) version-bootloader[0]: MBM-3.0-hanoip_retail-182ec3123a1-22
(bootloader) version-bootloader[1]: 0830
(bootloader) product: hanoip
(bootloader) board: hanoip
(bootloader) secure: yes
(bootloader) hwrev: PVT
(bootloader) radio: EUAPEM
(bootloader) storage-type: UFS
(bootloader) emmc: N/A
(bootloader) ufs: 128GB SKhynix H9HQ15AECMBDAR FV=A002 WB=0
(bootloader) ram: 6GB SKHYNIX LP4x DIE=16Gb M5-M8=06 06 00 11
(bootloader) cpu: SM7150 1.0
(bootloader) serialno: [removed]
(bootloader) cid: 0x0032
(bootloader) channelid: 0x00
(bootloader) uid: 21006A06
(bootloader) token: inactive
(bootloader) securestate: flashing_unlocked
(bootloader) factory-modes: disabled
(bootloader) verity-state: enforcing (0)
(bootloader) iswarrantyvoid: yes
(bootloader) max-download-size: 805306368
(bootloader) reason: Reboot mode set to fastboot
(bootloader) imei: [removed]
(bootloader) imei2: [removed]
(bootloader) meid:
(bootloader) date: 09-20-2021
(bootloader) sku: XT2135-2
(bootloader) carrier_sku: XT2135-2
(bootloader) battid: SB18D01687
(bootloader) battery-voltage: 4299
(bootloader) iccid:
(bootloader) cust_md5:
(bootloader) max-sparse-size: 268435456
(bootloader) poweroffalarm: 0
(bootloader) ro.carrier: reteu
(bootloader) ro.build.fingerprint[0]: motorola/hanoip_retailenq/hanoip:1
(bootloader) ro.build.fingerprint[1]: 2/S2RIS32.32-20-7-4/41d937-0279a:u
(bootloader) ro.build.fingerprint[2]: ser/release-keys
(bootloader) ro.build.version.qcom[0]: LA.UM.9.1.r1-11500.02-SMxxx0.QSSI
(bootloader) ro.build.version.qcom[1]: 12.0
(bootloader) version-baseband[0]: M7150_25.333.01.82R HANOIP_EUAPEMDSDS_
(bootloader) version-baseband[1]: CUST
(bootloader) kernel.version[0]: Linux version 4.14.190-perf+ (nobody@and
(bootloader) kernel.version[1]: roid-build) (clang version 10.0.7 for An
(bootloader) kernel.version[2]: droid NDK, GNU ld (binutils-2.27-bd24d23
(bootloader) kernel.version[3]: f) 2.27.0.20170315) #1 SMP PREEMPT Tue A
(bootloader) kernel.version[4]: ug 30 06:55:43 CDT 2022
(bootloader) git:xbl: MBM-3.0-hanoip_retail-a4efaacd8-220830
(bootloader) git:xbl_config: MBM-3.0-hanoip_retail-a4efaacd8-220830
(bootloader) git:aop: MBM-3.0-hanoip_retail-2af95bb-220830
(bootloader) git:tz: MBM-3.0-hanoip_retail-845be54dd-220830
(bootloader) git:hyp: MBM-3.0-hanoip_retail-845be54dd-220830
(bootloader) git:devcfg: MBM-3.0-hanoip_retail-845be54dd-220830
(bootloader) git:cmnlib: MBM-3.0-hanoip_retail-845be54dd-220830
(bootloader) git:keymaster: MBM-3.0-hanoip_retail-49ec050-220830
(bootloader) git:storsec: MBM-3.0-hanoip_retail-845be54dd-220830
(bootloader) git:prov: MBM-3.0-hanoip_retail-845be54dd-220830
(bootloader) git:abl: MBM-3.0-hanoip_retail-182ec3123a1-220830
(bootloader) git:qupfw: MBM-3.0-hanoip_retail-fb017b4-220830
(bootloader) git:uefisecapp: MBM-3.0-hanoip_retail-845be54dd-220830
(bootloader) frp-state: protected (77)
(bootloader) current-slot: a
(bootloader) running-bl-slot: _a/_a
(bootloader) running-boot-lun: 2
(bootloader) slot-count: 2
(bootloader) slot-successful:_a: yes
(bootloader) slot-successful:_b: no
(bootloader) slot-unbootable:_a: no
(bootloader) slot-unbootable:_b: no
(bootloader) slot-retry-count:_a: 6
(bootloader) slot-retry-count:_b: 0
(bootloader) logical-block-size: 0x1000
(bootloader) erase-block-size: 0x1000
(bootloader) is-userspace: no
(bootloader) pcb-part-no: SB28D03127
(bootloader) primary-display: tm_ili7807s_fhd_vid
(bootloader) secondary-display:
(bootloader) fdr-allowed: yes
all: listed above

Finished. Total time: 0.049s

Does anything from that strike you as potentially not ok...? Or something from this output that could explain why that option is OFF?