	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function configure_pchan
_configure_pchan:                       ## @configure_pchan
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	cmpq	$0, 8(%rdi)
	movl	12(%rsi), %edi
	movq	(%rbx), %rsi
	je	LBB0_2
## %bb.1:
	movq	_SUN4I_DDMA_SRC_ADDR_REG@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	callq	_writel_relaxed
	movl	8(%r14), %edi
	movq	_SUN4I_DDMA_DST_ADDR_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel_relaxed
	movl	4(%r14), %edi
	movq	_SUN4I_DDMA_BYTE_COUNT_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel_relaxed
	leaq	16(%r14), %rax
	movq	_SUN4I_DDMA_CFG_REG@GOTPCREL(%rip), %r15
	movq	_SUN4I_DDMA_PARA_REG@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_2:
	movq	_SUN4I_NDMA_SRC_ADDR_REG@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	callq	_writel_relaxed
	movl	8(%r14), %edi
	movq	_SUN4I_NDMA_DST_ADDR_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel_relaxed
	leaq	4(%r14), %rax
	movq	_SUN4I_NDMA_CFG_REG@GOTPCREL(%rip), %r15
	movq	_SUN4I_NDMA_BYTE_COUNT_REG@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rax), %edi
	movq	(%rcx), %rsi
	addq	(%rbx), %rsi
	callq	_writel_relaxed
	movl	(%r14), %edi
	movq	(%r15), %rsi
	addq	(%rbx), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel_relaxed                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SUN4I_DDMA_SRC_ADDR_REG,8,3    ## @SUN4I_DDMA_SRC_ADDR_REG
	.comm	_SUN4I_DDMA_DST_ADDR_REG,8,3    ## @SUN4I_DDMA_DST_ADDR_REG
	.comm	_SUN4I_DDMA_BYTE_COUNT_REG,8,3  ## @SUN4I_DDMA_BYTE_COUNT_REG
	.comm	_SUN4I_DDMA_PARA_REG,8,3        ## @SUN4I_DDMA_PARA_REG
	.comm	_SUN4I_DDMA_CFG_REG,8,3         ## @SUN4I_DDMA_CFG_REG
	.comm	_SUN4I_NDMA_SRC_ADDR_REG,8,3    ## @SUN4I_NDMA_SRC_ADDR_REG
	.comm	_SUN4I_NDMA_DST_ADDR_REG,8,3    ## @SUN4I_NDMA_DST_ADDR_REG
	.comm	_SUN4I_NDMA_BYTE_COUNT_REG,8,3  ## @SUN4I_NDMA_BYTE_COUNT_REG
	.comm	_SUN4I_NDMA_CFG_REG,8,3         ## @SUN4I_NDMA_CFG_REG
	.no_dead_strip	_configure_pchan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function configure_pchan
_configure_pchan:                       ; @configure_pchan
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x1, #12]
	ldp	x8, x9, [x19]
	cbz	x9, LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, _SUN4I_DDMA_SRC_ADDR_REG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SUN4I_DDMA_SRC_ADDR_REG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	w0, [x20, #8]
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _SUN4I_DDMA_DST_ADDR_REG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SUN4I_DDMA_DST_ADDR_REG@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	w0, [x20, #4]
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _SUN4I_DDMA_BYTE_COUNT_REG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SUN4I_DDMA_BYTE_COUNT_REG@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
	add	x8, x20, #16
Lloh9:
	adrp	x21, _SUN4I_DDMA_CFG_REG@GOTPAGE
Lloh10:
	ldr	x21, [x21, _SUN4I_DDMA_CFG_REG@GOTPAGEOFF]
Lloh11:
	adrp	x9, _SUN4I_DDMA_PARA_REG@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SUN4I_DDMA_PARA_REG@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh13:
	adrp	x9, _SUN4I_NDMA_SRC_ADDR_REG@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SUN4I_NDMA_SRC_ADDR_REG@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	w0, [x20, #8]
	ldr	x8, [x19]
Lloh16:
	adrp	x9, _SUN4I_NDMA_DST_ADDR_REG@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SUN4I_NDMA_DST_ADDR_REG@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
	add	x8, x20, #4
Lloh19:
	adrp	x21, _SUN4I_NDMA_CFG_REG@GOTPAGE
Lloh20:
	ldr	x21, [x21, _SUN4I_NDMA_CFG_REG@GOTPAGEOFF]
Lloh21:
	adrp	x9, _SUN4I_NDMA_BYTE_COUNT_REG@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SUN4I_NDMA_BYTE_COUNT_REG@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	w0, [x20]
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_writel_relaxed
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SUN4I_DDMA_SRC_ADDR_REG,8,3    ; @SUN4I_DDMA_SRC_ADDR_REG
	.comm	_SUN4I_DDMA_DST_ADDR_REG,8,3    ; @SUN4I_DDMA_DST_ADDR_REG
	.comm	_SUN4I_DDMA_BYTE_COUNT_REG,8,3  ; @SUN4I_DDMA_BYTE_COUNT_REG
	.comm	_SUN4I_DDMA_PARA_REG,8,3        ; @SUN4I_DDMA_PARA_REG
	.comm	_SUN4I_DDMA_CFG_REG,8,3         ; @SUN4I_DDMA_CFG_REG
	.comm	_SUN4I_NDMA_SRC_ADDR_REG,8,3    ; @SUN4I_NDMA_SRC_ADDR_REG
	.comm	_SUN4I_NDMA_DST_ADDR_REG,8,3    ; @SUN4I_NDMA_DST_ADDR_REG
	.comm	_SUN4I_NDMA_BYTE_COUNT_REG,8,3  ; @SUN4I_NDMA_BYTE_COUNT_REG
	.comm	_SUN4I_NDMA_CFG_REG,8,3         ; @SUN4I_NDMA_CFG_REG
	.no_dead_strip	_configure_pchan
.subsections_via_symbols
