Upgrade Firmware for Xiaomi devices
Warning: Make sure to download exact firmware for your model. You can discern your model from Settings > About phone > MIUI version (Eg: In MIUI version V13.0.6.0 SKHMIXM ‘MI’ represents your phone region, which is Global). You can also verify your Xiaomi phone at official site.
Tip: Some devices might have buggy USB support while in bootloader mode, if you see 
fastboot hanging with no output when using commands such as fastboot getvar ..., fastboot flash ... you may have to try a different USB port (preferably a USB Type-A 2.0 one) or use a USB hub.- Extract firmware files from zip using payload-dumper-go
    
payload-dumper-go -o . miui_*.zip - 
    
Power off the device, and boot it into bootloader mode
 - Run the following commands to flash firmware:
    
fastboot flash abl_ab abl.img fastboot flash aop_ab aop.img fastboot flash aop_config_ab aop_config.img fastboot flash bluetooth_ab bluetooth.img fastboot flash cpucp_ab cpucp.img fastboot flash devcfg_ab devcfg.img fastboot flash dsp_ab dsp.img fastboot flash featenabler_ab featenabler.img fastboot flash hyp_ab hyp.img fastboot flash imagefv_ab imagefv.img fastboot flash keymaster_ab keymaster.img fastboot flash modem_ab modem.img fastboot flash qupfw_ab qupfw.img fastboot flash shrm_ab shrm.img fastboot flash tz_ab tz.img fastboot flash uefi_ab uefi.img fastboot flash uefisecapp_ab uefisecapp.img fastboot flash xbl_ab xbl.img fastboot flash xbl_config_ab xbl_config.img fastboot flash xbl_ramdump_ab xbl_ramdump.img - Reboot:
    
fastboot reboot