	.file	"extr_spi-mxs.c_mxs_ssp_wait.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mxs_ssp_wait, @function
mxs_ssp_wait:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	mov	edi, DWORD PTR SSP_TIMEOUT[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movsx	rbp, esi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, edx
	call	msecs_to_jiffies@PLT
	add	rax, QWORD PTR jiffies[rip]
	mov	r14, rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, QWORD PTR jiffies[rip]
	mov	rsi, r14
	call	time_before@PLT
	test	rax, rax
	je	.L9
.L4:
	mov	rdi, QWORD PTR 0[r13]
	add	rdi, rbp
	call	readl_relaxed@PLT
	test	r12d, r12d
	mov	r8d, eax
	not	eax
	cmovne	eax, r8d
	and	eax, ebx
	cmp	ebx, eax
	jne	.L10
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	eax, DWORD PTR ETIMEDOUT[rip]
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	mxs_ssp_wait, .-mxs_ssp_wait
	.comm	jiffies,8,8
	.comm	SSP_TIMEOUT,4,4
	.comm	ETIMEDOUT,4,4
	.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_spi-mxs.c_mxs_ssp_wait.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mxs_ssp_wait, %function
mxs_ssp_wait:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, .L11
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r0
	ldr	r0, [ip]
	mov	r4, r3
	mov	r6, r1
	mov	r5, r2
	bl	msecs_to_jiffies
	ldr	r9, .L11+4
	ldr	r3, [r9]
	add	r8, r0, r3
	b	.L4
.L10:
	mov	r1, r8
	ldr	r0, [r9]
	bl	time_before
	cmp	r0, #0
	beq	.L9
.L4:
	ldr	r0, [r7]
	add	r0, r6, r0
	bl	readl_relaxed
	cmp	r4, #0
	mvneq	r0, r0
	bics	r3, r5, r0
	bne	.L10
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	ldr	r3, .L11+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	.align	2
.L11:
	.word	SSP_TIMEOUT
	.word	jiffies
	.word	ETIMEDOUT
	.size	mxs_ssp_wait, .-mxs_ssp_wait
	.comm	jiffies,4,4
	.comm	SSP_TIMEOUT,4,4
	.comm	ETIMEDOUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
