	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_davinci_enable_sdio_irq
_mmc_davinci_enable_sdio_irq:           ## @mmc_davinci_enable_sdio_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
	movl	%esi, %ebx
	callq	_mmc_priv
	movq	%rax, %r14
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.1:
	movq	_DAVINCI_SDIOST0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	movq	_SDIOST0_DAT1_HI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.2:
	movl	$1, (%r14)
	movq	_DAVINCI_SDIOIEN@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	movq	_SDIOIEN_IOINTEN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	(%rbx), %rsi
	addq	8(%r14), %rsi
	movl	%eax, %edi
	jmp	LBB0_3
LBB0_4:
	movl	$0, (%r14)
	movq	_DAVINCI_SDIOIEN@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	movq	_SDIOIEN_IOINTEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	(%rbx), %rsi
	addq	8(%r14), %rsi
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_writel                         ## TAILCALL
LBB0_5:
	movq	_SDIOIST_IOINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DAVINCI_SDIOIST@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	movl	16(%r14), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mmc_signal_sdio_irq            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DAVINCI_SDIOST0,8,3            ## @DAVINCI_SDIOST0
	.comm	_SDIOST0_DAT1_HI,4,2            ## @SDIOST0_DAT1_HI
	.comm	_SDIOIST_IOINT,4,2              ## @SDIOIST_IOINT
	.comm	_DAVINCI_SDIOIST,8,3            ## @DAVINCI_SDIOIST
	.comm	_DAVINCI_SDIOIEN,8,3            ## @DAVINCI_SDIOIEN
	.comm	_SDIOIEN_IOINTEN,4,2            ## @SDIOIEN_IOINTEN
	.no_dead_strip	_mmc_davinci_enable_sdio_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_davinci_enable_sdio_irq
_mmc_davinci_enable_sdio_irq:           ; @mmc_davinci_enable_sdio_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	x20, x1
	bl	_mmc_priv
	mov	x19, x0
	cbz	w20, LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _DAVINCI_SDIOST0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DAVINCI_SDIOST0@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh3:
	adrp	x8, _SDIOST0_DAT1_HI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SDIOST0_DAT1_HI@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.2:
	mov	w8, #1
	str	w8, [x19]
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x20, _DAVINCI_SDIOIEN@GOTPAGE
Lloh7:
	ldr	x20, [x20, _DAVINCI_SDIOIEN@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh8:
	adrp	x8, _SDIOIEN_IOINTEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SDIOIEN_IOINTEN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	orr	w0, w8, w0
	b	LBB0_4
LBB0_3:
	str	wzr, [x19]
	ldr	x8, [x19, #8]
Lloh11:
	adrp	x20, _DAVINCI_SDIOIEN@GOTPAGE
Lloh12:
	ldr	x20, [x20, _DAVINCI_SDIOIEN@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh13:
	adrp	x8, _SDIOIEN_IOINTEN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SDIOIEN_IOINTEN@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	bic	w0, w0, w8
LBB0_4:
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_writel
LBB0_5:
Lloh16:
	adrp	x8, _SDIOIST_IOINT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SDIOIST_IOINT@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
Lloh19:
	adrp	x9, _DAVINCI_SDIOIST@GOTPAGE
Lloh20:
	ldr	x9, [x9, _DAVINCI_SDIOIST@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x19, #16]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mmc_signal_sdio_irq
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_DAVINCI_SDIOST0,8,3            ; @DAVINCI_SDIOST0
	.comm	_SDIOST0_DAT1_HI,4,2            ; @SDIOST0_DAT1_HI
	.comm	_SDIOIST_IOINT,4,2              ; @SDIOIST_IOINT
	.comm	_DAVINCI_SDIOIST,8,3            ; @DAVINCI_SDIOIST
	.comm	_DAVINCI_SDIOIEN,8,3            ; @DAVINCI_SDIOIEN
	.comm	_SDIOIEN_IOINTEN,4,2            ; @SDIOIEN_IOINTEN
	.no_dead_strip	_mmc_davinci_enable_sdio_irq
.subsections_via_symbols
