	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_dma_irq_clear
_stm32_dma_irq_clear:                   ## @stm32_dma_irq_clear
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_stm32_dma_get_dev
	movq	_STM32_DMA_MASKI@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	movl	(%r14), %edx
	leal	(,%rdx,8), %esi
	andl	$16, %esi
	movl	%edx, %ecx
	andl	$1, %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,2), %ecx
	orl	%esi, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	testb	$4, %dl
	jne	LBB0_1
## %bb.2:
	movq	_STM32_DMA_LIFCR@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_STM32_DMA_HIFCR@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %esi
	movq	%rax, %rdi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_stm32_dma_write                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STM32_DMA_MASKI,4,2            ## @STM32_DMA_MASKI
	.comm	_STM32_DMA_HIFCR,4,2            ## @STM32_DMA_HIFCR
	.comm	_STM32_DMA_LIFCR,4,2            ## @STM32_DMA_LIFCR
	.no_dead_strip	_stm32_dma_irq_clear
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_dma_irq_clear
_stm32_dma_irq_clear:                   ; @stm32_dma_irq_clear
	.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
	bl	_stm32_dma_get_dev
Lloh0:
	adrp	x8, _STM32_DMA_MASKI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STM32_DMA_MASKI@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w19
	ldr	w9, [x20]
	lsl	w10, w9, #3
	and	w10, w10, #0x10
	and	w11, w9, #0x1
	tst	w9, #0x4
	bfi	w9, w11, #1, #1
	bfi	w10, w9, #1, #2
Lloh3:
	adrp	x9, _STM32_DMA_LIFCR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _STM32_DMA_LIFCR@GOTPAGEOFF]
Lloh5:
	adrp	x11, _STM32_DMA_HIFCR@GOTPAGE
Lloh6:
	ldr	x11, [x11, _STM32_DMA_HIFCR@GOTPAGEOFF]
	lsl	w2, w8, w10
	csel	x8, x9, x11, eq
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_stm32_dma_write
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_STM32_DMA_MASKI,4,2            ; @STM32_DMA_MASKI
	.comm	_STM32_DMA_HIFCR,4,2            ; @STM32_DMA_HIFCR
	.comm	_STM32_DMA_LIFCR,4,2            ; @STM32_DMA_LIFCR
	.no_dead_strip	_stm32_dma_irq_clear
.subsections_via_symbols
