	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jz4780_dma_prep_dma_memcpy
_jz4780_dma_prep_dma_memcpy:            ## @jz4780_dma_prep_dma_memcpy
	.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	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %r13
	callq	_to_jz4780_dma_chan
	movq	%rax, %rbx
	movq	_DMA_MEMCPY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_jz4780_dma_desc_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r14, %rsi
	orq	%r13, %rsi
	orq	%r15, %rsi
	movq	%rbx, %rdi
	movq	%rbx, %rdx
	callq	_jz4780_dma_transfer_size
	movq	_JZ_DMA_DRT_AUTO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rbx)
	movq	8(%r12), %r8
	movq	%r14, (%r8)
	movq	%r13, 8(%r8)
	movq	_JZ_DMA_DCM_TIE@GOTPCREL(%rip), %rcx
	movq	_JZ_DMA_DCM_SAI@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rcx), %esi
	movq	_JZ_DMA_DCM_DAI@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movq	_JZ_DMA_DCM_TSZ_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_JZ_DMA_WIDTH_32_BIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_JZ_DMA_DCM_SP_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%edi, %edx
	shll	%cl, %edx
	movq	_JZ_DMA_DCM_DP_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edi
	orl	%esi, %eax
	orl	%edx, %edi
	orl	%eax, %edi
	movl	%edi, 16(%r8)
	movb	(%rbx), %cl
	shrq	%cl, %r15
	movq	%r15, 24(%r8)
	addq	$8, %rbx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vchan_tx_prep                  ## TAILCALL
LBB0_1:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_MEMCPY,4,2                 ## @DMA_MEMCPY
	.comm	_JZ_DMA_DRT_AUTO,4,2            ## @JZ_DMA_DRT_AUTO
	.comm	_JZ_DMA_DCM_TIE,4,2             ## @JZ_DMA_DCM_TIE
	.comm	_JZ_DMA_DCM_SAI,4,2             ## @JZ_DMA_DCM_SAI
	.comm	_JZ_DMA_DCM_DAI,4,2             ## @JZ_DMA_DCM_DAI
	.comm	_JZ_DMA_DCM_TSZ_SHIFT,4,2       ## @JZ_DMA_DCM_TSZ_SHIFT
	.comm	_JZ_DMA_WIDTH_32_BIT,4,2        ## @JZ_DMA_WIDTH_32_BIT
	.comm	_JZ_DMA_DCM_SP_SHIFT,4,2        ## @JZ_DMA_DCM_SP_SHIFT
	.comm	_JZ_DMA_DCM_DP_SHIFT,4,2        ## @JZ_DMA_DCM_DP_SHIFT
	.no_dead_strip	_jz4780_dma_prep_dma_memcpy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jz4780_dma_prep_dma_memcpy
_jz4780_dma_prep_dma_memcpy:            ; @jz4780_dma_prep_dma_memcpy
	.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, x4
	mov	x20, x3
	mov	x23, x2
	mov	x24, x1
	bl	_to_jz4780_dma_chan
	mov	x21, x0
Lloh0:
	adrp	x8, _DMA_MEMCPY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_MEMCPY@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #1
	bl	_jz4780_dma_desc_alloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x22, x0
	orr	x8, x23, x24
	orr	x1, x8, x20
	mov	x0, x21
	mov	x2, x21
	bl	_jz4780_dma_transfer_size
Lloh3:
	adrp	x8, _JZ_DMA_DRT_AUTO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _JZ_DMA_DRT_AUTO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x21, #12]
	ldr	x8, [x22, #8]
Lloh6:
	adrp	x9, _JZ_DMA_DCM_TIE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _JZ_DMA_DCM_TIE@GOTPAGEOFF]
	stp	x23, x24, [x8]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _JZ_DMA_DCM_SAI@GOTPAGE
Lloh10:
	ldr	x10, [x10, _JZ_DMA_DCM_SAI@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh12:
	adrp	x10, _JZ_DMA_DCM_DAI@GOTPAGE
Lloh13:
	ldr	x10, [x10, _JZ_DMA_DCM_DAI@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh15:
	adrp	x10, _JZ_DMA_DCM_TSZ_SHIFT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _JZ_DMA_DCM_TSZ_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	lsl	w10, w0, w10
	orr	w9, w9, w10
Lloh18:
	adrp	x10, _JZ_DMA_WIDTH_32_BIT@GOTPAGE
Lloh19:
	ldr	x10, [x10, _JZ_DMA_WIDTH_32_BIT@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
Lloh21:
	adrp	x11, _JZ_DMA_DCM_SP_SHIFT@GOTPAGE
Lloh22:
	ldr	x11, [x11, _JZ_DMA_DCM_SP_SHIFT@GOTPAGEOFF]
Lloh23:
	ldr	w11, [x11]
	lsl	w11, w10, w11
Lloh24:
	adrp	x12, _JZ_DMA_DCM_DP_SHIFT@GOTPAGE
Lloh25:
	ldr	x12, [x12, _JZ_DMA_DCM_DP_SHIFT@GOTPAGEOFF]
	orr	w9, w9, w11
Lloh26:
	ldr	w11, [x12]
	lsl	w10, w10, w11
	orr	w9, w9, w10
	str	w9, [x8, #16]
	ldr	x9, [x21]
	lsr	x9, x20, x9
	str	x9, [x8, #24]
	add	x0, x21, #8
	mov	x1, x22
	mov	x2, x19
	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	_vchan_tx_prep
LBB0_2:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_MEMCPY,4,2                 ; @DMA_MEMCPY
	.comm	_JZ_DMA_DRT_AUTO,4,2            ; @JZ_DMA_DRT_AUTO
	.comm	_JZ_DMA_DCM_TIE,4,2             ; @JZ_DMA_DCM_TIE
	.comm	_JZ_DMA_DCM_SAI,4,2             ; @JZ_DMA_DCM_SAI
	.comm	_JZ_DMA_DCM_DAI,4,2             ; @JZ_DMA_DCM_DAI
	.comm	_JZ_DMA_DCM_TSZ_SHIFT,4,2       ; @JZ_DMA_DCM_TSZ_SHIFT
	.comm	_JZ_DMA_WIDTH_32_BIT,4,2        ; @JZ_DMA_WIDTH_32_BIT
	.comm	_JZ_DMA_DCM_SP_SHIFT,4,2        ; @JZ_DMA_DCM_SP_SHIFT
	.comm	_JZ_DMA_DCM_DP_SHIFT,4,2        ; @JZ_DMA_DCM_DP_SHIFT
	.no_dead_strip	_jz4780_dma_prep_dma_memcpy
.subsections_via_symbols
