	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function safexcel_handle_inv_result
_safexcel_handle_inv_result:            ## @safexcel_handle_inv_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%r8, %r13
	movq	%rcx, %r15
	movq	%rdx, %r14
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movl	(%rdx), %edi
	callq	_crypto_tfm_ctx
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	$0, (%rbx)
	xorl	%edi, %edi
	cmpl	$0, (%r15)
	sete	%dil
	callq	_unlikely
	xorl	%edx, %edx
	testq	%rax, %rax
	jne	LBB0_14
## %bb.1:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	subl	$1, (%r15)
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	jb	LBB0_8
## %bb.2:
	movq	%r15, %r13
	movslq	%ebx, %rax
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	leaq	(%rax,%rax,4), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	subl	$1, (%r13)
	jb	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rsi
	addq	$16, %rsi
	movq	%r12, %rdi
	callq	_safexcel_ring_next_rptr
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edi, %edi
	cmpl	$0, (%r15)
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_safexcel_rdesc_check_errors
	movl	%eax, (%r15)
	jmp	LBB0_7
LBB0_4:
	movl	12(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	%r14, %rdi
	callq	_PTR_ERR
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_8:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_safexcel_complete
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	cmpq	$0, 16(%r14)
	je	LBB0_10
## %bb.9:
	movl	8(%r12), %edi
	movl	4(%r14), %edx
	movl	8(%r14), %esi
	callq	_dma_pool_free
	movl	$1, %eax
	jmp	LBB0_13
LBB0_10:
	movq	%r12, %rdi
	callq	_safexcel_select_ring
	movl	%eax, (%r14)
	movq	(%r12), %rcx
	movslq	%eax, %r15
	leaq	(,%r15,4), %rax
	leaq	(%rax,%rax,4), %rbx
	leaq	(%rcx,%rbx), %rdi
	addq	$8, %rdi
	callq	_spin_lock_bh
	movq	(%r12), %rax
	leaq	(%rax,%rbx), %rdi
	addq	$12, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_crypto_enqueue_request
	movl	%eax, %r14d
	movq	(%r12), %rax
	leaq	(%rax,%rbx), %rdi
	addq	$8, %rdi
	callq	_spin_unlock_bh
	movq	_EINPROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	je	LBB0_12
## %bb.11:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
LBB0_12:
	movq	(%r12), %rax
	leaq	(%r15,%r15,4), %rcx
	leaq	(%rax,%rcx,4), %rsi
	movl	4(%rax,%rcx,4), %edi
	callq	_queue_work
	xorl	%eax, %eax
LBB0_13:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, (%rcx)
LBB0_14:
	movl	%edx, %eax
	addq	$56, %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	"cipher: invalidate: could not retrieve the result descriptor\n"

	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
	.no_dead_strip	_safexcel_handle_inv_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_inv_result
_safexcel_handle_inv_result:            ; @safexcel_handle_inv_result
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x5
	mov	x19, x4
	mov	x26, x3
	mov	x23, x2
	mov	x25, x1
	mov	x22, x0
	ldr	w0, [x2]
	bl	_crypto_tfm_ctx
	mov	x24, x0
	str	wzr, [x21]
	ldr	w8, [x26]
	cmp	w8, #0
	cset	w0, eq
	bl	_unlikely
	mov	w20, #0
	cbnz	x0, LBB0_14
; %bb.1:
	ldr	w8, [x26]
	sub	w9, w8, #1
	str	w9, [x26]
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	mov	w20, #0
	cbz	w8, LBB0_8
; %bb.2:
	sxtw	x28, w25
	mov	w19, #20
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w20, #1
	ldr	w8, [x26]
	sub	w9, w8, #1
	str	w9, [x26]
	cbz	w8, LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	madd	x8, x28, x19, x8
	add	x1, x8, #16
	mov	x0, x22
	bl	_safexcel_ring_next_rptr
	mov	x27, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21]
	cmp	w8, #0
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	mov	x1, x27
	bl	_safexcel_rdesc_check_errors
	str	w0, [x21]
	b	LBB0_3
LBB0_7:
	ldr	w0, [x22, #12]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	x0, x27
	bl	_PTR_ERR
	str	w0, [x21]
LBB0_8:
	mov	x0, x22
	mov	x1, x25
	bl	_safexcel_complete
	ldr	x8, [x24, #16]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	w0, [x22, #8]
	ldp	w2, w1, [x24, #4]
	bl	_dma_pool_free
	mov	w8, #1
	b	LBB0_13
LBB0_10:
	mov	x0, x22
	bl	_safexcel_select_ring
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [x24]
	ldr	x8, [x22]
	sxtw	x19, w0
	add	x9, x19, w0, sxtw #2
	lsl	x24, x9, #2
	add	x8, x8, x24
	add	x0, x8, #8
	bl	_spin_lock_bh
	ldr	x8, [x22]
	add	x8, x8, x24
	add	x0, x8, #12
	mov	x1, x23
	bl	_crypto_enqueue_request
	mov	x23, x0
	ldr	x8, [x22]
	add	x8, x8, x24
	add	x0, x8, #8
	bl	_spin_unlock_bh
Lloh2:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmn	w23, w8
	b.eq	LBB0_12
; %bb.11:
	str	w23, [x21]
LBB0_12:
	ldr	x8, [x22]
	mov	w9, #20
	madd	x1, x19, x9, x8
	ldr	w0, [x1, #4]
	bl	_queue_work
	mov	w8, #0
LBB0_13:
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	w8, [x9]
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cipher: invalidate: could not retrieve the result descriptor\n"

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