	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qce_ahash_async_req_handle
_qce_ahash_async_req_handle:            ## @qce_ahash_async_req_handle
	.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	%rdi, %rbx
	callq	_ahash_request_cast
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_ahash_request_ctx
	movq	%rax, %r13
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	callq	_crypto_tfm_ctx
	movq	%rax, %r15
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	callq	_to_ahash_tmpl
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	(%r13), %r12
	movq	%r12, %rdi
	callq	_IS_SHA_HMAC
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_QCE_SHA_HMAC_KEY_SIZE@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_4
LBB0_2:
	movq	%r12, %rdi
	callq	_IS_CMAC
	testq	%rax, %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_5
## %bb.3:
	movq	_AES_KEYSIZE_128@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%r15), %ecx
	movl	%ecx, 20(%rbx)
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
LBB0_5:
	movq	(%r14), %rdi
	movl	8(%r14), %esi
	callq	_sg_nents_for_len
	movl	%eax, 8(%rbx)
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %edi
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	(%r14), %rsi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movl	%eax, %edx
	callq	_dma_map_sg
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	addq	$12, %r13
	movl	4(%r15), %esi
	movq	_QCE_RESULT_BUF_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_sg_init_one
	movl	(%r15), %edi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rsi
	movl	$1, %edx
	callq	_dma_map_sg
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:
	leaq	4(%r15), %rdi
	movq	(%r14), %rsi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edx
	movq	_qce_ahash_done@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, (%rsp)
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rcx
	movl	$1, %r8d
	callq	_qce_dma_prep_sgs
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.12:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_qce_dma_issue_pending
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_qce_start
	testl	%eax, %eax
	je	LBB0_16
## %bb.13:
	movl	%eax, %r15d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_qce_dma_terminate_all
	movl	%r15d, %ebx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_14:
	movl	(%r15), %edi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rsi
	movl	$1, %edx
	callq	_dma_unmap_sg
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %r12
	jmp	LBB0_15
LBB0_6:
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movl	8(%rbx), %ebx
	jmp	LBB0_16
LBB0_8:
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_10:
	movl	%eax, %ebx
LBB0_15:
	movl	(%r15), %edi
	movq	(%r14), %rsi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edx
	movl	(%r12), %ecx
	callq	_dma_unmap_sg
LBB0_16:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QCE_SHA_HMAC_KEY_SIZE,4,2      ## @QCE_SHA_HMAC_KEY_SIZE
	.comm	_AES_KEYSIZE_128,4,2            ## @AES_KEYSIZE_128
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid numbers of src SG.\n"

	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_QCE_RESULT_BUF_SZ,4,2          ## @QCE_RESULT_BUF_SZ
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_qce_ahash_done,4,2             ## @qce_ahash_done
	.no_dead_strip	_qce_ahash_async_req_handle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qce_ahash_async_req_handle
_qce_ahash_async_req_handle:            ; @qce_ahash_async_req_handle
	.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	x21, x0
	bl	_ahash_request_cast
	mov	x20, x0
	bl	_ahash_request_ctx
	mov	x19, x0
	ldr	w0, [x21]
	bl	_crypto_tfm_ctx
	mov	x23, x0
	ldr	w0, [x21]
	bl	_to_ahash_tmpl
	mov	x22, x0
	ldr	x26, [x0, #8]
	ldr	x24, [x19]
	mov	x0, x24
	bl	_IS_SHA_HMAC
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _QCE_SHA_HMAC_KEY_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QCE_SHA_HMAC_KEY_SIZE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x0, x24
	bl	_IS_CMAC
	cbz	x0, LBB0_5
; %bb.3:
Lloh2:
	adrp	x8, _AES_KEYSIZE_128@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AES_KEYSIZE_128@GOTPAGEOFF]
LBB0_4:
	ldr	w9, [x23]
	ldr	w8, [x8]
	stp	w8, w9, [x19, #16]
LBB0_5:
	ldr	x0, [x20]
	ldr	w1, [x20, #8]
	bl	_sg_nents_for_len
	mov	x2, x0
	str	w0, [x19, #8]
	ldr	w0, [x26]
	tbnz	w2, #31, LBB0_12
; %bb.6:
	ldr	x1, [x20]
Lloh4:
	adrp	x27, _DMA_TO_DEVICE@GOTPAGE
Lloh5:
	ldr	x27, [x27, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w3, [x27]
	bl	_dma_map_sg
	tbnz	w0, #31, LBB0_13
; %bb.7:
	add	x23, x19, #12
	mov	x24, x26
	ldr	w1, [x24, #4]!
Lloh6:
	adrp	x8, _QCE_RESULT_BUF_SZ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QCE_RESULT_BUF_SZ@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x23
	bl	_sg_init_one
	ldr	w0, [x26]
Lloh9:
	adrp	x28, _DMA_FROM_DEVICE@GOTPAGE
Lloh10:
	ldr	x28, [x28, _DMA_FROM_DEVICE@GOTPAGEOFF]
	ldr	w3, [x28]
	mov	x1, x23
	mov	w2, #1
	bl	_dma_map_sg
	tbnz	w0, #31, LBB0_14
; %bb.8:
	ldr	x1, [x20]
	ldr	w2, [x19, #8]
Lloh11:
	adrp	x8, _qce_ahash_done@GOTPAGE
Lloh12:
	ldr	x8, [x8, _qce_ahash_done@GOTPAGEOFF]
Lloh13:
	ldr	w5, [x8]
	mov	x0, x24
	mov	x3, x23
	mov	w4, #1
	mov	x6, x21
	bl	_qce_dma_prep_sgs
	mov	x25, x0
	cbnz	w0, LBB0_11
; %bb.9:
	mov	x0, x24
	bl	_qce_dma_issue_pending
	ldr	w1, [x22]
	mov	x0, x21
	mov	w2, #0
	mov	w3, #0
	bl	_qce_start
	mov	x25, x0
	cbz	w0, LBB0_16
; %bb.10:
	mov	x0, x24
	bl	_qce_dma_terminate_all
LBB0_11:
	ldr	w0, [x26]
	ldr	w3, [x28]
	mov	x1, x23
	mov	w2, #1
	bl	_dma_unmap_sg
	b	LBB0_15
LBB0_12:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	ldr	w25, [x19, #8]
	b	LBB0_16
LBB0_13:
	mov	x25, x0
	b	LBB0_16
LBB0_14:
	mov	x25, x0
LBB0_15:
	ldr	w0, [x26]
	ldr	x1, [x20]
	ldr	w2, [x19, #8]
	ldr	w3, [x27]
	bl	_dma_unmap_sg
LBB0_16:
	mov	x0, x25
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_QCE_SHA_HMAC_KEY_SIZE,4,2      ; @QCE_SHA_HMAC_KEY_SIZE
	.comm	_AES_KEYSIZE_128,4,2            ; @AES_KEYSIZE_128
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid numbers of src SG.\n"

	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_QCE_RESULT_BUF_SZ,4,2          ; @QCE_RESULT_BUF_SZ
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_qce_ahash_done,4,2             ; @qce_ahash_done
	.no_dead_strip	_qce_ahash_async_req_handle
.subsections_via_symbols
