	.file	"extr_sdhci-of-esdhc.c_esdhc_irq.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"fsl,p2020-esdhc"
	.text
	.p2align 4
	.type	esdhc_irq, @function
esdhc_irq:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	rdx, .LC0[rip]
	mov	rbp, rdi
	xor	edi, edi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	xor	esi, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	of_find_compatible_node@PLT
	test	rax, rax
	jne	.L13
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, rbx
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	esi, DWORD PTR SDHCI_COMMAND[rip]
	mov	rdi, rbp
	call	sdhci_readw@PLT
	mov	rdi, rax
	call	SDHCI_GET_CMD@PLT
	cmp	QWORD PTR MMC_WRITE_MULTIPLE_BLOCK[rip], rax
	jne	.L1
	mov	esi, DWORD PTR SDHCI_BLOCK_COUNT[rip]
	mov	rdi, rbp
	call	sdhci_readw@PLT
	test	rax, rax
	je	.L1
	mov	rsi, QWORD PTR SDHCI_INT_DATA_END[rip]
	test	rsi, rbx
	je	.L1
	mov	rax, rsi
	mov	edx, DWORD PTR SDHCI_INT_STATUS[rip]
	mov	rdi, rbp
	not	rax
	and	rbx, rax
	call	sdhci_writel@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	esdhc_irq, .-esdhc_irq
	.comm	SDHCI_INT_STATUS,4,4
	.comm	SDHCI_INT_DATA_END,8,8
	.comm	SDHCI_COMMAND,4,4
	.comm	SDHCI_BLOCK_COUNT,4,4
	.comm	MMC_WRITE_MULTIPLE_BLOCK,8,8
	.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_sdhci-of-esdhc.c_esdhc_irq.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"fsl,p2020-esdhc\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	esdhc_irq, %function
esdhc_irq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	mov	r1, #0
	mov	r5, r0
	ldr	r2, .L14
	mov	r0, r1
	bl	of_find_compatible_node
	cmp	r0, #0
	bne	.L13
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r3, .L14+4
	mov	r0, r5
	ldr	r1, [r3]
	bl	sdhci_readw
	bl	SDHCI_GET_CMD
	ldr	r3, .L14+8
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L1
	ldr	r3, .L14+12
	mov	r0, r5
	ldr	r1, [r3]
	bl	sdhci_readw
	cmp	r0, #0
	beq	.L1
	ldr	r3, .L14+16
	ldr	r1, [r3]
	tst	r1, r4
	beq	.L1
	ldr	r3, .L14+20
	mov	r0, r5
	ldr	r2, [r3]
	bic	r4, r4, r1
	bl	sdhci_writel
	b	.L1
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	SDHCI_COMMAND
	.word	MMC_WRITE_MULTIPLE_BLOCK
	.word	SDHCI_BLOCK_COUNT
	.word	SDHCI_INT_DATA_END
	.word	SDHCI_INT_STATUS
	.size	esdhc_irq, .-esdhc_irq
	.comm	SDHCI_INT_STATUS,4,4
	.comm	SDHCI_INT_DATA_END,4,4
	.comm	SDHCI_COMMAND,4,4
	.comm	SDHCI_BLOCK_COUNT,4,4
	.comm	MMC_WRITE_MULTIPLE_BLOCK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
