	.file	"extr_mqueue.c_prepare_timeout.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	prepare_timeout, @function
prepare_timeout:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L2
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rax, QWORD PTR [rdi]
	mov	rbp, rdi
	mov	edi, 1
	test	rax, rax
	js	.L3
	cmp	QWORD PTR 8[rbp], 0
	js	.L3
	xor	edi, edi
	cmp	rax, QWORD PTR NSEC_PER_SEC[rip]
	setge	dil
.L3:
	call	unlikely@PLT
	test	rax, rax
	jne	.L14
	mov	rsi, QWORD PTR CURRENT_TIME[rip]
	mov	rcx, QWORD PTR 0[rbp]
	mov	rdx, QWORD PTR 8[rbp]
	sub	rdx, QWORD PTR CURRENT_TIME[rip+8]
	mov	QWORD PTR 8[rbp], rdx
	cmp	rcx, rsi
	jge	.L6
	sub	rdx, 1
	add	rcx, QWORD PTR NSEC_PER_SEC[rip]
	mov	QWORD PTR 8[rbp], rdx
.L6:
	sub	rcx, rsi
	mov	QWORD PTR 0[rbp], rcx
	test	rdx, rdx
	js	.L1
	mov	rdi, rbp
	call	timespec_to_jiffies@PLT
	add	eax, 1
	cdqe
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rax, QWORD PTR EINVAL[rip]
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	rax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore 6
	mov	rax, QWORD PTR MAX_SCHEDULE_TIMEOUT[rip]
	ret
	.cfi_endproc
.LFE0:
	.size	prepare_timeout, .-prepare_timeout
	.comm	NSEC_PER_SEC,8,8
	.comm	MAX_SCHEDULE_TIMEOUT,8,8
	.comm	EINVAL,8,8
	.comm	CURRENT_TIME,16,16
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_mqueue.c_prepare_timeout.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	prepare_timeout, %function
prepare_timeout:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	subs	r4, r0, #0
	beq	.L2
	ldr	r0, [r4]
	cmp	r0, #0
	blt	.L8
	ldr	r3, [r4, #4]
	cmp	r3, #0
	blt	.L8
	ldr	r3, .L12
	ldr	r3, [r3]
	cmp	r0, r3
	movlt	r0, #0
	movge	r0, #1
	bl	unlikely
	cmp	r0, #0
	beq	.L4
.L11:
	ldr	r3, .L12+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L8:
	mov	r0, #1
	bl	unlikely
	cmp	r0, #0
	bne	.L11
.L4:
	ldr	r2, .L12+8
	ldr	r3, [r4, #4]
	ldm	r2, {r1, ip}
	ldr	r2, [r4]
	sub	r3, r3, ip
	cmp	r2, r1
	ldrlt	ip, .L12
	str	r3, [r4, #4]
	ldrlt	ip, [ip]
	sublt	r3, r3, #1
	addlt	r2, r2, ip
	strlt	r3, [r4, #4]
	sub	r2, r2, r1
	cmp	r3, #0
	str	r2, [r4]
	poplt	{r4, pc}
	mov	r0, r4
	bl	timespec_to_jiffies
	add	r0, r0, #1
	pop	{r4, pc}
.L2:
	ldr	r3, .L12+12
	ldr	r0, [r3]
	pop	{r4, pc}
.L13:
	.align	2
.L12:
	.word	NSEC_PER_SEC
	.word	EINVAL
	.word	CURRENT_TIME
	.word	MAX_SCHEDULE_TIMEOUT
	.size	prepare_timeout, .-prepare_timeout
	.comm	NSEC_PER_SEC,4,4
	.comm	MAX_SCHEDULE_TIMEOUT,4,4
	.comm	EINVAL,4,4
	.comm	CURRENT_TIME,8,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
