	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st_fdma_xfer_desc
_st_fdma_xfer_desc:                     ## @st_fdma_xfer_desc
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_vchan_next_desc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	callq	_to_st_fdma_desc
	movq	%rax, 16(%rbx)
	movq	(%rax), %rax
	movq	8(%rax), %rax
	movq	(%rax), %r15
	movl	(%rbx), %edi
	callq	_FDMA_CMD_START
	movq	%rax, %r14
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movq	_FDMA_CH_CMD_STA_START@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	orq	(%rax), %r12
	movq	_FDMA_CNTN_OFST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_fnode_write
	movq	_FDMA_CH_CMD_OFST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_fchan_write
	movq	8(%rbx), %rax
	movq	8(%rax), %rax
	movq	_FDMA_CMD_SET_OFST@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_writel
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FDMA_CH_CMD_STA_START,8,3      ## @FDMA_CH_CMD_STA_START
	.comm	_FDMA_CNTN_OFST,4,2             ## @FDMA_CNTN_OFST
	.comm	_FDMA_CH_CMD_OFST,4,2           ## @FDMA_CH_CMD_OFST
	.comm	_FDMA_CMD_SET_OFST,8,3          ## @FDMA_CMD_SET_OFST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"start chan:%d\n"

	.no_dead_strip	_st_fdma_xfer_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st_fdma_xfer_desc
_st_fdma_xfer_desc:                     ; @st_fdma_xfer_desc
	.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	x19, x0
	bl	_vchan_next_desc
	cbz	x0, LBB0_2
; %bb.1:
	bl	_to_st_fdma_desc
	str	x0, [x19, #16]
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
	ldr	x20, [x8]
	ldr	w0, [x19]
	bl	_FDMA_CMD_START
	mov	x21, x0
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _FDMA_CH_CMD_STA_START@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FDMA_CH_CMD_STA_START@GOTPAGEOFF]
	ldr	x8, [x8]
Lloh2:
	ldr	x9, [x9]
	orr	x22, x9, x8
Lloh3:
	adrp	x8, _FDMA_CNTN_OFST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FDMA_CNTN_OFST@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_fnode_write
Lloh6:
	adrp	x8, _FDMA_CH_CMD_OFST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FDMA_CH_CMD_OFST@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_fchan_write
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _FDMA_CMD_SET_OFST@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FDMA_CMD_SET_OFST@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x21
	bl	_writel
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	ldr	w2, [x19]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	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	_dev_dbg
LBB0_2:
	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
	ret
	.loh AdrpAdd	Lloh12, Lloh13
	.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	_FDMA_CH_CMD_STA_START,8,3      ; @FDMA_CH_CMD_STA_START
	.comm	_FDMA_CNTN_OFST,4,2             ; @FDMA_CNTN_OFST
	.comm	_FDMA_CH_CMD_OFST,4,2           ; @FDMA_CH_CMD_OFST
	.comm	_FDMA_CMD_SET_OFST,8,3          ; @FDMA_CMD_SET_OFST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"start chan:%d\n"

	.no_dead_strip	_st_fdma_xfer_desc
.subsections_via_symbols
