	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m2m_hw_interrupt
_m2m_hw_interrupt:                      ## @m2m_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	%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
	movq	%rdi, %r14
	movq	_M2M_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movq	%rax, %rbx
	movq	_M2M_STATUS_CTL_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	andq	%rbx, %r15
	movq	_M2M_STATUS_BUF_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	andq	%rbx, %r12
	movq	_M2M_STATUS_DONE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_M2M_INTERRUPT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movq	_M2M_INTERRUPT_MASK@GOTPCREL(%rip), %rcx
	testq	%rax, (%rcx)
	je	LBB0_1
## %bb.2:
	andl	%ebx, %r13d
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.3:
	movq	_M2M_INTERRUPT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	xorl	%edi, %edi
	callq	_writel
LBB0_4:
	movq	%r14, %rdi
	callq	_ep93xx_dma_get_active
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	cmpq	$0, (%rax)
	je	LBB0_6
LBB0_12:
	movq	_M2M_STATUS_BUF_NO@GOTPCREL(%rip), %rax
	movq	_INTERRUPT_NEXT_BUFFER@GOTPCREL(%rip), %rbx
	cmpq	(%rax), %r12
	jne	LBB0_16
## %bb.13:
	movq	_M2M_STATUS_CTL_STALL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_16
## %bb.14:
	movq	_M2M_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movq	_M2M_CONTROL_DONEINT@GOTPCREL(%rip), %rcx
	movq	_M2M_CONTROL_NFBINT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	orq	(%rcx), %rdi
	movq	_M2M_CONTROL_ENABLE@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rdi
	notq	%rdi
	andq	%rax, %rdi
	movq	_INTERRUPT_DONE@GOTPCREL(%rip), %rbx
LBB0_15:
	movq	_M2M_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_writel
	jmp	LBB0_16
LBB0_1:
	movq	_INTERRUPT_UNKNOWN@GOTPCREL(%rip), %rbx
LBB0_16:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_M2M_STATUS_BUF_NO@GOTPCREL(%rip), %rax
	movq	_INTERRUPT_NEXT_BUFFER@GOTPCREL(%rip), %rbx
	cmpq	(%rax), %r12
	je	LBB0_8
## %bb.7:
	movq	_M2M_STATUS_BUF_ON@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_16
LBB0_8:
	movq	%r14, %rdi
	callq	_ep93xx_dma_advance_active
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	%r14, %rdi
	callq	_m2m_fill_desc
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_16
## %bb.10:
	cmpl	$0, 8(%r14)
	jne	LBB0_16
## %bb.11:
	movq	_M2M_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movq	%rax, %rdi
	movq	_M2M_CONTROL_START@GOTPCREL(%rip), %rax
	orq	(%rax), %rdi
	movq	_INTERRUPT_NEXT_BUFFER@GOTPCREL(%rip), %rbx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_M2M_STATUS,8,3                 ## @M2M_STATUS
	.comm	_M2M_STATUS_CTL_MASK,8,3        ## @M2M_STATUS_CTL_MASK
	.comm	_M2M_STATUS_BUF_MASK,8,3        ## @M2M_STATUS_BUF_MASK
	.comm	_M2M_STATUS_DONE,8,3            ## @M2M_STATUS_DONE
	.comm	_M2M_INTERRUPT,8,3              ## @M2M_INTERRUPT
	.comm	_M2M_INTERRUPT_MASK,8,3         ## @M2M_INTERRUPT_MASK
	.comm	_INTERRUPT_UNKNOWN,4,2          ## @INTERRUPT_UNKNOWN
	.comm	_M2M_STATUS_BUF_NO,8,3          ## @M2M_STATUS_BUF_NO
	.comm	_M2M_STATUS_BUF_ON,8,3          ## @M2M_STATUS_BUF_ON
	.comm	_M2M_CONTROL,8,3                ## @M2M_CONTROL
	.comm	_M2M_CONTROL_START,8,3          ## @M2M_CONTROL_START
	.comm	_INTERRUPT_NEXT_BUFFER,4,2      ## @INTERRUPT_NEXT_BUFFER
	.comm	_M2M_STATUS_CTL_STALL,8,3       ## @M2M_STATUS_CTL_STALL
	.comm	_M2M_CONTROL_DONEINT,8,3        ## @M2M_CONTROL_DONEINT
	.comm	_M2M_CONTROL_NFBINT,8,3         ## @M2M_CONTROL_NFBINT
	.comm	_M2M_CONTROL_ENABLE,8,3         ## @M2M_CONTROL_ENABLE
	.comm	_INTERRUPT_DONE,4,2             ## @INTERRUPT_DONE
	.no_dead_strip	_m2m_hw_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m2m_hw_interrupt
