@ clock_nanosleep_time64 needed for 32 bits without sign bit
	.section	.text
	.global	nanosleep
nanosleep:
	str	r7, [sp, #-4]!	@ Preserve r7
	sub	sp, sp, #32
	ldr	r2, [r0]	@ Load tv_sec from remote record
	str	r2, [sp, #0]	@ Store it in local record
	ldr	r2, [r0, #4]	@ Load tv_nsec from first record
	str	r2, [sp, #8]	@ Store it in local record
	ldr	r2, [r1, #0]	@ Load tv_sec from second remote record
	str	r2, [sp, #16]	@ Store it in second local record
	ldr	r2, [r1, #4]	@ Load tv_nsec from second remote record
	str	r2, [sp, #24]	@ Store it in second local record
	mov	r0, sp		@ First local record
	add	r1, sp, #4	@ Second local record
	ldr	r7, sys_clock_nanosleep_time64
	svc	#0
	add	sp, sp, #32
	ldr	r7, [sp], #4	@ Restore r7
	mov	pc, lr		@ Return
sys_clock_nanosleep_time64:
	.word	407
