	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_mdma_irq_handler
_stm32_mdma_irq_handler:                ## @stm32_mdma_irq_handler
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	_STM32_MDMA_GISR0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rsi), %rdi
	callq	_readl_relaxed
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %edi
	callq	___ffs
	jmp	LBB0_5
LBB0_2:
	movq	_STM32_MDMA_GISR1@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r13), %rdi
	callq	_readl_relaxed
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %edi
	callq	___ffs
	addl	$32, %eax
LBB0_5:
	movq	8(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.7:
	cltq
	leaq	(%rax,%rax,2), %rax
	leaq	(%rcx,%rax,8), %r12
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rax,8), %r14
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movl	(%r12), %edi
	callq	_STM32_MDMA_CISR
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_stm32_mdma_read
	movl	%eax, %r15d
	movl	(%r12), %edi
	callq	_STM32_MDMA_CCR
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_stm32_mdma_read
	movl	%eax, %ebx
	movq	_STM32_MDMA_CCR_IRQ_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	sarl	%ebx
	movl	%r15d, %edi
	andl	%ebx, %edi
	je	LBB0_8
## %bb.9:
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	callq	___ffs
	movl	%eax, %r14d
	movl	(%r12), %edi
	callq	_STM32_MDMA_CIFCR
	movl	$1, %ebx
	movl	%r14d, %ecx
	shll	%cl, %ebx
	movl	%eax, %r14d
	leal	-128(%rbx), %eax
	cmpl	$4, %eax
	ja	LBB0_21
## %bb.10:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_11:
	movl	(%r12), %edi
	movq	(%r13), %rbx
	callq	_STM32_MDMA_CESR
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_readl_relaxed
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_chan2dev
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_STM32_MDMA_CIFCR_CTEIF@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_6:
	movq	%r13, %rdi
	callq	_mdma2dev
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_24
LBB0_8:
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	%r12, %rdi
	callq	_chan2dev
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_3:
	movq	%r13, %rdi
	callq	_mdma2dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_21:
	movq	%r12, %rdi
	callq	_chan2dev
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %edi
	movl	%ebx, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_22
LBB0_20:
	movq	_STM32_MDMA_CIFCR_CLTCIF@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	movq	_STM32_MDMA_CIFCR_CCTCIF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_stm32_mdma_set_bits
	movq	%r12, %rdi
	callq	_stm32_mdma_xfer_end
	jmp	LBB0_22
LBB0_15:
	movq	_STM32_MDMA_CIFCR_CBTIF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_stm32_mdma_set_bits
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	16(%rdx,%rcx,8), %eax
	incl	%eax
	movl	%eax, 16(%rdx,%rcx,8)
	movq	8(%rdx,%rcx,8), %rdi
	testq	%rdi, %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_23
## %bb.16:
	cmpl	$0, 8(%rdi)
	je	LBB0_23
## %bb.17:
	cmpl	4(%rdi), %eax
	jne	LBB0_19
## %bb.18:
	leaq	(%rdx,%rcx,8), %rax
	addq	$16, %rax
	movl	$0, (%rax)
LBB0_19:
	callq	_vchan_cyclic_callback
	jmp	LBB0_23
LBB0_13:
	movq	_STM32_MDMA_CIFCR_CBRTIF@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_stm32_mdma_set_bits
LBB0_22:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_23:
	movq	%rbx, %rdi
	callq	_spin_unlock
LBB0_24:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_25:
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_20
	.long	L0_0_set_12
	.long	L0_0_set_15
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_STM32_MDMA_GISR0,8,3           ## @STM32_MDMA_GISR0
	.comm	_STM32_MDMA_GISR1,8,3           ## @STM32_MDMA_GISR1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"spurious it\n"

	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
L_.str.1:                               ## @.str.1
	.asciz	"MDMA channel not initialized\n"

	.comm	_STM32_MDMA_CCR_IRQ_MASK,4,2    ## @STM32_MDMA_CCR_IRQ_MASK
