	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_mdma_setup_hwdesc
_stm32_mdma_setup_hwdesc:               ## @stm32_mdma_setup_hwdesc
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	56(%rbp), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	32(%rbp), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	16(%rbp), %eax
	movl	24(%rbp), %edx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rsi
	movslq	%ecx, %rbx
	shlq	$4, %rbx
	movq	8(%rsi,%rbx), %r14
	movl	%edx, (%r14)
	movq	_STM32_MDMA_CBNDTR_BRC_MK@GOTPCREL(%rip), %rcx
	movq	_STM32_MDMA_CBNDTR_BRDUM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_STM32_MDMA_CBNDTR_BRSUM@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	%r9, %r15
	movq	%r8, %r12
	movq	%rdi, %r13
	movq	_STM32_MDMA_CBNDTR_BNDT_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	notl	%edx
	andl	%edx, 4(%r14)
	movl	%eax, %edi
	callq	_STM32_MDMA_CBNDTR_BNDT
	orl	%eax, 4(%r14)
	movq	%r12, 48(%r14)
	movq	%r15, 40(%r14)
	movq	$0, 32(%r14)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%r14)
	movl	4(%r13), %eax
	movl	%eax, 28(%r14)
	movl	(%r13), %eax
	movl	%eax, 24(%r14)
	cmpl	$0, 40(%rbp)
	je	LBB0_4
## %bb.1:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_3
## %bb.2:
	movq	(%rax), %rsi
	movq	(%rsi), %rax
	jmp	LBB0_5
LBB0_4:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	movq	16(%rbx,%rsi), %rax
LBB0_5:
	movq	%rax, 16(%r14)
	jmp	LBB0_6
LBB0_3:
	movq	$0, 16(%r14)
	movq	(%rax), %rsi
LBB0_6:
	addq	%rbx, %rsi
	movq	%r13, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_stm32_mdma_dump_hwdesc         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STM32_MDMA_CBNDTR_BRC_MK,4,2   ## @STM32_MDMA_CBNDTR_BRC_MK
	.comm	_STM32_MDMA_CBNDTR_BRDUM,4,2    ## @STM32_MDMA_CBNDTR_BRDUM
	.comm	_STM32_MDMA_CBNDTR_BRSUM,4,2    ## @STM32_MDMA_CBNDTR_BRSUM
	.comm	_STM32_MDMA_CBNDTR_BNDT_MASK,4,2 ## @STM32_MDMA_CBNDTR_BNDT_MASK
	.no_dead_strip	_stm32_mdma_setup_hwdesc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_mdma_setup_hwdesc
_stm32_mdma_setup_hwdesc:               ; @stm32_mdma_setup_hwdesc
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x5
	mov	x22, x4
                                        ; kill: def $w3 killed $w3 def $x3
	mov	x20, x1
	mov	x19, x0
	ldr	w25, [x29, #28]
	ldp	w27, w26, [x29, #16]
	ldr	x8, [x1]
	add	x8, x8, w3, sxtw #4
	ldr	x24, [x8, #8]
Lloh0:
	adrp	x8, _STM32_MDMA_CBNDTR_BRC_MK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STM32_MDMA_CBNDTR_BRC_MK@GOTPAGEOFF]
	str	w7, [x24]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _STM32_MDMA_CBNDTR_BRDUM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _STM32_MDMA_CBNDTR_BRDUM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _STM32_MDMA_CBNDTR_BRSUM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _STM32_MDMA_CBNDTR_BRSUM@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _STM32_MDMA_CBNDTR_BNDT_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _STM32_MDMA_CBNDTR_BNDT_MASK@GOTPAGEOFF]
	sxtw	x23, w3
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x24, #4]
	bic	w8, w9, w8
	str	w8, [x24, #4]
	mov	x0, x6
	bl	_STM32_MDMA_CBNDTR_BNDT
	ldr	w8, [x24, #4]
	orr	w8, w8, w0
	stp	x21, x22, [x24, #40]
	str	xzr, [x24, #32]
	stp	w8, w27, [x24, #4]
	ldr	d0, [x19]
	str	d0, [x24, #24]
	cbz	w26, LBB0_3
; %bb.1:
	cbz	w25, LBB0_5
; %bb.2:
	ldr	x8, [x20]
	ldr	x9, [x8]
	b	LBB0_4
LBB0_3:
	ldr	x8, [x20]
	add	x9, x8, x23, lsl #4
	ldr	x9, [x9, #16]
LBB0_4:
	str	x9, [x24, #16]
	b	LBB0_6
LBB0_5:
	str	xzr, [x24, #16]
	ldr	x8, [x20]
LBB0_6:
	add	x1, x8, x23, lsl #4
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_stm32_mdma_dump_hwdesc
	.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	_STM32_MDMA_CBNDTR_BRC_MK,4,2   ; @STM32_MDMA_CBNDTR_BRC_MK
	.comm	_STM32_MDMA_CBNDTR_BRDUM,4,2    ; @STM32_MDMA_CBNDTR_BRDUM
	.comm	_STM32_MDMA_CBNDTR_BRSUM,4,2    ; @STM32_MDMA_CBNDTR_BRSUM
	.comm	_STM32_MDMA_CBNDTR_BNDT_MASK,4,2 ; @STM32_MDMA_CBNDTR_BNDT_MASK
	.no_dead_strip	_stm32_mdma_setup_hwdesc
.subsections_via_symbols
