	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_dma_initialize_chan
_dw_dma_initialize_chan:                ## @dw_dma_initialize_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	%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
	movl	16(%rdi), %edi
	callq	_to_dw_dma
	movq	%rax, %r12
	movq	_DWC_CFGH_FIFO_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	12(%r14), %edi
	callq	_DWC_CFGL_CH_PRIOR
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r14), %r13d
	movl	8(%r14), %edi
	callq	_DWC_CFGH_DST_PER
	movl	%eax, %ebx
	movl	4(%r14), %edi
	callq	_DWC_CFGH_SRC_PER
	orl	%eax, %ebx
	orl	%r15d, %ebx
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_DWC_CFGH_PROTCTL
	movq	_DWC_CFGL_HS_DST_POL@GOTPCREL(%rip), %rcx
	movq	_DWC_CFGL_HS_SRC_POL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	orl	%eax, %ebx
	testl	%r13d, %r13d
	cmovel	%r13d, %edx
	orl	-44(%rbp), %edx                 ## 4-byte Folded Reload
	movq	_CFG_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_channel_writel
	movq	_CFG_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_channel_writel                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DWC_CFGH_FIFO_MODE,4,2         ## @DWC_CFGH_FIFO_MODE
	.comm	_DWC_CFGL_HS_DST_POL,4,2        ## @DWC_CFGL_HS_DST_POL
	.comm	_DWC_CFGL_HS_SRC_POL,4,2        ## @DWC_CFGL_HS_SRC_POL
	.comm	_CFG_LO,4,2                     ## @CFG_LO
	.comm	_CFG_HI,4,2                     ## @CFG_HI
	.no_dead_strip	_dw_dma_initialize_chan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_dma_initialize_chan
_dw_dma_initialize_chan:                ; @dw_dma_initialize_chan
	.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	w0, [x0, #16]
	bl	_to_dw_dma
	mov	x20, x0
Lloh0:
	adrp	x8, _DWC_CFGH_FIFO_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DWC_CFGH_FIFO_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldr	w0, [x19, #12]
	bl	_DWC_CFGL_CH_PRIOR
	mov	x21, x0
	ldr	w23, [x19]
	ldr	w0, [x19, #8]
	bl	_DWC_CFGH_DST_PER
	orr	w22, w0, w22
	ldr	w0, [x19, #4]
	bl	_DWC_CFGH_SRC_PER
	orr	w22, w22, w0
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_DWC_CFGH_PROTCTL
Lloh3:
	adrp	x8, _DWC_CFGL_HS_DST_POL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DWC_CFGL_HS_DST_POL@GOTPAGEOFF]
	orr	w20, w22, w0
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _DWC_CFGL_HS_SRC_POL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DWC_CFGL_HS_SRC_POL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	cmp	w23, #0
	csel	w8, wzr, w8, eq
	orr	w2, w8, w21
Lloh9:
	adrp	x8, _CFG_LO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CFG_LO@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_channel_writel
Lloh12:
	adrp	x8, _CFG_HI@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CFG_HI@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, 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
	b	_channel_writel
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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	_DWC_CFGH_FIFO_MODE,4,2         ; @DWC_CFGH_FIFO_MODE
	.comm	_DWC_CFGL_HS_DST_POL,4,2        ; @DWC_CFGL_HS_DST_POL
	.comm	_DWC_CFGL_HS_SRC_POL,4,2        ; @DWC_CFGL_HS_SRC_POL
	.comm	_CFG_LO,4,2                     ; @CFG_LO
	.comm	_CFG_HI,4,2                     ; @CFG_HI
	.no_dead_strip	_dw_dma_initialize_chan
.subsections_via_symbols