L_.str.2:                               ## @.str.2
	.asciz	"spurious it (status=0x%04x, ien=0x%04x)\n"

L_.str.3:                               ## @.str.3
	.asciz	"Transfer Err: stat=0x%08x\n"

	.comm	_STM32_MDMA_CIFCR_CTEIF,4,2     ## @STM32_MDMA_CIFCR_CTEIF
	.comm	_STM32_MDMA_CIFCR_CCTCIF,4,2    ## @STM32_MDMA_CIFCR_CCTCIF
	.comm	_STM32_MDMA_CIFCR_CBRTIF,4,2    ## @STM32_MDMA_CIFCR_CBRTIF
	.comm	_STM32_MDMA_CIFCR_CBTIF,4,2     ## @STM32_MDMA_CIFCR_CBTIF
	.comm	_STM32_MDMA_CIFCR_CLTCIF,4,2    ## @STM32_MDMA_CIFCR_CLTCIF
L_.str.4:                               ## @.str.4
	.asciz	"it %d unhandled (status=0x%04x)\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_stm32_mdma_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_mdma_irq_handler
_stm32_mdma_irq_handler:                ; @stm32_mdma_irq_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x1
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _STM32_MDMA_GISR0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STM32_MDMA_GISR0@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
	cbz	w0, LBB0_6
