An implantable medical device comprising: therapy delivery circuitry configured to deliver pacing pulses to a heart of a patient via a plurality of electrodes; a memory configured to store: a baseline value of a pacing pulse magnitude for delivery of pacing pulses according to a baseline pacing mode; a post-shock value of the pacing pulse magnitude for delivery of pacing pulses according to a post-shock pacing mode, wherein the post-shock value of the pacing pulse magnitude is greater than the baseline value; and an initial reversion value of the pacing pulse magnitude that is greater than the baseline value and less than the post-shock value; and processing circuitry configured to revert the implantable medical device from the post-shock pacing mode to the baseline pacing mode by at least: controlling the therapy delivery circuitry to deliver a plurality of pacing pulses to the heart to iteratively test a plurality of values of the pacing pulse magnitude that decrease from the initial reversion value; determining whether each of the plurality of values of the pacing pulse magnitude captured the heart; and in response to determining that one of the plurality of values of the pacing pulse magnitude failed to capture the heart: updating the baseline value of the pacing pulse magnitude; and controlling the therapy delivery circuitry to deliver pacing pulses having the updated baseline value of the pacing pulse magnitude according to the baseline pacing mode. therapy delivery circuitry configured to deliver pacing pulses to a heart of a patient via a plurality of electrodes; a memory configured to store: a baseline value of a pacing pulse magnitude for delivery of pacing pulses according to a baseline pacing mode; a post-shock value of the pacing pulse magnitude for delivery of pacing pulses according to a post-shock pacing mode, wherein the post-shock value of the pacing pulse magnitude is greater than the baseline value; and an initial reversion value of the pacing pulse magnitude that is greater than the baseline value and less than the post-shock value; and a baseline value of a pacing pulse magnitude for delivery of pacing pulses according to a baseline pacing mode; a post-shock value of the pacing pulse magnitude for delivery of pacing pulses according to a post-shock pacing mode, wherein the post-shock value of the pacing pulse magnitude is greater than the baseline value; and an initial reversion value of the pacing pulse magnitude that is greater than the baseline value and less than the post-shock value; and processing circuitry configured to revert the implantable medical device from the post-shock pacing mode to the baseline pacing mode by at least: controlling the therapy delivery circuitry to deliver a plurality of pacing pulses to the heart to iteratively test a plurality of values of the pacing pulse magnitude that decrease from the initial reversion value; determining whether each of the plurality of values of the pacing pulse magnitude captured the heart; and in response to determining that one of the plurality of values of the pacing pulse magnitude failed to capture the heart: updating the baseline value of the pacing pulse magnitude; and controlling the therapy delivery circuitry to deliver pacing pulses having the updated baseline value of the pacing pulse magnitude according to the baseline pacing mode. controlling the therapy delivery circuitry to deliver a plurality of pacing pulses to the heart to iteratively test a plurality of values of the pacing pulse magnitude that decrease from the initial reversion value; determining whether each of the plurality of values of the pacing pulse magnitude captured the heart; and in response to determining that one of the plurality of values of the pacing pulse magnitude failed to capture the heart: updating the baseline value of the pacing pulse magnitude; and controlling the therapy delivery circuitry to deliver pacing pulses having the updated baseline value of the pacing pulse magnitude according to the baseline pacing mode. updating the baseline value of the pacing pulse magnitude; and controlling the therapy delivery circuitry to deliver pacing pulses having the updated baseline value of the pacing pulse magnitude according to the baseline pacing mode.