_m2m_hw_interrupt:                      ; @m2m_hw_interrupt
	.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	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _M2M_STATUS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _M2M_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x20, x0
Lloh3:
	adrp	x8, _M2M_STATUS_CTL_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _M2M_STATUS_CTL_MASK@GOTPAGEOFF]
Lloh5:
	ldr	x21, [x8]
Lloh6:
	adrp	x8, _M2M_STATUS_BUF_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _M2M_STATUS_BUF_MASK@GOTPAGEOFF]
Lloh8:
	ldr	x23, [x8]
Lloh9:
	adrp	x8, _M2M_STATUS_DONE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _M2M_STATUS_DONE@GOTPAGEOFF]
Lloh11:
	ldr	x22, [x8]
	ldr	x8, [x19]
Lloh12:
	adrp	x24, _M2M_INTERRUPT@GOTPAGE
Lloh13:
	ldr	x24, [x24, _M2M_INTERRUPT@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl
Lloh14:
	adrp	x8, _M2M_INTERRUPT_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _M2M_INTERRUPT_MASK@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	tst	x8, x0
	b.eq	LBB0_8
; %bb.1:
	ands	w22, w22, w20
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x19]
	ldr	x9, [x24]
	add	x1, x9, x8
	mov	x0, #0
	bl	_writel
LBB0_3:
	and	x23, x23, x20
	mov	x0, x19
	bl	_ep93xx_dma_get_active
Lloh17:
	adrp	x24, _M2M_STATUS_BUF_NO@GOTPAGE
Lloh18:
	ldr	x24, [x24, _M2M_STATUS_BUF_NO@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x0]
	cbz	x8, LBB0_9
LBB0_5:
	and	x8, x21, x20
	ldr	x9, [x24]
Lloh19:
	adrp	x10, _M2M_STATUS_CTL_STALL@GOTPAGE