; %bb.1:
	bl	___ffs
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x25, [x20, #8]
	cbz	x25, LBB0_8
LBB0_2:
	sxtw	x26, w0
	mov	w8, #24
	smaddl	x21, w0, w8, x25
	mov	w8, #24
	madd	x8, x26, x8, x25
	add	x19, x8, #4
	mov	x0, x19
	bl	_spin_lock
	ldr	w0, [x21]
	bl	_STM32_MDMA_CISR
	mov	x1, x0
	mov	x0, x20
	bl	_stm32_mdma_read
	mov	x23, x0
	ldr	w0, [x21]
	bl	_STM32_MDMA_CCR
	mov	x1, x0
	mov	x0, x20
	bl	_stm32_mdma_read
Lloh3:
	adrp	x8, _STM32_MDMA_CCR_IRQ_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STM32_MDMA_CCR_IRQ_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
	asr	w22, w8, #1
	ands	w0, w22, w23
	b.eq	LBB0_9
; %bb.3:
	bl	___ffs
	mov	x24, x0
	ldr	w0, [x21]
	bl	_STM32_MDMA_CIFCR
	mov	w8, #1
	lsl	w24, w8, w24
	sub	w8, w24, #128
	cmp	w8, #4
	b.hi	LBB0_12
; %bb.4:
	mov	x22, x0
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
	ldr	w0, [x21]
	ldr	x23, [x20]
	bl	_STM32_MDMA_CESR
	add	x0, x0, x23
	bl	_readl_relaxed
	mov	x23, x0
	mov	x0, x21
	bl	_chan2dev
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x23
	bl	_dev_err
Lloh10:
	adrp	x8, _STM32_MDMA_CIFCR_CTEIF@GOTPAGE
Lloh11:
	ldr	x8, [x8, _STM32_MDMA_CIFCR_CTEIF@GOTPAGEOFF]
	b	LBB0_21
LBB0_6:
	ldr	x8, [x20]
Lloh12:
	adrp	x9, _STM32_MDMA_GISR1@GOTPAGE
Lloh13:
	ldr	x9, [x9, _STM32_MDMA_GISR1@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
	cbz	w0, LBB0_10
; %bb.7:
	bl	___ffs
	add	w0, w0, #32
	ldr	x25, [x20, #8]
	cbnz	x25, LBB0_2
LBB0_8:
	mov	x0, x20
	bl	_mdma2dev
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	b	LBB0_23
LBB0_9:
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x21
	bl	_chan2dev
	stp	x23, x22, [sp]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_10:
	mov	x0, x20
	bl	_mdma2dev
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
LBB0_11:
	bl	_dev_dbg
Lloh21:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_24
LBB0_12:
	mov	x0, x21
	bl	_chan2dev
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	str	x23, [sp]
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x24
	bl	_dev_err
	b	LBB0_22
LBB0_13:
Lloh25:
	adrp	x8, _STM32_MDMA_CIFCR_CLTCIF@GOTPAGE
Lloh26:
	ldr	x8, [x8, _STM32_MDMA_CIFCR_CLTCIF@GOTPAGEOFF]
	b	LBB0_21
LBB0_14:
Lloh27:
	adrp	x8, _STM32_MDMA_CIFCR_CCTCIF@GOTPAGE
Lloh28:
	ldr	x8, [x8, _STM32_MDMA_CIFCR_CCTCIF@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x22
	bl	_stm32_mdma_set_bits
	mov	x0, x21
	bl	_stm32_mdma_xfer_end
	b	LBB0_22
LBB0_15:
Lloh30:
	adrp	x8, _STM32_MDMA_CIFCR_CBTIF@GOTPAGE
Lloh31:
	ldr	x8, [x8, _STM32_MDMA_CIFCR_CBTIF@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x22
	bl	_stm32_mdma_set_bits
	mov	w8, #24
	madd	x8, x26, x8, x25
	ldr	w9, [x8, #16]!
	add	w9, w9, #1
	str	w9, [x8]
	ldur	x0, [x8, #-8]
	cbz	x0, LBB0_22
; %bb.16:
	ldr	w10, [x0, #8]
	cbz	w10, LBB0_22
; %bb.17:
	ldr	w10, [x0, #4]
	cmp	w9, w10
	b.ne	LBB0_19
; %bb.18:
	str	wzr, [x8]
LBB0_19:
	bl	_vchan_cyclic_callback
	b	LBB0_22
LBB0_20:
Lloh33:
	adrp	x8, _STM32_MDMA_CIFCR_CBRTIF@GOTPAGE
Lloh34:
	ldr	x8, [x8, _STM32_MDMA_CIFCR_CBRTIF@GOTPAGEOFF]
LBB0_21:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x22
	bl	_stm32_mdma_set_bits
LBB0_22:
	mov	x0, x19
	bl	_spin_unlock
LBB0_23:
Lloh35:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh36:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_24:
	ldr	w0, [x8]
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_13-LBB0_5)>>2
	.byte	(LBB0_14-LBB0_5)>>2
	.byte	(LBB0_15-LBB0_5)>>2
	.byte	(LBB0_20-LBB0_5)>>2
                                        ; -- End function
	.comm	_STM32_MDMA_GISR0,8,3           ; @STM32_MDMA_GISR0
	.comm	_STM32_MDMA_GISR1,8,3           ; @STM32_MDMA_GISR1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"spurious it\n"

	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
l_.str.1:                               ; @.str.1
	.asciz	"MDMA channel not initialized\n"

	.comm	_STM32_MDMA_CCR_IRQ_MASK,4,2    ; @STM32_MDMA_CCR_IRQ_MASK
l_.str.2:                               ; @.str.2
	.asciz	"spurious it (status=0x%04x, ien=0x%04x)\n"

l_.str.3:                               ; @.str.3
	.asciz	"Transfer Err: stat=0x%08x\n"

	.comm	_STM32_MDMA_CIFCR_CTEIF,4,2     ; @STM32_MDMA_CIFCR_CTEIF
	.comm	_STM32_MDMA_CIFCR_CCTCIF,4,2    ; @STM32_MDMA_CIFCR_CCTCIF
	.comm	_STM32_MDMA_CIFCR_CBRTIF,4,2    ; @STM32_MDMA_CIFCR_CBRTIF
	.comm	_STM32_MDMA_CIFCR_CBTIF,4,2     ; @STM32_MDMA_CIFCR_CBTIF
	.comm	_STM32_MDMA_CIFCR_CLTCIF,4,2    ; @STM32_MDMA_CIFCR_CLTCIF
l_.str.4:                               ; @.str.4
	.asciz	"it %d unhandled (status=0x%04x)\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_stm32_mdma_irq_handler
.subsections_via_symbols
