#if defined(__linux__)
#if defined(__aarch64__)

	.section .text

	.globl	_start
	.type	_start, %function
_start:
	mov	x2, sp
	and	x0, x2, #0xfffffffffffffff0
	mov	sp, x0

	ldr	x0, [x2]	/* argc */
	add	x1, x2, #8	/* argv */
	add	x2, x0, #1
	lsl	x2, x2, #3
	add	x2, x1, x2	/* envp */

	bl	nlcrt_start

1:	b	1b
#endif
#endif
