	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function moxart_irq
_moxart_irq:                            ## @moxart_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
	leaq	4(%rsi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_REG_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%rbx), %rdi
	callq	_readl
	movl	%eax, %r15d
	movq	_CARD_CHANGE@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	je	LBB0_5
## %bb.1:
	movq	_CARD_DETECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	movl	%eax, (%rbx)
	je	LBB0_4
## %bb.2:
	cmpq	$0, 40(%rbx)
	je	LBB0_4
## %bb.3:
	movl	36(%rbx), %edi
	callq	_dmaengine_terminate_all
	movl	32(%rbx), %edi
	callq	_dmaengine_terminate_all
LBB0_4:
	movq	$0, 8(%rbx)
	movq	_MASK_INTR_PIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_REG_CLEAR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%rbx), %rsi
	callq	_writel
	movl	(%r12), %edi
	movq	_REG_INTERRUPT_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%rbx), %rsi
	callq	_writel
	movl	16(%rbx), %edi
	xorl	%esi, %esi
	callq	_mmc_detect_change
LBB0_5:
	movq	_FIFO_ORUN@GOTPCREL(%rip), %rax
	movq	_FIFO_URUN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%r15d, %ecx
	je	LBB0_8
## %bb.6:
	cmpq	$0, 8(%rbx)
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_moxart_transfer_pio
LBB0_8:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_STATUS,8,3                 ## @REG_STATUS
	.comm	_CARD_CHANGE,4,2                ## @CARD_CHANGE
	.comm	_CARD_DETECT,4,2                ## @CARD_DETECT
	.comm	_MASK_INTR_PIO,4,2              ## @MASK_INTR_PIO
	.comm	_REG_CLEAR,8,3                  ## @REG_CLEAR
	.comm	_REG_INTERRUPT_MASK,8,3         ## @REG_INTERRUPT_MASK
	.comm	_FIFO_ORUN,4,2                  ## @FIFO_ORUN
	.comm	_FIFO_URUN,4,2                  ## @FIFO_URUN
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_moxart_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function moxart_irq
_moxart_irq:                            ; @moxart_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	x20, x1
	add	x19, x1, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #24]
Lloh0:
	adrp	x9, _REG_STATUS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _REG_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x21, x0
Lloh3:
	adrp	x22, _CARD_CHANGE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _CARD_CHANGE@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.1:
Lloh5:
	adrp	x8, _CARD_DETECT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CARD_DETECT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ands	w8, w8, w21
	str	w8, [x20]
	b.eq	LBB0_4
; %bb.2:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x20, #36]
	bl	_dmaengine_terminate_all
	ldr	w0, [x20, #32]
	bl	_dmaengine_terminate_all
LBB0_4:
	str	xzr, [x20, #8]
Lloh8:
	adrp	x8, _MASK_INTR_PIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MASK_INTR_PIO@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	x8, [x20, #24]
Lloh11:
	adrp	x9, _REG_CLEAR@GOTPAGE
Lloh12:
	ldr	x9, [x9, _REG_CLEAR@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x22]
	ldr	x8, [x20, #24]
Lloh14:
	adrp	x9, _REG_INTERRUPT_MASK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _REG_INTERRUPT_MASK@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x20, #16]
	mov	w1, #0
	bl	_mmc_detect_change
LBB0_5:
Lloh17:
	adrp	x8, _FIFO_ORUN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FIFO_ORUN@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _FIFO_URUN@GOTPAGE
Lloh21:
	ldr	x9, [x9, _FIFO_URUN@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w21
	b.eq	LBB0_8
; %bb.6:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_moxart_transfer_pio
LBB0_8:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
Lloh23:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_STATUS,8,3                 ; @REG_STATUS
	.comm	_CARD_CHANGE,4,2                ; @CARD_CHANGE
	.comm	_CARD_DETECT,4,2                ; @CARD_DETECT
	.comm	_MASK_INTR_PIO,4,2              ; @MASK_INTR_PIO
	.comm	_REG_CLEAR,8,3                  ; @REG_CLEAR
	.comm	_REG_INTERRUPT_MASK,8,3         ; @REG_INTERRUPT_MASK
	.comm	_FIFO_ORUN,4,2                  ; @FIFO_ORUN
	.comm	_FIFO_URUN,4,2                  ; @FIFO_URUN
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_moxart_irq
.subsections_via_symbols
