Yet the Japanese got a much better deal than the Germans. As you point out even the nukes were just as much to keep the Russians out as to take over an relatively well-populated Japan. so there was a de facto settlement or a series of de facto settlements with the Japanese.
Even after the series of surrenders in September (and each regional Japanese command seems to have surrendered under a separate local protocol), Japanese forces were still in control of large parts of China, Indochina, and the DEI.
And of course, the Japanese got to keep their Emperor.
So not a big win for the Little Empire, but not a complete and utter unmitigated crushing such as the Germans got.