	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m2p_hw_interrupt
_m2p_hw_interrupt:                      ## @m2p_hw_interrupt
	.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	%rdi, %r15
	movq	_M2P_INTERRUPT@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	(%r15), %rdi
	callq	_readl
	movl	%eax, %r14d
	movq	_M2P_INTERRUPT_ERROR@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_ep93xx_dma_get_active
	movq	%rax, %rbx
	movq	(%r12), %rsi
	addq	(%r15), %rsi
	movl	$1, %edi
	callq	_writel
	movq	%r15, %rdi
	callq	_chan2dev
	movl	12(%rbx), %edx
	movl	8(%rbx), %ecx
	movl	(%rbx), %r9d
	movl	4(%rbx), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_err
LBB0_2:
	movq	_M2P_INTERRUPT_STALL@GOTPCREL(%rip), %rax
	movq	_M2P_INTERRUPT_NFB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%r14d, %ecx
	je	LBB0_3
## %bb.4:
	movq	%r15, %rdi
	callq	_ep93xx_dma_advance_active
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_m2p_fill_desc
	movq	_INTERRUPT_NEXT_BUFFER@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movq	_INTERRUPT_UNKNOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_M2P_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r15), %rdi
	callq	_readl
	movq	_M2P_CONTROL_STALLINT@GOTPCREL(%rip), %rcx
	movq	_M2P_CONTROL_NFBINT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movq	%r15, %rdi
	callq	_m2p_set_control
	movq	_INTERRUPT_DONE@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M2P_INTERRUPT,8,3              ## @M2P_INTERRUPT
	.comm	_M2P_INTERRUPT_ERROR,4,2        ## @M2P_INTERRUPT_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DMA transfer failed! Details:\n\tcookie\t: %d\n\tsrc_addr\t: 0x%08x\n\tdst_addr\t: 0x%08x\n\tsize\t\t: %zu\n"

	.comm	_M2P_INTERRUPT_STALL,4,2        ## @M2P_INTERRUPT_STALL
	.comm	_M2P_INTERRUPT_NFB,4,2          ## @M2P_INTERRUPT_NFB
	.comm	_INTERRUPT_UNKNOWN,4,2          ## @INTERRUPT_UNKNOWN
	.comm	_INTERRUPT_NEXT_BUFFER,4,2      ## @INTERRUPT_NEXT_BUFFER
	.comm	_M2P_CONTROL,8,3                ## @M2P_CONTROL
	.comm	_M2P_CONTROL_STALLINT,4,2       ## @M2P_CONTROL_STALLINT
	.comm	_M2P_CONTROL_NFBINT,4,2         ## @M2P_CONTROL_NFBINT
	.comm	_INTERRUPT_DONE,4,2             ## @INTERRUPT_DONE
	.no_dead_strip	_m2p_hw_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m2p_hw_interrupt
_m2p_hw_interrupt:                      ; @m2p_hw_interrupt
	.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, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x22, _M2P_INTERRUPT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _M2P_INTERRUPT@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	mov	x20, x0
Lloh2:
	adrp	x8, _M2P_INTERRUPT_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _M2P_INTERRUPT_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_ep93xx_dma_get_active
	mov	x21, x0
	ldr	x8, [x19]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	w0, #1
	bl	_writel
	mov	x0, x19
	bl	_chan2dev
	ldp	w3, w2, [x21, #8]
	ldp	w5, w4, [x21]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_2:
Lloh7:
	adrp	x8, _M2P_INTERRUPT_STALL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _M2P_INTERRUPT_STALL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _M2P_INTERRUPT_NFB@GOTPAGE
Lloh11:
	ldr	x9, [x9, _M2P_INTERRUPT_NFB@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w20
	b.eq	LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_ep93xx_dma_advance_active
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_m2p_fill_desc
Lloh13:
	adrp	x8, _INTERRUPT_NEXT_BUFFER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _INTERRUPT_NEXT_BUFFER@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh15:
	adrp	x8, _INTERRUPT_UNKNOWN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _INTERRUPT_UNKNOWN@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
	ldr	x8, [x19]
Lloh17:
	adrp	x9, _M2P_CONTROL@GOTPAGE
Lloh18:
	ldr	x9, [x9, _M2P_CONTROL@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh20:
	adrp	x8, _M2P_CONTROL_STALLINT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _M2P_CONTROL_STALLINT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _M2P_CONTROL_NFBINT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _M2P_CONTROL_NFBINT@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w1, w0, w8
	mov	x0, x19
	bl	_m2p_set_control
Lloh26:
	adrp	x8, _INTERRUPT_DONE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _INTERRUPT_DONE@GOTPAGEOFF]
LBB0_7:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_M2P_INTERRUPT,8,3              ; @M2P_INTERRUPT
	.comm	_M2P_INTERRUPT_ERROR,4,2        ; @M2P_INTERRUPT_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DMA transfer failed! Details:\n\tcookie\t: %d\n\tsrc_addr\t: 0x%08x\n\tdst_addr\t: 0x%08x\n\tsize\t\t: %zu\n"

	.comm	_M2P_INTERRUPT_STALL,4,2        ; @M2P_INTERRUPT_STALL
	.comm	_M2P_INTERRUPT_NFB,4,2          ; @M2P_INTERRUPT_NFB
	.comm	_INTERRUPT_UNKNOWN,4,2          ; @INTERRUPT_UNKNOWN
	.comm	_INTERRUPT_NEXT_BUFFER,4,2      ; @INTERRUPT_NEXT_BUFFER
	.comm	_M2P_CONTROL,8,3                ; @M2P_CONTROL
	.comm	_M2P_CONTROL_STALLINT,4,2       ; @M2P_CONTROL_STALLINT
	.comm	_M2P_CONTROL_NFBINT,4,2         ; @M2P_CONTROL_NFBINT
	.comm	_INTERRUPT_DONE,4,2             ; @INTERRUPT_DONE
	.no_dead_strip	_m2p_hw_interrupt
.subsections_via_symbols
