	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qce_ablkcipher_done
_qce_ablkcipher_done:                   ## @qce_ablkcipher_done
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_ablkcipher_request_cast
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ablkcipher_request_ctx
	movq	%rax, %r15
	movl	(%r14), %edi
	callq	_to_cipher_tmpl
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r12
	movq	(%rbx), %rax
	movq	8(%rbx), %r14
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpq	%r14, %rax
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	(%rax), %r13d
	cmovel	%ebx, %r13d
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	cmovnel	(%rax), %ebx
	leaq	12(%r12), %rdi
	callq	_qce_dma_terminate_all
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	8(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_dbg
LBB0_2:
	cmpq	%r14, -56(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_4
## %bb.3:
	movl	8(%r12), %edi
	movl	12(%r15), %edx
	movl	16(%r15), %esi
	movl	%r13d, %ecx
	callq	_dma_unmap_sg
LBB0_4:
	movl	8(%r12), %edi
	movl	4(%r15), %edx
	movl	8(%r15), %esi
	movl	%ebx, %ecx
	callq	_dma_unmap_sg
	movq	%r15, %rdi
	callq	_sg_free_table
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdi
	callq	_qce_check_status
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_6
## %bb.5:
	movl	8(%r12), %edi
	movl	-44(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
LBB0_6:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movl	%ebx, %esi
	callq	*(%r12)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_DMA_BIDIRECTIONAL,4,2          ## @DMA_BIDIRECTIONAL
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ablkcipher dma termination error (%d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"ablkcipher operation error (%x)\n"

	.no_dead_strip	_qce_ablkcipher_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qce_ablkcipher_done
_qce_ablkcipher_done:                   ; @qce_ablkcipher_done
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x0
	bl	_ablkcipher_request_cast
	mov	x22, x0
	bl	_ablkcipher_request_ctx
	mov	x21, x0
	ldr	w0, [x19]
	bl	_to_cipher_tmpl
	mov	x19, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldp	x24, x25, [x22]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DMA_BIDIRECTIONAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DMA_BIDIRECTIONAL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	x24, x25
	csel	w23, w9, w8, eq
Lloh6:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	csel	w22, w9, w8, eq
	add	x0, x20, #12
	bl	_qce_dma_terminate_all
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
	ldr	w0, [x20, #8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
LBB0_2:
	cmp	x24, x25
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x20, #8]
	ldp	w2, w1, [x21, #12]
	mov	x3, x23
	bl	_dma_unmap_sg
LBB0_4:
	ldr	w0, [x20, #8]
	ldp	w2, w1, [x21, #4]
	mov	x3, x22
	bl	_dma_unmap_sg
	mov	x0, x21
	bl	_sg_free_table
	add	x1, sp, #12
	mov	x0, x20
	bl	_qce_check_status
	mov	x21, x0
	tbz	w0, #31, LBB0_6
; %bb.5:
	ldr	w0, [x20, #8]
	ldr	w2, [sp, #12]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
LBB0_6:
	ldr	x8, [x20]
	ldr	x0, [x19]
	mov	x1, x21
	blr	x8
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_DMA_BIDIRECTIONAL,4,2          ; @DMA_BIDIRECTIONAL
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ablkcipher dma termination error (%d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"ablkcipher operation error (%x)\n"

	.no_dead_strip	_qce_ablkcipher_done
.subsections_via_symbols
