	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_hash_xmit_dma
_stm32_hash_xmit_dma:                   ## @stm32_hash_xmit_dma
	.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
	movl	%ecx, %r12d
	movl	%edx, %r15d
	movq	%rdi, %r13
	movl	(%rdi), %edi
	movq	_DMA_MEM_TO_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_DMA_PREP_INTERRUPT@GOTPCREL(%rip), %rax
	movq	_DMA_CTRL_ACK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	orl	(%rax), %r8d
	movl	$1, %edx
	callq	_dmaengine_prep_slave_sg
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	8(%r13), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_reinit_completion
	movq	_stm32_hash_dma_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%r13, (%rbx)
	movq	_HASH_FLAGS_FINAL@GOTPCREL(%rip), %rax
	movl	12(%r13), %ecx
	orl	(%rax), %ecx
	movq	_HASH_FLAGS_DMA_ACTIVE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 12(%r13)
	movq	_HASH_CR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_stm32_hash_read
	movq	_HASH_CR_MDMAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%edx, %ecx
	orl	%eax, %ecx
	notl	%edx
	andl	%eax, %edx
	testl	%r12d, %r12d
	cmovnel	%ecx, %edx
	movq	_HASH_CR_DMAE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_stm32_hash_write
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_stm32_hash_set_nblw
	movq	%rbx, %rdi
	callq	_dmaengine_submit
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_dma_submit_error
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_1:
	movl	4(%r13), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_4:
	movl	(%r13), %edi
	callq	_dma_async_issue_pending
	movl	$100, %edi
	callq	_msecs_to_jiffies
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_wait_for_completion_timeout
	movq	_ETIMEDOUT@GOTPCREL(%rip), %r15
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	subl	(%r15), %r12d
	testl	%eax, %eax
	cmovnel	%r14d, %r12d
	movl	(%r13), %edi
	movl	%ebx, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_dma_async_is_tx_complete
	movq	_DMA_COMPLETE@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	subl	(%r15), %ebx
	cmpq	(%rcx), %rax
	cmovel	%r12d, %ebx
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.5:
	movl	4(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	(%r13), %edi
	callq	_dmaengine_terminate_all
	jmp	LBB0_7
LBB0_6:
	movq	_EINPROGRESS@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movl	%r14d, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_MEM_TO_DEV,4,2             ## @DMA_MEM_TO_DEV
	.comm	_DMA_PREP_INTERRUPT,4,2         ## @DMA_PREP_INTERRUPT
	.comm	_DMA_CTRL_ACK,4,2               ## @DMA_CTRL_ACK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dmaengine_prep_slave error\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_stm32_hash_dma_callback,4,2    ## @stm32_hash_dma_callback
	.comm	_HASH_FLAGS_FINAL,4,2           ## @HASH_FLAGS_FINAL
	.comm	_HASH_FLAGS_DMA_ACTIVE,4,2      ## @HASH_FLAGS_DMA_ACTIVE
	.comm	_HASH_CR,4,2                    ## @HASH_CR
	.comm	_HASH_CR_MDMAT,4,2              ## @HASH_CR_MDMAT
	.comm	_HASH_CR_DMAE,4,2               ## @HASH_CR_DMAE
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_DMA_COMPLETE,8,3               ## @DMA_COMPLETE
L_.str.1:                               ## @.str.1
	.asciz	"DMA Error %i\n"

	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
	.no_dead_strip	_stm32_hash_xmit_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_hash_xmit_dma
_stm32_hash_xmit_dma:                   ; @stm32_hash_xmit_dma
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x3
	mov	x21, x2
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _DMA_MEM_TO_DEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_MEM_TO_DEV@GOTPAGEOFF]
Lloh2:
	adrp	x9, _DMA_PREP_INTERRUPT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DMA_PREP_INTERRUPT@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _DMA_CTRL_ACK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DMA_CTRL_ACK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w4, w9, w8
	mov	w2, #1
	bl	_dmaengine_prep_slave_sg
	cbz	x0, LBB0_4
