	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_dma_set_config
_stm32_dma_set_config:                  ## @stm32_dma_set_config
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	addq	$4, %rdi
	callq	_stm32_dma_clear_reg
	movq	_STM32_DMA_SCR_CFG_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r14), %eax
	movl	%eax, 4(%rbx)
	movl	8(%r14), %edi
	callq	_STM32_DMA_SCR_REQ
	orl	4(%rbx), %eax
	movq	_STM32_DMA_SCR_TEIE@GOTPCREL(%rip), %rcx
	movq	_STM32_DMA_SCR_TCIE@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	movl	%eax, 4(%rbx)
	movl	4(%r14), %edi
	callq	_STM32_DMA_THRESHOLD_FTR_GET
	movl	%eax, (%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STM32_DMA_SCR_CFG_MASK,4,2     ## @STM32_DMA_SCR_CFG_MASK
	.comm	_STM32_DMA_SCR_TEIE,4,2         ## @STM32_DMA_SCR_TEIE
	.comm	_STM32_DMA_SCR_TCIE,4,2         ## @STM32_DMA_SCR_TCIE
	.no_dead_strip	_stm32_dma_set_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_dma_set_config
_stm32_dma_set_config:                  ; @stm32_dma_set_config
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	add	x0, x0, #4
	bl	_stm32_dma_clear_reg
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _STM32_DMA_SCR_CFG_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STM32_DMA_SCR_CFG_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
	str	w8, [x20, #4]
	ldr	w0, [x19, #8]
	bl	_STM32_DMA_SCR_REQ
	ldr	w8, [x20, #4]
	orr	w8, w8, w0
Lloh3:
	adrp	x9, _STM32_DMA_SCR_TEIE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _STM32_DMA_SCR_TEIE@GOTPAGEOFF]
Lloh5:
	adrp	x10, _STM32_DMA_SCR_TCIE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _STM32_DMA_SCR_TCIE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	ldr	w10, [x10]
	orr	w8, w9, w8
	orr	w8, w8, w10
	str	w8, [x20, #4]
	ldr	w0, [x19, #4]
	bl	_STM32_DMA_THRESHOLD_FTR_GET
	str	w0, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_STM32_DMA_SCR_CFG_MASK,4,2     ; @STM32_DMA_SCR_CFG_MASK
	.comm	_STM32_DMA_SCR_TEIE,4,2         ; @STM32_DMA_SCR_TEIE
	.comm	_STM32_DMA_SCR_TCIE,4,2         ; @STM32_DMA_SCR_TCIE
	.no_dead_strip	_stm32_dma_set_config
.subsections_via_symbols
