	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function k3_dma_terminate_chan
_k3_dma_terminate_chan:                 ## @k3_dma_terminate_chan
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%esi, %esi
	callq	_k3_dma_pause_dma
	movb	(%rbx), %cl
	movl	$1, %ebx
	shll	%cl, %ebx
	movq	_INT_TC1_RAW@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel_relaxed
	movq	_INT_TC2_RAW@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel_relaxed
	movq	_INT_ERR1_RAW@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel_relaxed
	movq	_INT_ERR2_RAW@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_writel_relaxed                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_TC1_RAW,8,3                ## @INT_TC1_RAW
	.comm	_INT_TC2_RAW,8,3                ## @INT_TC2_RAW
	.comm	_INT_ERR1_RAW,8,3               ## @INT_ERR1_RAW
	.comm	_INT_ERR2_RAW,8,3               ## @INT_ERR2_RAW
	.no_dead_strip	_k3_dma_terminate_chan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function k3_dma_terminate_chan
_k3_dma_terminate_chan:                 ; @k3_dma_terminate_chan
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	mov	w1, #0
	bl	_k3_dma_pause_dma
	ldr	w8, [x20]
	mov	w9, #1
	lsl	w20, w9, w8
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _INT_TC1_RAW@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INT_TC1_RAW@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel_relaxed
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _INT_TC2_RAW@GOTPAGE
Lloh4:
	ldr	x9, [x9, _INT_TC2_RAW@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel_relaxed
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _INT_ERR1_RAW@GOTPAGE
Lloh7:
	ldr	x9, [x9, _INT_ERR1_RAW@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel_relaxed
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _INT_ERR2_RAW@GOTPAGE
Lloh10:
	ldr	x9, [x9, _INT_ERR2_RAW@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_writel_relaxed
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_TC1_RAW,8,3                ; @INT_TC1_RAW
	.comm	_INT_TC2_RAW,8,3                ; @INT_TC2_RAW
	.comm	_INT_ERR1_RAW,8,3               ; @INT_ERR1_RAW
	.comm	_INT_ERR2_RAW,8,3               ; @INT_ERR2_RAW
	.no_dead_strip	_k3_dma_terminate_chan
.subsections_via_symbols