; %bb.1:
	mov	x23, x0
	add	x20, x19, #8
	mov	x0, x20
	bl	_reinit_completion
Lloh9:
	adrp	x8, _stm32_hash_dma_callback@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stm32_hash_dma_callback@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x23, #8]
Lloh12:
	adrp	x8, _HASH_FLAGS_FINAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HASH_FLAGS_FINAL@GOTPAGEOFF]
	str	x19, [x23]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x19, #12]
	orr	w8, w9, w8
Lloh15:
	adrp	x9, _HASH_FLAGS_DMA_ACTIVE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _HASH_FLAGS_DMA_ACTIVE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #12]
Lloh18:
	adrp	x24, _HASH_CR@GOTPAGE
Lloh19:
	ldr	x24, [x24, _HASH_CR@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_stm32_hash_read
Lloh20:
	adrp	x8, _HASH_CR_MDMAT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HASH_CR_MDMAT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	orr	w9, w8, w0
	bic	w8, w0, w8
	cmp	w22, #0
	csel	w8, w8, w9, eq
Lloh23:
	adrp	x9, _HASH_CR_DMAE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _HASH_CR_DMAE@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w2, w9, w8
	ldr	w1, [x24]
	mov	x0, x19
	bl	_stm32_hash_write
	mov	x0, x19
	mov	x1, x21
	bl	_stm32_hash_set_nblw
	mov	x0, x23
	bl	_dmaengine_submit
	mov	x21, x0
	bl	_dma_submit_error
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	w0, [x19]
	bl	_dma_async_issue_pending
	mov	w0, #100
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x20
	bl	_wait_for_completion_timeout
Lloh26:
	adrp	x20, _ETIMEDOUT@GOTPAGE
Lloh27:
	ldr	x20, [x20, _ETIMEDOUT@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w0, #0
	csneg	w22, wzr, w8, ne
	ldr	w0, [x19]
	mov	x1, x21
	mov	x2, #0
	mov	x3, #0
	bl	_dma_async_is_tx_complete
Lloh28:
	adrp	x8, _DMA_COMPLETE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _DMA_COMPLETE@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	ldr	w9, [x20]
	cmp	x0, x8
	csneg	w20, w22, w9, eq
	cbz	w20, LBB0_8
; %bb.3:
	ldr	w0, [x19, #4]
	str	x20, [sp]
Lloh31:
	adrp	x1, l_.str.1@PAGE
Lloh32:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	ldr	w0, [x19]
	bl	_dmaengine_terminate_all
	b	LBB0_7
LBB0_4:
	ldr	w0, [x19, #4]
Lloh33:
	adrp	x1, l_.str@PAGE
Lloh34:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_5:
Lloh35:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
Lloh37:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_MEM_TO_DEV,4,2             ; @DMA_MEM_TO_DEV
	.comm	_DMA_PREP_INTERRUPT,4,2         ; @DMA_PREP_INTERRUPT
	.comm	_DMA_CTRL_ACK,4,2               ; @DMA_CTRL_ACK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dmaengine_prep_slave error\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_stm32_hash_dma_callback,4,2    ; @stm32_hash_dma_callback
	.comm	_HASH_FLAGS_FINAL,4,2           ; @HASH_FLAGS_FINAL
	.comm	_HASH_FLAGS_DMA_ACTIVE,4,2      ; @HASH_FLAGS_DMA_ACTIVE
	.comm	_HASH_CR,4,2                    ; @HASH_CR
	.comm	_HASH_CR_MDMAT,4,2              ; @HASH_CR_MDMAT
	.comm	_HASH_CR_DMAE,4,2               ; @HASH_CR_DMAE
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_DMA_COMPLETE,8,3               ; @DMA_COMPLETE
l_.str.1:                               ; @.str.1
	.asciz	"DMA Error %i\n"

	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
	.no_dead_strip	_stm32_hash_xmit_dma
.subsections_via_symbols
