The Japanese investment giant said Thursday that net profit hit $6.6 billion over the latest quarter.

This time a year ago it posted a loss of not much less.

The numbers ended a run of four straight losing quarters.

It's been a tough few years for SoftBank.

Many of its investments in tech startups fell in value as interest rates rose.

That forced it to slash its buying and sell off assets.

The setbacks tarnished the reputation of boss Masayoshi Son.

He made his name with big calls including taking an early stake in Chinese e-commerce titan Alibaba.

Almost all of that holding had to be offloaded as SoftBank finances turned sour.

Some other later investments also went very wrong.

SoftBank poured money into office-sharing firm WeWork, only to see it rack up losses and eventually file for bankruptcy.

Analysts say the firm now takes a more cautious and disciplined approach to selecting investments.

Among its crown jewels now is a controlling stake in UK chip designer Arm, which has surged in value by 40% over recent months.