The Japanese were already negotiating to end the war. The sticking point was over the U.S. demand for unconditional surrender vs. the Japanese insistence on preserving their emperor in some form. The eventual surrender did keep the emperor, so the atomic bombs didn’t impact that issue.
That puts you at odds with Curtis LeMay, who wanted to drop every bomb ever made. Even he said the atomic bombings weren’t necessary.