	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st_fdma_prep_dma_memcpy
_st_fdma_prep_dma_memcpy:               ## @st_fdma_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
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.1:
	movq	%r8, %r14
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movq	%rsi, %r15
	callq	_to_st_fdma_chan
	movq	%rax, %r13
	movq	%rax, %rdi
	movl	$1, %esi
	callq	_st_fdma_alloc_desc
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	8(%rax), %rcx
	movq	(%rcx), %rcx
	movq	$0, 56(%rcx)
	movq	_FDMA_NODE_CTRL_REQ_MAP_FREE_RUN@GOTPCREL(%rip), %rdx
	movq	_FDMA_NODE_CTRL_SRC_INCR@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	movq	_FDMA_NODE_CTRL_DST_INCR@GOTPCREL(%rip), %rdx
	orl	(%rdx), %esi
	movq	_FDMA_NODE_CTRL_INT_EON@GOTPCREL(%rip), %rdx
	orl	(%rdx), %esi
	movl	%esi, 48(%rcx)
	movq	%rbx, (%rcx)
	movq	%r12, 40(%rcx)
	movq	%r15, 32(%rcx)
	movq	%rbx, 8(%rcx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rcx)
	movq	%r13, %rdi
	movq	%rax, %rsi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vchan_tx_prep                  ## TAILCALL
LBB0_2:
	movq	8(%r13), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no memory for desc\n"

	.comm	_FDMA_NODE_CTRL_REQ_MAP_FREE_RUN,4,2 ## @FDMA_NODE_CTRL_REQ_MAP_FREE_RUN
	.comm	_FDMA_NODE_CTRL_SRC_INCR,4,2    ## @FDMA_NODE_CTRL_SRC_INCR
	.comm	_FDMA_NODE_CTRL_DST_INCR,4,2    ## @FDMA_NODE_CTRL_DST_INCR
	.comm	_FDMA_NODE_CTRL_INT_EON,4,2     ## @FDMA_NODE_CTRL_INT_EON
	.no_dead_strip	_st_fdma_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 st_fdma_prep_dma_memcpy
_st_fdma_prep_dma_memcpy:               ; @st_fdma_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
	cbz	x3, LBB0_4
; %bb.1:
	mov	x19, x4
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	bl	_to_st_fdma_chan
	mov	x23, x0
	mov	w1, #1
	bl	_st_fdma_alloc_desc
	cbz	x0, LBB0_3
; %bb.2:
	mov	x1, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _FDMA_NODE_CTRL_REQ_MAP_FREE_RUN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FDMA_NODE_CTRL_REQ_MAP_FREE_RUN@GOTPAGEOFF]
	str	xzr, [x8, #56]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _FDMA_NODE_CTRL_SRC_INCR@GOTPAGE
Lloh4:
	ldr	x10, [x10, _FDMA_NODE_CTRL_SRC_INCR@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh6:
	adrp	x10, _FDMA_NODE_CTRL_DST_INCR@GOTPAGE
Lloh7:
	ldr	x10, [x10, _FDMA_NODE_CTRL_DST_INCR@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh9:
	adrp	x10, _FDMA_NODE_CTRL_INT_EON@GOTPAGE
Lloh10:
	ldr	x10, [x10, _FDMA_NODE_CTRL_INT_EON@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x8, #48]
	stp	x21, x22, [x8, #32]
	stp	x20, x20, [x8]
	stp	xzr, xzr, [x8, #16]
	mov	x0, x23
	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_3:
	ldr	x8, [x23, #8]
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_4:
	mov	x0, #0
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no memory for desc\n"

	.comm	_FDMA_NODE_CTRL_REQ_MAP_FREE_RUN,4,2 ; @FDMA_NODE_CTRL_REQ_MAP_FREE_RUN
	.comm	_FDMA_NODE_CTRL_SRC_INCR,4,2    ; @FDMA_NODE_CTRL_SRC_INCR
	.comm	_FDMA_NODE_CTRL_DST_INCR,4,2    ; @FDMA_NODE_CTRL_DST_INCR
	.comm	_FDMA_NODE_CTRL_INT_EON,4,2     ; @FDMA_NODE_CTRL_INT_EON
	.no_dead_strip	_st_fdma_prep_dma_memcpy
.subsections_via_symbols
