	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function esdhc_irq
_esdhc_irq:                             ## @esdhc_irq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_of_find_compatible_node
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_SDHCI_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sdhci_readw
	movq	%rax, %rdi
	callq	_SDHCI_GET_CMD
	movq	_MMC_WRITE_MULTIPLE_BLOCK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	movq	_SDHCI_BLOCK_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sdhci_readw
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_SDHCI_INT_DATA_END@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	testq	%r14, %rsi
	je	LBB0_5
## %bb.4:
	movq	%rsi, %rax
	notq	%rax
	andq	%rax, %r14
	movq	_SDHCI_INT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_sdhci_writel
LBB0_5:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fsl,p2020-esdhc"

	.comm	_SDHCI_COMMAND,4,2              ## @SDHCI_COMMAND
	.comm	_MMC_WRITE_MULTIPLE_BLOCK,8,3   ## @MMC_WRITE_MULTIPLE_BLOCK
	.comm	_SDHCI_BLOCK_COUNT,4,2          ## @SDHCI_BLOCK_COUNT
	.comm	_SDHCI_INT_DATA_END,8,3         ## @SDHCI_INT_DATA_END
	.comm	_SDHCI_INT_STATUS,4,2           ## @SDHCI_INT_STATUS
	.no_dead_strip	_esdhc_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function esdhc_irq
_esdhc_irq:                             ; @esdhc_irq
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	mov	x1, #0
	bl	_of_find_compatible_node
	cbz	x0, LBB0_5
; %bb.1:
Lloh2:
	adrp	x8, _SDHCI_COMMAND@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SDHCI_COMMAND@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_sdhci_readw
	bl	_SDHCI_GET_CMD
Lloh5:
	adrp	x8, _MMC_WRITE_MULTIPLE_BLOCK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MMC_WRITE_MULTIPLE_BLOCK@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
Lloh8:
	adrp	x8, _SDHCI_BLOCK_COUNT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SDHCI_BLOCK_COUNT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_sdhci_readw
	cbz	x0, LBB0_5
; %bb.3:
Lloh11:
	adrp	x8, _SDHCI_INT_DATA_END@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SDHCI_INT_DATA_END@GOTPAGEOFF]
Lloh13:
	ldr	x1, [x8]
	tst	x1, x19
	b.eq	LBB0_5
; %bb.4:
	bic	x19, x19, x1
Lloh14:
	adrp	x8, _SDHCI_INT_STATUS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SDHCI_INT_STATUS@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_sdhci_writel
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fsl,p2020-esdhc"

	.comm	_SDHCI_COMMAND,4,2              ; @SDHCI_COMMAND
	.comm	_MMC_WRITE_MULTIPLE_BLOCK,8,3   ; @MMC_WRITE_MULTIPLE_BLOCK
	.comm	_SDHCI_BLOCK_COUNT,4,2          ; @SDHCI_BLOCK_COUNT
	.comm	_SDHCI_INT_DATA_END,8,3         ; @SDHCI_INT_DATA_END
	.comm	_SDHCI_INT_STATUS,4,2           ; @SDHCI_INT_STATUS
	.no_dead_strip	_esdhc_irq
.subsections_via_symbols
