	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_dma_irq_status
_stm32_dma_irq_status:                  ## @stm32_dma_irq_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_stm32_dma_get_dev
	testb	$4, (%rbx)
	jne	LBB0_1
## %bb.2:
	movq	_STM32_DMA_LISR@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_STM32_DMA_HISR@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_stm32_dma_read
	movl	(%rbx), %ecx
	leal	(,%rcx,8), %edx
	andl	$16, %edx
	andl	$1, %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,2), %ecx
	orl	%edx, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %eax
	movq	_STM32_DMA_MASKI@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STM32_DMA_HISR,4,2             ## @STM32_DMA_HISR
	.comm	_STM32_DMA_LISR,4,2             ## @STM32_DMA_LISR
	.comm	_STM32_DMA_MASKI,4,2            ## @STM32_DMA_MASKI
	.no_dead_strip	_stm32_dma_irq_status
.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_status
_stm32_dma_irq_status:                  ; @stm32_dma_irq_status
	.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, x0
	bl	_stm32_dma_get_dev
Lloh0:
	adrp	x8, _STM32_DMA_LISR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STM32_DMA_LISR@GOTPAGEOFF]
	ldr	w9, [x19]
Lloh2:
	adrp	x10, _STM32_DMA_HISR@GOTPAGE
Lloh3:
	ldr	x10, [x10, _STM32_DMA_HISR@GOTPAGEOFF]
	tst	w9, #0x4
	csel	x8, x8, x10, eq
	ldr	w1, [x8]
	bl	_stm32_dma_read
	ldr	w8, [x19]
	lsl	w9, w8, #3
	and	w9, w9, #0x10
	and	w10, w8, #0x1
	bfi	w8, w10, #1, #1
	bfi	w9, w8, #1, #2
	asr	w8, w0, w9
Lloh4:
	adrp	x9, _STM32_DMA_MASKI@GOTPAGE
Lloh5:
	ldr	x9, [x9, _STM32_DMA_MASKI@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	and	w0, w8, w9
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_STM32_DMA_HISR,4,2             ; @STM32_DMA_HISR
	.comm	_STM32_DMA_LISR,4,2             ; @STM32_DMA_LISR
	.comm	_STM32_DMA_MASKI,4,2            ; @STM32_DMA_MASKI
	.no_dead_strip	_stm32_dma_irq_status
.subsections_via_symbols
