	.file	"extr_spi-fsl-espi.c_fsl_espi_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Can't get sys frequency!\n"
.LC1:
	.string	"fsl_espi"
.LC2:
	.string	"at 0x%p (irq = %u)\n"
	.text
	.p2align 4
	.type	fsl_espi_probe, @function
fsl_espi_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	mov	esi, 32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, ecx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	spi_alloc_master@PLT
	test	rax, rax
	je	.L10
	mov	rsi, rax
	mov	rdi, r12
	mov	rbp, rax
	call	dev_set_drvdata@PLT
	mov	eax, DWORD PTR SPI_RX_DUAL[rip]
	or	eax, DWORD PTR SPI_CPOL[rip]
	mov	esi, 16
	or	eax, DWORD PTR SPI_CPHA[rip]
	or	eax, DWORD PTR SPI_CS_HIGH[rip]
	mov	edi, 4
	or	eax, DWORD PTR SPI_LSB_FIRST[rip]
	or	eax, DWORD PTR SPI_LOOP[rip]
	mov	DWORD PTR 0[rbp], eax
	mov	eax, DWORD PTR [r12]
	mov	DWORD PTR 52[rbp], eax
	call	SPI_BPW_RANGE_MASK@PLT
	mov	DWORD PTR 8[rbp], ebx
	mov	rdi, rbp
	mov	DWORD PTR 48[rbp], eax
	mov	eax, DWORD PTR fsl_espi_setup[rip]
	mov	DWORD PTR 4[rbp], 1
	mov	DWORD PTR 44[rbp], eax
	mov	eax, DWORD PTR fsl_espi_cleanup[rip]
	mov	DWORD PTR 40[rbp], eax
	mov	eax, DWORD PTR fsl_espi_do_one_msg[rip]
	mov	DWORD PTR 36[rbp], eax
	mov	eax, DWORD PTR fsl_espi_max_message_size[rip]
	mov	DWORD PTR 32[rbp], eax
	call	spi_master_get_devdata@PLT
	mov	rbx, rax
	lea	rdi, 24[rax]
	call	spin_lock_init@PLT
	mov	QWORD PTR 16[rbx], r12
	xor	eax, eax
	call	fsl_get_sys_freq@PLT
	mov	DWORD PTR [rbx], eax
	mov	edi, eax
	cmp	eax, -1
	je	.L11
	mov	esi, 1024
	call	DIV_ROUND_UP@PLT
	mov	edi, DWORD PTR [rbx]
	mov	esi, 4
	mov	QWORD PTR 24[rbp], rax
	call	DIV_ROUND_UP@PLT
	lea	rdi, 8[rbx]
	mov	QWORD PTR 16[rbp], rax
	call	init_completion@PLT
	mov	rdi, r12
	mov	rsi, r13
	call	devm_ioremap_resource@PLT
	mov	DWORD PTR 4[rbx], eax
	mov	edi, eax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L12
	mov	edx, DWORD PTR fsl_espi_irq[rip]
	mov	r9, rbx
	xor	ecx, ecx
	mov	esi, r14d
	lea	r8, .LC1[rip]
	mov	rdi, r12
	call	devm_request_irq@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L13
.L5:
	mov	rdi, rbp
	call	spi_master_put@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edi, DWORD PTR 4[rbx]
	call	PTR_ERR@PLT
	mov	r13d, eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L13:
	mov	esi, 1
	mov	rdi, r12
	call	fsl_espi_init_regs@PLT
	mov	esi, DWORD PTR AUTOSUSPEND_TIMEOUT[rip]
	mov	rdi, r12
	call	pm_runtime_set_autosuspend_delay@PLT
	mov	rdi, r12
	call	pm_runtime_use_autosuspend@PLT
	mov	rdi, r12
	call	pm_runtime_set_active@PLT
	mov	rdi, r12
	call	pm_runtime_enable@PLT
	mov	rdi, r12
	call	pm_runtime_get_sync@PLT
	mov	rsi, rbp
	mov	rdi, r12
	call	devm_spi_register_master@PLT
	mov	r15d, eax
	test	eax, eax
	js	.L14
	mov	edx, DWORD PTR 4[rbx]
	mov	ecx, r14d
	lea	rsi, .LC2[rip]
	mov	rdi, r12
	call	dev_info@PLT
	mov	rdi, r12
	call	pm_runtime_mark_last_busy@PLT
	mov	rdi, r12
	call	pm_runtime_put_autosuspend@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	call	dev_err@PLT
	mov	r13d, DWORD PTR EINVAL[rip]
	neg	r13d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, r12
	mov	r13d, r15d
	call	pm_runtime_put_noidle@PLT
	mov	rdi, r12
	call	pm_runtime_disable@PLT
	mov	rdi, r12
	call	pm_runtime_set_suspended@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	fsl_espi_probe, .-fsl_espi_probe
	.comm	fsl_espi_setup,4,4
	.comm	fsl_espi_max_message_size,4,4
	.comm	fsl_espi_irq,4,4
	.comm	fsl_espi_do_one_msg,4,4
	.comm	fsl_espi_cleanup,4,4
	.comm	SPI_RX_DUAL,4,4
	.comm	SPI_LSB_FIRST,4,4
	.comm	SPI_LOOP,4,4
	.comm	SPI_CS_HIGH,4,4
	.comm	SPI_CPOL,4,4
	.comm	SPI_CPHA,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	AUTOSUSPEND_TIMEOUT,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-fsl-espi.c_fsl_espi_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Can't get sys frequency!\012\000"
	.align	2
.LC1:
	.ascii	"fsl_espi\000"
	.align	2
