	.file	"extr_spi-fsl-qspi.c_fsl_qspi_select_mem.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	fsl_qspi_select_mem, @function
fsl_qspi_select_mem:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR 8[rsi]
	cmp	QWORD PTR [rdi], rax
	je	.L9
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	mov	r12, QWORD PTR [rsi]
	call	needs_4x_clock@PLT
	mov	rdi, rbp
	mov	r8, rax
	lea	rax, 0[0+r12*4]
	test	r8, r8
	cmovne	r12, rax
	call	fsl_qspi_clk_disable_unprep@PLT
	mov	edi, DWORD PTR 8[rbp]
	mov	rsi, r12
	call	clk_set_rate@PLT
	test	eax, eax
	je	.L13
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rdi, rbp
	call	fsl_qspi_clk_prep_enable@PLT
	test	eax, eax
	jne	.L1
	mov	rax, QWORD PTR 8[rbx]
	mov	rdi, rbp
	mov	QWORD PTR 0[rbp], rax
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 8
	jmp	fsl_qspi_invalidate@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	ret
	.cfi_endproc
.LFE0:
	.size	fsl_qspi_select_mem, .-fsl_qspi_select_mem
	.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-fsl-qspi.c_fsl_qspi_select_mem.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fsl_qspi_select_mem, %function
fsl_qspi_select_mem:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1, #4]
	ldr	r2, [r0]
	cmp	r2, r3
	bxeq	lr
	push	{r4, r5, r6, lr}
	ldr	r6, [r1]
	mov	r5, r1
	mov	r4, r0
	bl	needs_4x_clock
	cmp	r0, #0
	lslne	r6, r6, #2
	mov	r0, r4
	bl	fsl_qspi_clk_disable_unprep
	mov	r1, r6
	ldr	r0, [r4, #4]
	bl	clk_set_rate
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	mov	r0, r4
	bl	fsl_qspi_clk_prep_enable
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	ldr	r3, [r5, #4]
	mov	r0, r4
	str	r3, [r4]
	pop	{r4, r5, r6, lr}
	b	fsl_qspi_invalidate
	.size	fsl_qspi_select_mem, .-fsl_qspi_select_mem
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
