	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_hash_hmac_dma_send
_stm32_hash_hmac_dma_send:              ## @stm32_hash_hmac_dma_send
	.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
	movq	%rdi, %r12
	movl	12(%rdi), %edi
	callq	_ahash_request_ctx
	movq	%rax, %r14
	movl	12(%r12), %edi
	callq	_crypto_ahash_reqtfm
	movq	%rax, %rdi
	callq	_crypto_ahash_ctx
	movq	%rax, %r15
	movq	(%rax), %rdi
	movq	_HASH_DMA_THRESHOLD@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jl	LBB0_2
## %bb.1:
	cmpl	$1, (%r12)
	jne	LBB0_5
LBB0_2:
	movq	%r12, %rdi
	callq	_stm32_hash_write_key
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_stm32_hash_wait_busy
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_5:
	movq	%r14, %rbx
	movq	_HASH_FLAGS_HMAC_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r12)
	jne	LBB0_7
## %bb.6:
	leaq	8(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	8(%r15), %r13d
	movl	$4, %esi
	callq	_ALIGN
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_sg_init_one
LBB0_7:
	movl	8(%r12), %edi
	addq	$8, %r14
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_dma_map_sg
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	(%r15), %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_stm32_hash_xmit_dma
	movl	%eax, %ebx
	movl	8(%r12), %edi
	movl	(%r13), %ecx
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_dma_unmap_sg
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	8(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_HASH_DMA_THRESHOLD,8,3         ## @HASH_DMA_THRESHOLD
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_HASH_FLAGS_HMAC_KEY,4,2        ## @HASH_FLAGS_HMAC_KEY
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dma_map_sg error\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_stm32_hash_hmac_dma_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_hash_hmac_dma_send
_stm32_hash_hmac_dma_send:              ; @stm32_hash_hmac_dma_send
	.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
	mov	x19, x0
	ldr	w0, [x0, #12]
	bl	_ahash_request_ctx
	mov	x20, x0
	ldr	w0, [x19, #12]
	bl	_crypto_ahash_reqtfm
	bl	_crypto_ahash_ctx
	mov	x21, x0
	ldr	x0, [x0]
Lloh0:
	adrp	x8, _HASH_DMA_THRESHOLD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HASH_DMA_THRESHOLD@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.lt	LBB0_2
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_stm32_hash_write_key
	mov	x20, x0
	mov	x0, x19
	bl	_stm32_hash_wait_busy
	cbz	x0, LBB0_9
; %bb.3:
Lloh3:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_9
LBB0_5:
	ldr	w8, [x19, #4]
Lloh5:
	adrp	x9, _HASH_FLAGS_HMAC_KEY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HASH_FLAGS_HMAC_KEY@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.6:
	add	x22, x20, #8
	ldr	w23, [x21, #8]
	mov	w1, #4
	bl	_ALIGN
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_sg_init_one
LBB0_7:
	ldr	w0, [x19, #8]
	add	x22, x20, #8
Lloh8:
	adrp	x23, _DMA_TO_DEVICE@GOTPAGE
Lloh9:
	ldr	x23, [x23, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x1, x22
	mov	w2, #1
	bl	_dma_map_sg
	str	x0, [x20]
	cbz	x0, LBB0_10
; %bb.8:
	ldr	x2, [x21]
	mov	x0, x19
	mov	x1, x22
	mov	w3, #0
	bl	_stm32_hash_xmit_dma
	mov	x20, x0
	ldr	w0, [x19, #8]
	ldr	w3, [x23]
	mov	x1, x22
	mov	w2, #1
	bl	_dma_unmap_sg
LBB0_9:
	mov	x0, x20
	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
LBB0_10:
	ldr	w0, [x19, #8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HASH_DMA_THRESHOLD,8,3         ; @HASH_DMA_THRESHOLD
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_HASH_FLAGS_HMAC_KEY,4,2        ; @HASH_FLAGS_HMAC_KEY
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dma_map_sg error\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_stm32_hash_hmac_dma_send
.subsections_via_symbols