.LC2:
	.ascii	"at 0x%p (irq = %u)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fsl_espi_probe, %function
fsl_espi_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r1
	sub	sp, sp, #8
	mov	r1, #20
	mov	r8, r2
	mov	r6, r3
	mov	r5, r0
	bl	spi_alloc_master
	subs	r4, r0, #0
	beq	.L10
	mov	r1, r4
	mov	r0, r5
	bl	dev_set_drvdata
	ldr	r1, .L15
	ldr	r3, .L15+4
	ldr	r2, .L15+8
	ldr	ip, [r1]
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, .L15+12
	orr	ip, ip, r3
	ldr	r3, .L15+16
	ldr	r1, [r1]
	orr	ip, ip, r2
	ldr	r2, .L15+20
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	ip, ip, r1
	orr	ip, ip, r3
	ldr	r3, [r5]
	orr	ip, ip, r2
	mov	r1, #16
	str	ip, [r4]
	str	r3, [r4, #40]
	mov	r0, #4
	bl	SPI_BPW_RANGE_MASK
	mov	r9, #1
	ldr	r1, .L15+24
	ldr	r2, .L15+28
	ldr	r3, .L15+32
	ldr	ip, [r1]
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L15+36
	str	ip, [r4, #32]
	ldr	r3, [r3]
	str	r1, [r4, #28]
	str	r2, [r4, #24]
	str	r3, [r4, #20]
	str	r0, [r4, #36]
	str	r6, [r4, #8]
	mov	r0, r4
	str	r9, [r4, #4]
	bl	spi_master_get_devdata
	mov	r6, r0
	add	r0, r0, #16
	bl	spin_lock_init
	str	r5, [r6, #12]
	bl	fsl_get_sys_freq
	cmn	r0, #1
	str	r0, [r6]
	beq	.L11
	mov	r1, #1024
	bl	DIV_ROUND_UP
	mov	r10, r6
	mov	r1, #4
	str	r0, [r4, #16]
	ldr	r0, [r10], #8
	bl	DIV_ROUND_UP
	mov	r3, r0
	mov	r0, r10
	str	r3, [r4, #12]
	bl	init_completion
	mov	r1, r7
	mov	r0, r5
	bl	devm_ioremap_resource
	str	r0, [r6, #4]
	bl	IS_ERR
	subs	r3, r0, #0
	bne	.L12
	ldr	r1, .L15+40
	ldr	r2, .L15+44
	str	r6, [sp, #4]
	ldr	r2, [r2]
	mov	r0, r5
	str	r1, [sp]
	mov	r1, r8
	bl	devm_request_irq
	subs	r7, r0, #0
	beq	.L13
.L5:
	mov	r0, r4
	bl	spi_master_put
	mov	r0, r7
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	ldr	r3, .L15+48
	ldr	r7, [r3]
	rsb	r7, r7, #0
	mov	r0, r7
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	ldr	r0, [r6, #4]
	bl	PTR_ERR
	mov	r7, r0
	b	.L5
.L13:
	mov	r1, r9
	mov	r0, r5
	bl	fsl_espi_init_regs
	ldr	r3, .L15+52
	mov	r0, r5
	ldr	r1, [r3]
	bl	pm_runtime_set_autosuspend_delay
	mov	r0, r5
	bl	pm_runtime_use_autosuspend
	mov	r0, r5
	bl	pm_runtime_set_active
	mov	r0, r5
	bl	pm_runtime_enable
	mov	r0, r5
	bl	pm_runtime_get_sync
	mov	r1, r4
	mov	r0, r5
	bl	devm_spi_register_master
	subs	r9, r0, #0
	blt	.L14
	mov	r3, r8
	ldr	r2, [r6, #4]
	ldr	r1, .L15+56
	mov	r0, r5
	bl	dev_info
	mov	r0, r5
	bl	pm_runtime_mark_last_busy
	mov	r0, r5
	bl	pm_runtime_put_autosuspend
	mov	r0, r7
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	mov	r0, r5
	ldr	r1, .L15+60
	bl	dev_err
	ldr	r3, .L15+64
	ldr	r7, [r3]
	rsb	r7, r7, #0
	b	.L5
.L14:
	mov	r0, r5
	bl	pm_runtime_put_noidle
	mov	r0, r5
	bl	pm_runtime_disable
	mov	r0, r5
	mov	r7, r9
	bl	pm_runtime_set_suspended
	b	.L5
.L16:
	.align	2
.L15:
	.word	SPI_RX_DUAL
	.word	SPI_CPOL
	.word	SPI_CPHA
	.word	SPI_CS_HIGH
	.word	SPI_LSB_FIRST
	.word	SPI_LOOP
	.word	fsl_espi_setup
	.word	fsl_espi_cleanup
	.word	fsl_espi_do_one_msg
	.word	fsl_espi_max_message_size
	.word	.LC1
	.word	fsl_espi_irq
	.word	ENOMEM
	.word	AUTOSUSPEND_TIMEOUT
	.word	.LC2
	.word	.LC0
	.word	EINVAL
	.size	fsl_espi_probe, .-fsl_espi_probe
	.comm	fsl_espi_setup,4,4
	.comm	fsl_espi_max_message_size,4,4
	.comm	fsl_espi_irq,4,4
	.comm	fsl_espi_do_one_msg,4,4
	.comm	fsl_espi_cleanup,4,4
	.comm	SPI_RX_DUAL,4,4
	.comm	SPI_LSB_FIRST,4,4
	.comm	SPI_LOOP,4,4
	.comm	SPI_CS_HIGH,4,4
	.comm	SPI_CPOL,4,4
	.comm	SPI_CPHA,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	AUTOSUSPEND_TIMEOUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
