	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_mdma_resume
_stm32_mdma_resume:                     ## @stm32_mdma_resume
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_to_stm32_mdma_chan
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_stm32_mdma_get_dev
	movq	%rax, %r15
	movq	(%rbx), %rax
	movq	16(%rbx), %rcx
	movq	8(%rcx), %rcx
	movq	(%rcx,%rax,8), %r13
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	12(%rbx), %edi
	callq	_STM32_MDMA_CCR
	movq	16(%rbx), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_stm32_mdma_write
	movl	12(%rbx), %edi
	callq	_STM32_MDMA_CISR
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_stm32_mdma_read
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r12
	movl	12(%rbx), %edi
	callq	_STM32_MDMA_CIFCR
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	%r12, %rdx
	callq	_stm32_mdma_set_bits
LBB0_2:
	movq	%rbx, %rdi
	callq	_stm32_mdma_dump_reg
	movl	12(%rbx), %edi
	callq	_STM32_MDMA_CCR
	movq	%rax, %r12
	movq	_STM32_MDMA_CCR_EN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_stm32_mdma_set_bits
	movq	_STM32_MDMA_CTCR_SWRM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_4
## %bb.3:
	movq	_STM32_MDMA_CCR_SWRQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_stm32_mdma_set_bits
LBB0_4:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rdi
	callq	_chan2dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movq	%r14, %rdx
	callq	_dev_dbg
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STM32_MDMA_CCR_EN,8,3          ## @STM32_MDMA_CCR_EN
	.comm	_STM32_MDMA_CTCR_SWRM,4,2       ## @STM32_MDMA_CTCR_SWRM
	.comm	_STM32_MDMA_CCR_SWRQ,8,3        ## @STM32_MDMA_CCR_SWRQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vchan %pK: resume\n"

	.no_dead_strip	_stm32_mdma_resume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_mdma_resume
_stm32_mdma_resume:                     ; @stm32_mdma_resume
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_to_stm32_mdma_chan
	mov	x19, x0
	bl	_stm32_mdma_get_dev
	mov	x21, x0
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	ldr	x9, [x19]
	ldr	x23, [x8, x9, lsl #3]
	add	x20, x19, #8
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w0, [x19, #12]
	bl	_STM32_MDMA_CCR
	mov	x1, x0
	ldr	x8, [x19, #16]
	ldr	w2, [x8]
	mov	x0, x21
	bl	_stm32_mdma_write
	ldr	w0, [x19, #12]
	bl	_STM32_MDMA_CISR
	mov	x1, x0
	mov	x0, x21
	bl	_stm32_mdma_read
	cbz	x0, LBB0_2
; %bb.1:
	mov	x22, x0
	ldr	w0, [x19, #12]
	bl	_STM32_MDMA_CIFCR
	mov	x1, x0
	mov	x0, x21
	mov	x2, x22
	bl	_stm32_mdma_set_bits
LBB0_2:
	mov	x0, x19
	bl	_stm32_mdma_dump_reg
	ldr	w0, [x19, #12]
	bl	_STM32_MDMA_CCR
	mov	x22, x0
Lloh0:
	adrp	x8, _STM32_MDMA_CCR_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STM32_MDMA_CCR_EN@GOTPAGEOFF]
Lloh2:
	ldr	x2, [x8]
	mov	x0, x21
	mov	x1, x22
	bl	_stm32_mdma_set_bits
	ldr	w8, [x23]
Lloh3:
	adrp	x9, _STM32_MDMA_CTCR_SWRM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _STM32_MDMA_CTCR_SWRM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _STM32_MDMA_CCR_SWRQ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STM32_MDMA_CCR_SWRQ@GOTPAGEOFF]
Lloh8:
	ldr	x2, [x8]
	mov	x0, x21
	mov	x1, x22
	bl	_stm32_mdma_set_bits
LBB0_4:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_chan2dev
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_dbg
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_STM32_MDMA_CCR_EN,8,3          ; @STM32_MDMA_CCR_EN
	.comm	_STM32_MDMA_CTCR_SWRM,4,2       ; @STM32_MDMA_CTCR_SWRM
	.comm	_STM32_MDMA_CCR_SWRQ,8,3        ; @STM32_MDMA_CCR_SWRQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vchan %pK: resume\n"

	.no_dead_strip	_stm32_mdma_resume
.subsections_via_symbols
