It's long been known how to fix soil; see for example from 1987: "Towards Holistic Agriculture: A Scientific Approach" by R.W. Widdowson:
https://www.elsevier.com/books/towards-holistic-agriculture/...

Or from 1911: https://permaculturenews.org/files/farmers_of_forty_centurie...

More: http://soilandhealth.org/

Adding rock dust works wonders too: https://remineralize.org/

My wife and I wrote a FOSS garden simulator in the 1990s (a six+ person-year labor of love) to help people understand some of this: http://www.kurtz-fernhout.com/summary_gwi.html

I got the idea while working as the Program Administrator on summer for the NOFA-NJ Organic Farm Certification Program in the later 1980s, but it took many years (including more education in grad school in biology) to make the software.

See especially from the help system of that software on how conventional agriculture destroys the soil:
http://www.gardenwithinsight.com/help100/00000385.htm
"In the soil, tiny charged particles called micelles usually have many areas of negative charge (called sites) on their surfaces. Positively charged ions (cations) are drawn to these negative charge sites and stick to the clay particles (are adsorbed). In most soils, 99% of soil cations can be found attached to micelles (clay particles and organic matter) and 1% can be found in solution. Mineral cations in the soil (mainly Ca2+, Mg2+, K+ and Na+) maintain an equilibrium between adsorption to the negative sites and solution in the soil water. This equilibrium produces exchanges -- when one cation detaches from a site (leaving it free), another cation attaches to it. Therefore the negatively charged sites are called cation exchange sites.
The number of these sites per unit weight of dry soil is called the cation exchange capacity, or the capacity of the soil to hold cations. Because any cations loose in the soil solution are vulnerable to leaching as water flows out of the soil, a high cation exchange capacity is always desirable. Cation exchange sites act as a sort of mineral buffer for the soil, storing minerals important to plant and animal growth for long periods of time.
The attraction of cations to cation exchange sites is strongest for H+ ions (which make the soil acidic) and for polyvalent ions such as Ca2+ and Al3+. The weakest attraction is for monovalent ions such as K+. When ammonium nitrate fertilizers are added to the soil, the ammonium ions (NH4+) are strongly attracted to cation exchange sites because of their high valence (4). The ammonium ions displace many other cations which are then leached out of the soil and lost to plants. Some of the ammonium ions are converted to nitrate during nitrification (by aerobic soil bacteria); the process produces excess H+ ions which acidify the soil (causing earthworms and other soil organisms to die or desert the area). (For an excellent description of cation exchange capacity, see Widdowson's Towards Holistic Agriculture: A Scientific Approach.)"

That's a big reason why organic agriculture which focuses on building up organic matter in the soil (which increases cation exchange capacity) is better for soil health (and human health too, as the plants are better fed). That's reflected in the article when it describes two lumps of soil put on wire mesh that behave differently -- one falling apart as dust (from lack of organic matter and so not much CEC) and one clumped together (more organic matter and CEC).

Wish I had time to bring that Delphi app to the web as a JavaScript app... And improve it further.

I don't know the exact numbers to completely quantify this, but I suspect poor farming practices on the US prairies that have reduced (in some places) six feet of topsoil to six inches of top soil have released a vast amount of carbon from lost organic matter into the air and contributed to climate change.