Ongoing game 1 problem

It is a little bit complicated. White has three options with 4: playing kikashi at 5 which is safe, playing descent at 3 and playing 4 as here.

It seems that Black lives in all variations but some are better and some worse for White. In the variation in the diagram White takes the stones in sente. But probably Black's resistance was not the best.

123456789
White takes profit with sente