If you read the C doc's you see goto statement's are not preferred to use.
One google of this : The goto statement is rarely used because it makes program confusing, less readable and complex. Also, when this is used, the control of the program won’t be easy to trace, hence it makes testing and debugging difficult.
beginnersbook.com/2014/01/c-goto-statement/
Better is to use a procedure that read's continue.
I have a example code for you :
but my point is , all cnc controllers have a normal goto , so when you have to convert a code , is very hard !!!
In example , try to convert a Renishaw code , is easyer to write a new just becouse we dont have a goto !!