	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_mdma_of_xlate
_stm32_mdma_of_xlate:                   ## @stm32_mdma_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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rbx
	cmpl	$4, (%rdi)
	jg	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_mdma2dev
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	movq	8(%rdi), %rax
	movq	(%rax), %r15
	cmpq	(%rbx), %r15
	jge	LBB0_4
## %bb.5:
	movdqu	8(%rax), %xmm0
	movq	_STM32_MDMA_VERY_HIGH_PRIORITY@GOTPCREL(%rip), %rcx
	movq	%xmm0, %rdx
	cmpq	(%rcx), %rdx
	jle	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_mdma2dev
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movq	%rbx, %rdi
	callq	_mdma2dev
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movl	%eax, %edi
	callq	_dev_err
	xorl	%r14d, %r14d
LBB0_10:
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movdqa	%xmm0, -64(%rbp)                ## 16-byte Spill
	movdqu	24(%rax), %xmm0
	movdqa	%xmm0, -48(%rbp)                ## 16-byte Spill
	leaq	8(%rbx), %rdi
	callq	_dma_get_any_slave_channel
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_to_stm32_mdma_chan
	movq	%r15, (%rax)
	movaps	-64(%rbp), %xmm0                ## 16-byte Reload
	movups	%xmm0, 8(%rax)
	movdqa	-48(%rbp), %xmm0                ## 16-byte Reload
	movdqu	%xmm0, 24(%rax)
	jmp	LBB0_10
LBB0_8:
	movq	%rbx, %rdi
	callq	_mdma2dev
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad number of args\n"

L_.str.1:                               ## @.str.1
	.asciz	"Bad request line\n"

	.comm	_STM32_MDMA_VERY_HIGH_PRIORITY,8,3 ## @STM32_MDMA_VERY_HIGH_PRIORITY
L_.str.2:                               ## @.str.2
	.asciz	"Priority level not supported\n"

L_.str.3:                               ## @.str.3
	.asciz	"No more channels available\n"

	.no_dead_strip	_stm32_mdma_of_xlate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_mdma_of_xlate
_stm32_mdma_of_xlate:                   ; @stm32_mdma_of_xlate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, [x1]
	ldr	w8, [x0]
	cmp	w8, #4
	b.gt	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_mdma2dev
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_2:
	ldr	x8, [x0, #8]
	ldr	x21, [x8]
	ldr	x9, [x19]
	cmp	x21, x9
	b.ge	LBB0_5
; %bb.3:
	ldur	q0, [x8, #8]
Lloh2:
	adrp	x9, _STM32_MDMA_VERY_HIGH_PRIORITY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _STM32_MDMA_VERY_HIGH_PRIORITY@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	fmov	x10, d0
	cmp	x10, x9
	b.le	LBB0_8
; %bb.4:
	mov	x0, x19
	bl	_mdma2dev
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_mdma2dev
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	bl	_dev_err
	mov	x20, #0
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
	str	q0, [sp, #16]                   ; 16-byte Folded Spill
	ldur	q0, [x8, #24]
	str	q0, [sp]                        ; 16-byte Folded Spill
	add	x0, x19, #8
	bl	_dma_get_any_slave_channel
	mov	x20, x0
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_to_stm32_mdma_chan
	str	x21, [x0]
	ldr	q0, [sp, #16]                   ; 16-byte Folded Reload
	stur	q0, [x0, #8]
	ldr	q0, [sp]                        ; 16-byte Folded Reload
	stur	q0, [x0, #24]
	b	LBB0_7
LBB0_10:
	mov	x0, x19
	bl	_mdma2dev
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad number of args\n"

l_.str.1:                               ; @.str.1
	.asciz	"Bad request line\n"

	.comm	_STM32_MDMA_VERY_HIGH_PRIORITY,8,3 ; @STM32_MDMA_VERY_HIGH_PRIORITY
l_.str.2:                               ; @.str.2
	.asciz	"Priority level not supported\n"

l_.str.3:                               ; @.str.3
	.asciz	"No more channels available\n"

	.no_dead_strip	_stm32_mdma_of_xlate
.subsections_via_symbols
