	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st_fdma_of_xlate
_st_fdma_of_xlate:                      ## @st_fdma_of_xlate
	.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
	cmpl	$0, (%rdi)
	jle	LBB0_1
## %bb.3:
	movq	%rdi, %rbx
	movq	(%rsi), %r13
	movq	16(%r13), %rax
	movq	(%rax), %rax
	cmpq	8(%rdi), %rax
	jne	LBB0_1
## %bb.4:
	movq	(%r13), %rax
	movl	(%rax), %edi
	callq	_rproc_boot
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	jne	LBB0_6
## %bb.5:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_6:
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movl	%eax, %edi
	jmp	LBB0_8
LBB0_9:
	leaq	16(%r13), %rdi
	callq	_dma_get_any_slave_channel
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_to_st_fdma_chan
	movq	%rax, %r12
	movq	8(%rbx), %rax
	movq	%rax, 8(%r12)
	movq	16(%rbx), %rax
	movl	(%rax), %edx
	movl	%edx, 16(%r12)
	movl	$0, 20(%r12)
	movq	_ST_FDMA_TYPE_FREE_RUN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%r12)
	movl	(%rbx), %esi
	cmpl	$2, %esi
	jl	LBB0_14
## %bb.12:
	movq	_FDMA_REQ_CTRL_CFG_MASK@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r15d
	andl	4(%rax), %r15d
	movl	%r15d, 20(%r12)
	cmpl	$2, %esi
	je	LBB0_14
## %bb.13:
	movl	8(%rax), %eax
	movl	%eax, 24(%r12)
	cmpl	%ecx, %eax
	jne	LBB0_15
LBB0_14:
	movl	$0, (%r12)
LBB0_17:
	movl	8(%r13), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %r8d
	callq	_dev_dbg
	jmp	LBB0_20
LBB0_10:
	xorl	%r14d, %r14d
LBB0_19:
	movq	(%r13), %rax
	movl	(%rax), %edi
	callq	_rproc_shutdown
LBB0_20:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%r12, %rdi
	callq	_st_fdma_dreq_get
	movl	%eax, (%r12)
	movl	%eax, %edi
	callq	_IS_ERR_VALUE
	testq	%rax, %rax
	je	LBB0_16
## %bb.18:
	movl	(%r12), %edi
	callq	_ERR_PTR
	movq	%rax, %r14
	jmp	LBB0_19
LBB0_16:
	movl	16(%r12), %edx
	movl	20(%r12), %r15d
	movl	24(%r12), %ecx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.comm	_ST_FDMA_TYPE_FREE_RUN,4,2      ## @ST_FDMA_TYPE_FREE_RUN
	.comm	_FDMA_REQ_CTRL_CFG_MASK,4,2     ## @FDMA_REQ_CTRL_CFG_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xlate req_line:%d type:%d req_ctrl:%#lx\n"

	.no_dead_strip	_st_fdma_of_xlate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st_fdma_of_xlate
_st_fdma_of_xlate:                      ; @st_fdma_of_xlate
	.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
	ldr	w8, [x0]
	cmp	w8, #0
	b.le	LBB0_4
; %bb.1:
	mov	x21, x0
	ldr	x22, [x1]
	mov	x19, x22
	ldr	x8, [x19, #16]!
	ldr	x8, [x8]
	ldr	x9, [x0, #8]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x22]
	ldr	w0, [x8]
	bl	_rproc_boot
Lloh0:
	adrp	x8, _ENOENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_7
; %bb.3:
Lloh3:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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	_ERR_PTR
LBB0_7:
	cbnz	w0, LBB0_6
; %bb.8:
	mov	x0, x19
	bl	_dma_get_any_slave_channel
	mov	x19, x0
	cbz	x0, LBB0_16
; %bb.9:
	mov	x0, x19
	bl	_to_st_fdma_chan
	mov	x20, x0
	mov	w4, #0
	ldp	x9, x8, [x21, #8]
	str	x9, [x0, #8]
	ldr	w2, [x8]
	stp	w2, wzr, [x0, #16]
Lloh7:
	adrp	x9, _ST_FDMA_TYPE_FREE_RUN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ST_FDMA_TYPE_FREE_RUN@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x9]
	str	w3, [x0, #24]
	ldr	w9, [x21]
	cmp	w9, #2
	b.lt	LBB0_12
; %bb.10:
	ldr	w10, [x8, #4]
Lloh10:
	adrp	x11, _FDMA_REQ_CTRL_CFG_MASK@GOTPAGE
Lloh11:
	ldr	x11, [x11, _FDMA_REQ_CTRL_CFG_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w11, [x11]
	and	w4, w11, w10
	str	w4, [x20, #20]
	cmp	w9, #2
	b.eq	LBB0_12
; %bb.11:
	ldr	w8, [x8, #8]
	str	w8, [x20, #24]
	cmp	w8, w3
	b.ne	LBB0_14
LBB0_12:
	str	wzr, [x20]
LBB0_13:
	ldr	w0, [x22, #8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	b	LBB0_17
LBB0_14:
	mov	x0, x20
	bl	_st_fdma_dreq_get
	str	w0, [x20]
	bl	_IS_ERR_VALUE
	cbz	x0, LBB0_18
; %bb.15:
	ldr	w0, [x20]
	bl	_ERR_PTR
	mov	x19, x0
LBB0_16:
	ldr	x8, [x22]
	ldr	w0, [x8]
	bl	_rproc_shutdown
LBB0_17:
	mov	x0, x19
	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
LBB0_18:
	ldp	w4, w3, [x20, #20]
	ldr	w2, [x20, #16]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.comm	_ST_FDMA_TYPE_FREE_RUN,4,2      ; @ST_FDMA_TYPE_FREE_RUN
	.comm	_FDMA_REQ_CTRL_CFG_MASK,4,2     ; @FDMA_REQ_CTRL_CFG_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xlate req_line:%d type:%d req_ctrl:%#lx\n"

	.no_dead_strip	_st_fdma_of_xlate
.subsections_via_symbols
