armcc to armclang conversion

I am trying to convert the following code for armclang compiler:

I am unable to convert the line numbers 48 and 51 of the above code.. The below code is not working fine,

Can anyone please support me on this.