	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meson_mx_mmc_irq
_meson_mx_mmc_irq:                      ## @meson_mx_mmc_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_spin_lock_irqsave
	movq	_MESON_MX_SDIO_IRQS@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movl	%eax, %r14d
	movq	_MESON_MX_SDIO_SEND@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movq	_MESON_MX_SDIO_IRQS_CMD_INT@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_meson_mx_mmc_process_cmd_irq
	movl	%eax, %r15d
	jmp	LBB0_3
LBB0_2:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_3:
	movq	(%r12), %rsi
	addq	8(%rbx), %rsi
	movl	%r14d, %edi
	callq	_writel
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MESON_MX_SDIO_IRQS,8,3         ## @MESON_MX_SDIO_IRQS
	.comm	_MESON_MX_SDIO_SEND,8,3         ## @MESON_MX_SDIO_SEND
	.comm	_MESON_MX_SDIO_IRQS_CMD_INT,4,2 ## @MESON_MX_SDIO_IRQS_CMD_INT
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_meson_mx_mmc_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function meson_mx_mmc_irq
_meson_mx_mmc_irq:                      ; @meson_mx_mmc_irq
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x0, x1
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x22, _MESON_MX_SDIO_IRQS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MESON_MX_SDIO_IRQS@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	mov	x20, x0
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, _MESON_MX_SDIO_SEND@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MESON_MX_SDIO_SEND@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh5:
	adrp	x8, _MESON_MX_SDIO_IRQS_CMD_INT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MESON_MX_SDIO_IRQS_CMD_INT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_meson_mx_mmc_process_cmd_irq
	mov	x21, x0
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MESON_MX_SDIO_IRQS,8,3         ; @MESON_MX_SDIO_IRQS
	.comm	_MESON_MX_SDIO_SEND,8,3         ; @MESON_MX_SDIO_SEND
	.comm	_MESON_MX_SDIO_IRQS_CMD_INT,4,2 ; @MESON_MX_SDIO_IRQS_CMD_INT
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_meson_mx_mmc_irq
.subsections_via_symbols
