	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function idma64_chan_irq
_idma64_chan_irq:                       ## @idma64_chan_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r13
	movq	(%rdi), %r15
	movl	%esi, %eax
	leaq	(%rax,%rax,2), %r14
	leaq	(%r15,%r14,8), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock
	movq	8(%r15,%r14,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.1:
	leaq	(%r15,%r14,8), %rsi
	addq	$8, %rsi
	movl	$1, %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	btl	%ebx, %r12d
	jae	LBB0_3
## %bb.2:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rdx, %r12
	movq	%rsi, %rbx
	callq	_CLEAR
	movl	16(%r15,%r14,8), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_dma_writel
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	_DMA_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	jmp	LBB0_5
LBB0_3:
	testl	%eax, -52(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_5
## %bb.4:
	movq	_XFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rdx, %rbx
	movq	%rsi, %r12
	callq	_CLEAR
	movl	16(%r15,%r14,8), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_dma_writel
	movq	_DMA_COMPLETE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	leaq	8(%rbx), %rdi
	callq	_vchan_cookie_complete
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_idma64_start_transfer
	movq	%r12, %rsi
	movq	%rbx, %rdx
LBB0_5:
	cmpq	$0, (%rsi)
	je	LBB0_7
## %bb.6:
	movq	(%rdx), %rax
	movq	_DMA_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
LBB0_7:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_idma64_stop_transfer
LBB0_8:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_DMA_ERROR,8,3                  ## @DMA_ERROR
	.comm	_XFER,4,2                       ## @XFER
	.comm	_DMA_COMPLETE,8,3               ## @DMA_COMPLETE
	.no_dead_strip	_idma64_chan_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function idma64_chan_irq
_idma64_chan_irq:                       ; @idma64_chan_irq
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	ldr	x26, [x0]
	mov	w8, #24
	umaddl	x19, w1, w8, x26
	mov	x0, x19
	bl	_spin_lock
	mov	x25, x19
	ldr	x24, [x25, #8]!
	cbz	x24, LBB0_8
; %bb.1:
	mov	w27, w23
	mov	w8, #1
	lsl	w8, w8, w23
Lloh0:
	adrp	x23, _DMA_ERROR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DMA_ERROR@GOTPAGEOFF]
	tst	w8, w22
	b.eq	LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_CLEAR
	mov	x1, x0
	mov	w8, #24
	madd	x8, x27, x8, x26
	ldr	w2, [x8, #16]
	mov	x0, x20
	bl	_dma_writel
	ldr	x8, [x23]
	str	x8, [x24]
	b	LBB0_5
LBB0_3:
	tst	w8, w21
	b.eq	LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _XFER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _XFER@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_CLEAR
	mov	x1, x0
	mov	w8, #24
	madd	x8, x27, x8, x26
	ldr	w2, [x8, #16]
	mov	x0, x20
	bl	_dma_writel
Lloh8:
	adrp	x8, _DMA_COMPLETE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DMA_COMPLETE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	mov	x0, x24
	str	x8, [x0], #8
	bl	_vchan_cookie_complete
	mov	x0, x19
	bl	_idma64_start_transfer
LBB0_5:
	ldr	x8, [x25]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	x8, [x24]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_idma64_stop_transfer
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_spin_unlock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_DMA_ERROR,8,3                  ; @DMA_ERROR
	.comm	_XFER,4,2                       ; @XFER
	.comm	_DMA_COMPLETE,8,3               ; @DMA_COMPLETE
	.no_dead_strip	_idma64_chan_irq
.subsections_via_symbols
