	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function txx9dmac_reset_chan
_txx9dmac_reset_chan:                   ## @txx9dmac_reset_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	%rdi, %rbx
	movq	_CCR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_TXX9_DMA_CCR_CHRST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_channel_writel
	movq	%rbx, %rdi
	callq	_is_dmac64
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_channel64_clear_CHAR
	movq	_SAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_channel_writeq
	movq	_DAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_channel_writeq
	jmp	LBB0_3
LBB0_2:
	movq	_CHAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_channel_writel
	movq	_SAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_channel_writel
	movq	_DAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_channel_writel
LBB0_3:
	movq	_CNTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_channel_writel
	movq	_SAIR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_channel_writel
	movq	_DAIR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_channel_writel
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_channel_writel
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mmiowb                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CCR,4,2                        ## @CCR
	.comm	_TXX9_DMA_CCR_CHRST,4,2         ## @TXX9_DMA_CCR_CHRST
	.comm	_SAR,4,2                        ## @SAR
	.comm	_DAR,4,2                        ## @DAR
	.comm	_CHAR,4,2                       ## @CHAR
	.comm	_CNTR,4,2                       ## @CNTR
	.comm	_SAIR,4,2                       ## @SAIR
	.comm	_DAIR,4,2                       ## @DAIR
	.no_dead_strip	_txx9dmac_reset_chan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function txx9dmac_reset_chan
_txx9dmac_reset_chan:                   ; @txx9dmac_reset_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, x0
Lloh0:
	adrp	x20, _CCR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CCR@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x8, _TXX9_DMA_CCR_CHRST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TXX9_DMA_CCR_CHRST@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_channel_writel
	mov	x0, x19
	bl	_is_dmac64
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_channel64_clear_CHAR
Lloh5:
	adrp	x8, _SAR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SAR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_channel_writeq
Lloh8:
	adrp	x8, _DAR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DAR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_channel_writeq
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x8, _CHAR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CHAR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_channel_writel
Lloh14:
	adrp	x8, _SAR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SAR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_channel_writel
Lloh17:
	adrp	x8, _DAR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DAR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_channel_writel
LBB0_3:
Lloh20:
	adrp	x8, _CNTR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CNTR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_channel_writel
Lloh23:
	adrp	x8, _SAIR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SAIR@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_channel_writel
Lloh26:
	adrp	x8, _DAIR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DAIR@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_channel_writel
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_channel_writel
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mmiowb
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_CCR,4,2                        ; @CCR
	.comm	_TXX9_DMA_CCR_CHRST,4,2         ; @TXX9_DMA_CCR_CHRST
	.comm	_SAR,4,2                        ; @SAR
	.comm	_DAR,4,2                        ; @DAR
	.comm	_CHAR,4,2                       ; @CHAR
	.comm	_CNTR,4,2                       ; @CNTR
	.comm	_SAIR,4,2                       ; @SAIR
	.comm	_DAIR,4,2                       ; @DAIR
	.no_dead_strip	_txx9dmac_reset_chan
.subsections_via_symbols