Lloh20:
	ldr	x10, [x10, _M2M_STATUS_CTL_STALL@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	cmp	x23, x9
	ccmp	x8, x10, #0, eq
	b.ne	LBB0_13
; %bb.6:
	ldr	x8, [x19]
Lloh22:
	adrp	x9, _M2M_CONTROL@GOTPAGE
Lloh23:
	ldr	x9, [x9, _M2M_CONTROL@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh25:
	adrp	x8, _M2M_CONTROL_DONEINT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _M2M_CONTROL_DONEINT@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
Lloh28:
	adrp	x9, _M2M_CONTROL_NFBINT@GOTPAGE
Lloh29:
	ldr	x9, [x9, _M2M_CONTROL_NFBINT@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
Lloh31:
	adrp	x10, _M2M_CONTROL_ENABLE@GOTPAGE
Lloh32:
	ldr	x10, [x10, _M2M_CONTROL_ENABLE@GOTPAGEOFF]
	orr	x8, x9, x8
Lloh33:
	ldr	x9, [x10]
	orr	x8, x8, x9
	bic	x0, x0, x8
Lloh34:
	adrp	x20, _INTERRUPT_DONE@GOTPAGE
Lloh35:
	ldr	x20, [x20, _INTERRUPT_DONE@GOTPAGEOFF]
LBB0_7:
	ldr	x8, [x19]
Lloh36:
	adrp	x9, _M2M_CONTROL@GOTPAGE
Lloh37:
	ldr	x9, [x9, _M2M_CONTROL@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	b	LBB0_14
LBB0_8:
Lloh39:
	adrp	x20, _INTERRUPT_UNKNOWN@GOTPAGE
Lloh40:
	ldr	x20, [x20, _INTERRUPT_UNKNOWN@GOTPAGEOFF]
	b	LBB0_14
LBB0_9:
	ldr	x8, [x24]
Lloh41:
	adrp	x9, _M2M_STATUS_BUF_ON@GOTPAGE
Lloh42:
	ldr	x9, [x9, _M2M_STATUS_BUF_ON@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x23, x8
	ccmp	x23, x9, #4, ne
	b.ne	LBB0_13
; %bb.10:
	mov	x0, x19
	bl	_ep93xx_dma_advance_active
	cbz	x0, LBB0_5
; %bb.11:
	mov	x0, x19
	bl	_m2m_fill_desc
	cbz	w22, LBB0_13
; %bb.12:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_15
LBB0_13:
Lloh44:
	adrp	x20, _INTERRUPT_NEXT_BUFFER@GOTPAGE
Lloh45:
	ldr	x20, [x20, _INTERRUPT_NEXT_BUFFER@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x20]
	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
LBB0_15:
	ldr	x8, [x19]
Lloh46:
	adrp	x9, _M2M_CONTROL@GOTPAGE
Lloh47:
	ldr	x9, [x9, _M2M_CONTROL@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh49:
	adrp	x8, _M2M_CONTROL_START@GOTPAGE
Lloh50:
	ldr	x8, [x8, _M2M_CONTROL_START@GOTPAGEOFF]
Lloh51:
	ldr	x8, [x8]
	orr	x0, x8, x0
Lloh52:
	adrp	x20, _INTERRUPT_NEXT_BUFFER@GOTPAGE
Lloh53:
	ldr	x20, [x20, _INTERRUPT_NEXT_BUFFER@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_M2M_STATUS,8,3                 ; @M2M_STATUS
	.comm	_M2M_STATUS_CTL_MASK,8,3        ; @M2M_STATUS_CTL_MASK
	.comm	_M2M_STATUS_BUF_MASK,8,3        ; @M2M_STATUS_BUF_MASK
	.comm	_M2M_STATUS_DONE,8,3            ; @M2M_STATUS_DONE
	.comm	_M2M_INTERRUPT,8,3              ; @M2M_INTERRUPT
	.comm	_M2M_INTERRUPT_MASK,8,3         ; @M2M_INTERRUPT_MASK
	.comm	_INTERRUPT_UNKNOWN,4,2          ; @INTERRUPT_UNKNOWN
	.comm	_M2M_STATUS_BUF_NO,8,3          ; @M2M_STATUS_BUF_NO
	.comm	_M2M_STATUS_BUF_ON,8,3          ; @M2M_STATUS_BUF_ON
	.comm	_M2M_CONTROL,8,3                ; @M2M_CONTROL
	.comm	_M2M_CONTROL_START,8,3          ; @M2M_CONTROL_START
	.comm	_INTERRUPT_NEXT_BUFFER,4,2      ; @INTERRUPT_NEXT_BUFFER
	.comm	_M2M_STATUS_CTL_STALL,8,3       ; @M2M_STATUS_CTL_STALL
	.comm	_M2M_CONTROL_DONEINT,8,3        ; @M2M_CONTROL_DONEINT
	.comm	_M2M_CONTROL_NFBINT,8,3         ; @M2M_CONTROL_NFBINT
	.comm	_M2M_CONTROL_ENABLE,8,3         ; @M2M_CONTROL_ENABLE
	.comm	_INTERRUPT_DONE,4,2             ; @INTERRUPT_DONE
	.no_dead_strip	_m2m_hw_interrupt
.subsections_via_symbols
