	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	movq	16(%rbp), %r12
	movq	%rdx, %rdi
	callq	_skcipher_request_cast
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_crypto_skcipher_reqtfm
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_crypto_skcipher_ctx
	movq	%rax, %r15
	movq	32(%rbp), %rax
	movl	$0, (%rax)
	xorl	%edi, %edi
	cmpl	$0, 16(%r12)
	sete	%dil
	callq	_unlikely
	xorl	%r12d, %r12d
	testq	%rax, %rax
	jne	LBB0_16
## %bb.1:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	16(%rbp), %rbx
	subl	$1, 16(%rbx)
	jb	LBB0_8
## %bb.2:
	movslq	-48(%rbp), %r15                 ## 4-byte Folded Reload
	xorl	%r12d, %r12d
	shlq	$2, %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r12d
	movq	16(%rbp), %rbx
	subl	$1, 16(%rbx)
	jb	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rsi
	addq	%r15, %rsi
	movq	%r14, %rdi
	callq	_safexcel_ring_next_rptr
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edi, %edi
	movq	32(%rbp), %rbx
	cmpl	$0, (%rbx)
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_safexcel_rdesc_check_errors
	movl	%eax, (%rbx)
	jmp	LBB0_7
LBB0_4:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	%r13, %rdi
	callq	_PTR_ERR
	movq	32(%rbp), %rcx
	movl	%eax, (%rcx)
	movq	16(%rbp), %rbx
LBB0_8:
	movq	%r14, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_safexcel_complete
	movl	(%r14), %edi
	movl	12(%rbx), %edx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	cmpq	%r15, %rsi
	je	LBB0_9
## %bb.10:
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_sg
	movl	(%r14), %edi
	movl	8(%rbx), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rsi
	jmp	LBB0_11
LBB0_9:
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_11:
	callq	_dma_unmap_sg
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	24(%rbp), %r14
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, 8(%rax)
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	jne	LBB0_15
## %bb.12:
	movq	(%rax), %rax
	movq	_CONTEXT_CONTROL_CRYPTO_MODE_CBC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.13:
	movq	16(%rbp), %rax
	movq	(%rax), %rax
	movq	_SAFEXCEL_ENCRYPT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.14:
	movq	16(%rbp), %rax
	movl	8(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	(%rsi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movq	%rdx, %rdi
	callq	_crypto_skcipher_ivsize
	movq	%rax, %rbx
	movl	%r13d, %r13d
	movq	%r15, %rdi
	callq	_crypto_skcipher_ivsize
	subq	%rax, %r13
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%rbx, %rcx
	movq	%r13, %r8
	callq	_sg_pcopy_to_buffer
LBB0_15:
	movl	$1, (%r14)
LBB0_16:
	movl	%r12d, %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: result: could not retrieve the result descriptor\n"

	.comm	_DMA_BIDIRECTIONAL,4,2          ## @DMA_BIDIRECTIONAL
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_CONTEXT_CONTROL_CRYPTO_MODE_CBC,8,3 ## @CONTEXT_CONTROL_CRYPTO_MODE_CBC
	.comm	_SAFEXCEL_ENCRYPT,8,3           ## @SAFEXCEL_ENCRYPT
	.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:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	str	x7, [sp, #40]                   ; 8-byte Folded Spill
	mov	x22, x6
	str	w5, [sp, #36]                   ; 4-byte Folded Spill
	mov	x26, x4
	mov	x19, x3
	mov	x23, x1
	mov	x28, x0
	ldr	x20, [x29, #16]
	mov	x0, x2
	bl	_skcipher_request_cast
	mov	x27, x0
	bl	_crypto_skcipher_reqtfm
	mov	x24, x0
	bl	_crypto_skcipher_ctx
	mov	x21, x0
	str	wzr, [x20]
	ldr	w8, [x22, #16]
	cmp	w8, #0
	cset	w0, eq
	bl	_unlikely
	mov	w25, #0
	cbnz	x0, LBB0_17
; %bb.1:
	mov	x10, x23
	stp	x19, x27, [sp, #8]              ; 16-byte Folded Spill
	ldr	w23, [sp, #36]                  ; 4-byte Folded Reload
	str	x26, [sp, #24]                  ; 8-byte Folded Spill
	ldr	w8, [x22, #16]
	sub	w9, w8, #1
	str	w9, [x22, #16]
	mov	w25, #0
	cbz	w8, LBB0_7
; %bb.2:
	mov	x27, x10
	sxtw	x26, w10
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w25, w25, #1
	ldr	w8, [x22, #16]
	sub	w9, w8, #1
	str	w9, [x22, #16]
	cbz	w8, LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x28, #8]
	add	x1, x8, x26, lsl #2
	mov	x0, x28
	bl	_safexcel_ring_next_rptr
	mov	x19, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20]
	cmp	w8, #0
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x28
	mov	x1, x19
	bl	_safexcel_rdesc_check_errors
	str	w0, [x20]
	b	LBB0_3
LBB0_7:
	mov	x27, x10
	b	LBB0_9
LBB0_8:
	ldr	w0, [x28]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	x0, x19
	bl	_PTR_ERR
	str	w0, [x20]
LBB0_9:
	mov	x0, x28
	mov	x1, x27
	bl	_safexcel_complete
	ldr	w0, [x28]
	ldr	w2, [x22, #12]
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x1, x19
	b.eq	LBB0_11
; %bb.10:
Lloh2:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	bl	_dma_unmap_sg
	ldr	w0, [x28]
	ldr	w2, [x22, #8]
Lloh5:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x1, x19
	b	LBB0_12
LBB0_11:
Lloh8:
	adrp	x8, _DMA_BIDIRECTIONAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DMA_BIDIRECTIONAL@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
LBB0_12:
	bl	_dma_unmap_sg
	ldr	x26, [sp, #40]                  ; 8-byte Folded Reload
	ldr	w8, [x21, #8]
	ldr	x10, [sp, #16]                  ; 8-byte Folded Reload
	cbnz	w8, LBB0_16
; %bb.13:
	ldr	x8, [x21]
Lloh11:
	adrp	x9, _CONTEXT_CONTROL_CRYPTO_MODE_CBC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CONTEXT_CONTROL_CRYPTO_MODE_CBC@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.14:
	ldr	x8, [x22]
Lloh14:
	adrp	x9, _SAFEXCEL_ENCRYPT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SAFEXCEL_ENCRYPT@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.15:
	ldr	w19, [x22, #8]
	ldr	w21, [x10]
	mov	x0, x24
	bl	_crypto_skcipher_ivsize
	mov	x22, x0
	mov	w20, w23
	mov	x0, x24
	bl	_crypto_skcipher_ivsize
	sub	x4, x20, x0
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	x1, x19
	mov	x2, x21
	mov	x3, x22
	bl	_sg_pcopy_to_buffer
LBB0_16:
	mov	w8, #1
	str	w8, [x26]
LBB0_17:
	mov	x0, x25
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cipher: result: could not retrieve the result descriptor\n"

	.comm	_DMA_BIDIRECTIONAL,4,2          ; @DMA_BIDIRECTIONAL
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_CONTEXT_CONTROL_CRYPTO_MODE_CBC,8,3 ; @CONTEXT_CONTROL_CRYPTO_MODE_CBC
	.comm	_SAFEXCEL_ENCRYPT,8,3           ; @SAFEXCEL_ENCRYPT
	.no_dead_strip	_safexcel_handle_req_result
.subsections_via_symbols
