	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function safexcel_handle_req_result
_safexcel_handle_req_result:            ## @safexcel_handle_req_result
	.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	%r8, %r12
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	%rdx, %rdi
	callq	_ahash_request_cast
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_crypto_ahash_reqtfm
	movq	%rax, %r15
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_ahash_request_ctx
	movq	%rax, %rbx
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_crypto_ahash_ctx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$0, (%r12)
	movslq	%r14d, %rsi
	shlq	$2, %rsi
	addq	8(%r13), %rsi
	movq	%r13, %rdi
	callq	_safexcel_ring_next_rptr
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	%r15, %rdi
	callq	_PTR_ERR
	jmp	LBB0_3
LBB0_2:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_safexcel_rdesc_check_errors
LBB0_3:
	movl	%eax, (%r12)
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_safexcel_complete
	movq	96(%rbx), %rdx
	testq	%rdx, %rdx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_5
## %bb.4:
	movl	(%r13), %edi
	movl	16(%r12), %esi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_sg
	movq	$0, 96(%rbx)
LBB0_5:
	movq	88(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:
	movl	(%r13), %edi
	movq	56(%rbx), %rdx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_single
	movq	$0, 88(%rbx)
LBB0_7:
	movq	80(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:
	movl	(%r13), %edi
	movq	72(%rbx), %rdx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_single
	xorps	%xmm0, %xmm0
	movups	%xmm0, 72(%rbx)
LBB0_9:
	cmpq	$0, 64(%rbx)
	je	LBB0_14
## %bb.10:
	cmpq	$0, 24(%rbx)
	je	LBB0_13
## %bb.11:
	movq	(%rbx), %rax
	movq	_CONTEXT_CONTROL_DIGEST_HMAC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
LBB0_13:
	movl	(%r12), %r14d
	movl	16(%rbx), %r15d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_crypto_ahash_digestsize
	movl	%r14d, %edi
	movl	%r15d, %esi
	movq	%rax, %rdx
	callq	_memcpy
LBB0_14:
	movq	%rbx, %rdi
	callq	_safexcel_queued_len
	movl	$1, %r14d
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	movq	%rax, %rdx
	callq	_memcpy
	jmp	LBB0_16
LBB0_12:
	movl	12(%rbx), %r14d
	movl	16(%rbx), %r15d
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_crypto_ahash_digestsize
	movl	%r14d, %edi
	movl	%r15d, %esi
	movq	%rax, %rdx
	callq	_memcpy
	movl	16(%rbx), %edi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	4(%r15), %esi
	movq	56(%rbx), %rdx
	callq	_memcpy
	movq	32(%rbx), %r14
	movq	%r13, %rdi
	callq	_crypto_ahash_digestsize
	addq	%r14, %rax
	movq	%rax, 48(%rbx)
	movq	32(%rbx), %rax
	movq	%rax, 40(%rbx)
	movq	$0, 24(%rbx)
	movl	$1, (%r15)
	movq	$0, 8(%r12)
	movq	%r12, %rdi
	callq	_safexcel_ahash_enqueue
	xorl	%r14d, %r14d
LBB0_16:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	movl	$1, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hash: result: could not retrieve the result descriptor\n"

	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_CONTEXT_CONTROL_DIGEST_HMAC,8,3 ## @CONTEXT_CONTROL_DIGEST_HMAC
	.no_dead_strip	_safexcel_handle_req_result
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function safexcel_handle_req_result
_safexcel_handle_req_result:            ; @safexcel_handle_req_result
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x26, x4
	mov	x19, x3
	mov	x25, x1
	mov	x24, x0
	mov	x0, x2
	bl	_ahash_request_cast
	mov	x21, x0
	bl	_crypto_ahash_reqtfm
	mov	x22, x0
	mov	x0, x21
	bl	_ahash_request_ctx
	mov	x20, x0
	mov	x0, x22
	bl	_crypto_ahash_ctx
	mov	x23, x0
	str	wzr, [x26]
	ldr	x8, [x24, #8]
	add	x1, x8, w25, sxtw #2
	mov	x0, x24
	bl	_safexcel_ring_next_rptr
	mov	x27, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	x0, x27
	bl	_PTR_ERR
	b	LBB0_3
LBB0_2:
	mov	x0, x24
	mov	x1, x27
	bl	_safexcel_rdesc_check_errors
LBB0_3:
	str	w0, [x26]
	mov	x0, x24
	mov	x1, x25
	bl	_safexcel_complete
	ldr	x2, [x20, #96]
Lloh2:
	adrp	x25, _DMA_TO_DEVICE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _DMA_TO_DEVICE@GOTPAGEOFF]
	cbz	x2, LBB0_5
; %bb.4:
	ldr	w0, [x24]
	ldr	w1, [x21, #16]
	ldr	w3, [x25]
	bl	_dma_unmap_sg
	str	xzr, [x20, #96]
LBB0_5:
	ldr	x1, [x20, #88]
	cbz	x1, LBB0_7
; %bb.6:
	ldr	w0, [x24]
	ldr	x2, [x20, #56]
Lloh4:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
	bl	_dma_unmap_single
	str	xzr, [x20, #88]
LBB0_7:
	ldr	x1, [x20, #80]
	cbz	x1, LBB0_9
; %bb.8:
	ldr	w0, [x24]
	ldr	x2, [x20, #72]
	ldr	w3, [x25]
	bl	_dma_unmap_single
	stp	xzr, xzr, [x20, #72]
LBB0_9:
	ldr	x8, [x20, #64]
	cbz	x8, LBB0_13
; %bb.10:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_12
; %bb.11:
	ldr	x8, [x20]
Lloh7:
	adrp	x9, _CONTEXT_CONTROL_DIGEST_HMAC@GOTPAGE
Lloh8:
	ldr	x9, [x9, _CONTEXT_CONTROL_DIGEST_HMAC@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
LBB0_12:
	ldr	w21, [x21]
	ldr	w23, [x20, #16]
	mov	x0, x22
	bl	_crypto_ahash_digestsize
	mov	x2, x0
	mov	x0, x21
	mov	x1, x23
	bl	_memcpy
LBB0_13:
	mov	x0, x20
	bl	_safexcel_queued_len
	cbz	x0, LBB0_15
; %bb.14:
	mov	x2, x0
	ldp	w1, w0, [x20, #8]
	bl	_memcpy
LBB0_15:
	mov	w8, #1
	b	LBB0_17
LBB0_16:
	ldp	w24, w25, [x20, #12]
	mov	x0, x22
	bl	_crypto_ahash_digestsize
	mov	x2, x0
	mov	x0, x24
	mov	x1, x25
	bl	_memcpy
	ldr	w0, [x20, #16]
	ldr	w1, [x23, #4]
	ldr	x2, [x20, #56]
	bl	_memcpy
	ldr	x24, [x20, #32]
	mov	x0, x22
	bl	_crypto_ahash_digestsize
	ldr	x8, [x20, #32]
	add	x9, x0, x24
	stp	x8, x9, [x20, #40]
	str	xzr, [x20, #24]
	mov	w8, #1
	str	w8, [x23]
	str	xzr, [x21, #8]
	mov	x0, x21
	bl	_safexcel_ahash_enqueue
	mov	w8, #0
LBB0_17:
	str	w8, [x19]
	mov	w0, #1
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hash: result: could not retrieve the result descriptor\n"

	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_CONTEXT_CONTROL_DIGEST_HMAC,8,3 ; @CONTEXT_CONTROL_DIGEST_HMAC
	.no_dead_strip	_safexcel_handle_req_result
.subsections_via_symbols
