	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxs_mmc_enable_sdio_irq
_mxs_mmc_enable_sdio_irq:               ## @mxs_mmc_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	callq	_mmc_priv
	movq	%rax, %r12
	leaq	16(%rax), %r15
	leaq	8(%rax), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	%ebx, (%r12)
	movq	_HW_SSP_CTRL0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r12), %rsi
	movq	_BM_SSP_CTRL0_SDIO_IRQ_CHECK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.1:
	movq	_STMP_OFFSET_REG_SET@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	callq	_writel
	movq	_BM_SSP_CTRL1_SDIO_IRQ_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	(%r15), %rbx
	movq	%r15, %rdi
	callq	_HW_SSP_CTRL1
	addq	%rax, %rbx
	movq	_STMP_OFFSET_REG_SET@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movl	%r13d, %edi
	movq	%rbx, %rsi
	callq	_writel
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	(%r15), %rbx
	movq	%r15, %rdi
	callq	_HW_SSP_STATUS
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_readl
	movq	_BM_SSP_STATUS_SDIO_IRQ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.4:
	movl	4(%r12), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmc_signal_sdio_irq            ## TAILCALL
LBB0_3:
	movq	_STMP_OFFSET_REG_CLR@GOTPCREL(%rip), %r13
	addq	(%r13), %rsi
	callq	_writel
	movq	_BM_SSP_CTRL1_SDIO_IRQ_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	(%r15), %rbx
	movq	%r15, %rdi
	callq	_HW_SSP_CTRL1
	addq	%rax, %rbx
	addq	(%r13), %rbx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_writel
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BM_SSP_CTRL0_SDIO_IRQ_CHECK,4,2 ## @BM_SSP_CTRL0_SDIO_IRQ_CHECK
	.comm	_HW_SSP_CTRL0,8,3               ## @HW_SSP_CTRL0
	.comm	_STMP_OFFSET_REG_SET,8,3        ## @STMP_OFFSET_REG_SET
	.comm	_BM_SSP_CTRL1_SDIO_IRQ_EN,4,2   ## @BM_SSP_CTRL1_SDIO_IRQ_EN
	.comm	_STMP_OFFSET_REG_CLR,8,3        ## @STMP_OFFSET_REG_CLR
	.comm	_BM_SSP_STATUS_SDIO_IRQ,4,2     ## @BM_SSP_STATUS_SDIO_IRQ
	.no_dead_strip	_mxs_mmc_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 mxs_mmc_enable_sdio_irq
_mxs_mmc_enable_sdio_irq:               ; @mxs_mmc_enable_sdio_irq
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x1
	bl	_mmc_priv
	mov	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	x21, x20
	ldr	x8, [x21, #16]!
Lloh0:
	adrp	x9, _BM_SSP_CTRL0_SDIO_IRQ_CHECK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BM_SSP_CTRL0_SDIO_IRQ_CHECK@GOTPAGEOFF]
	str	w22, [x20]
Lloh2:
	ldr	w0, [x9]
Lloh3:
	adrp	x9, _HW_SSP_CTRL0@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HW_SSP_CTRL0@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x8, x9, x8
	cbz	w22, LBB0_3
; %bb.1:
Lloh6:
	adrp	x23, _STMP_OFFSET_REG_SET@GOTPAGE
Lloh7:
	ldr	x23, [x23, _STMP_OFFSET_REG_SET@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x1, x8, x9
	bl	_writel
Lloh8:
	adrp	x8, _BM_SSP_CTRL1_SDIO_IRQ_EN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BM_SSP_CTRL1_SDIO_IRQ_EN@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
	ldr	x24, [x21]
	mov	x0, x21
	bl	_HW_SSP_CTRL1
	ldr	x8, [x23]
	add	x9, x0, x24
	add	x1, x9, x8
	mov	x0, x22
	bl	_writel
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	ldr	x19, [x21]
	mov	x0, x21
	bl	_HW_SSP_STATUS
	add	x0, x0, x19
	bl	_readl
Lloh11:
	adrp	x8, _BM_SSP_STATUS_SDIO_IRQ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BM_SSP_STATUS_SDIO_IRQ@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.2:
	ldr	w0, [x20, #4]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mmc_signal_sdio_irq
LBB0_3:
Lloh14:
	adrp	x22, _STMP_OFFSET_REG_CLR@GOTPAGE
Lloh15:
	ldr	x22, [x22, _STMP_OFFSET_REG_CLR@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x1, x8, x9
	bl	_writel
Lloh16:
	adrp	x8, _BM_SSP_CTRL1_SDIO_IRQ_EN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BM_SSP_CTRL1_SDIO_IRQ_EN@GOTPAGEOFF]
Lloh18:
	ldr	w20, [x8]
	ldr	x23, [x21]
	mov	x0, x21
	bl	_HW_SSP_CTRL1
	ldr	x8, [x22]
	add	x9, x0, x23
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_BM_SSP_CTRL0_SDIO_IRQ_CHECK,4,2 ; @BM_SSP_CTRL0_SDIO_IRQ_CHECK
	.comm	_HW_SSP_CTRL0,8,3               ; @HW_SSP_CTRL0
	.comm	_STMP_OFFSET_REG_SET,8,3        ; @STMP_OFFSET_REG_SET
	.comm	_BM_SSP_CTRL1_SDIO_IRQ_EN,4,2   ; @BM_SSP_CTRL1_SDIO_IRQ_EN
	.comm	_STMP_OFFSET_REG_CLR,8,3        ; @STMP_OFFSET_REG_CLR
	.comm	_BM_SSP_STATUS_SDIO_IRQ,4,2     ; @BM_SSP_STATUS_SDIO_IRQ
	.no_dead_strip	_mxs_mmc_enable_sdio_irq
.subsections_via_symbols
