	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qat_alg_aead_init_sessions
_qat_alg_aead_init_sessions:            ## @qat_alg_aead_init_sessions
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%ecx, %r14d
	movq	%rdi, %rbx
	leaq	-24(%rbp), %rdi
	callq	_crypto_authenc_extractkeys
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movl	-24(%rbp), %edi
	leaq	-28(%rbp), %rsi
	movl	%r14d, %edx
	callq	_qat_alg_validate_key
	testq	%rax, %rax
	je	LBB0_2
LBB0_5:
	movq	_CRYPTO_TFM_RES_BAD_KEY_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_crypto_aead_set_flags
	leaq	-24(%rbp), %rdi
	movl	$4, %esi
	callq	_memzero_explicit
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_7:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movl	-28(%rbp), %esi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	callq	_qat_alg_aead_init_enc_session
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movl	-28(%rbp), %esi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	callq	_qat_alg_aead_init_dec_session
	testq	%rax, %rax
	je	LBB0_4
LBB0_6:
	leaq	-24(%rbp), %rdi
	movl	$4, %esi
	callq	_memzero_explicit
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_4:
	leaq	-24(%rbp), %rdi
	movl	$4, %esi
	callq	_memzero_explicit
	xorl	%eax, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_CRYPTO_TFM_RES_BAD_KEY_LEN,4,2 ## @CRYPTO_TFM_RES_BAD_KEY_LEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_qat_alg_aead_init_sessions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qat_alg_aead_init_sessions
_qat_alg_aead_init_sessions:            ; @qat_alg_aead_init_sessions
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x3
	mov	x19, x0
	add	x0, sp, #8
	bl	_crypto_authenc_extractkeys
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w0, [sp, #8]
	add	x1, sp, #4
	mov	x2, x20
	bl	_qat_alg_validate_key
	cbz	x0, LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _CRYPTO_TFM_RES_BAD_KEY_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CRYPTO_TFM_RES_BAD_KEY_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_crypto_aead_set_flags
	add	x0, sp, #8
	mov	w1, #4
	bl	_memzero_explicit
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
	ldr	w1, [sp, #4]
	add	x2, sp, #8
	mov	x0, x19
	mov	x3, x20
	bl	_qat_alg_aead_init_enc_session
	cbnz	x0, LBB0_7
; %bb.6:
	ldr	w1, [sp, #4]
	add	x2, sp, #8
	mov	x0, x19
	mov	x3, x20
	bl	_qat_alg_aead_init_dec_session
	cbz	x0, LBB0_8
LBB0_7:
	add	x0, sp, #8
	mov	w1, #4
	bl	_memzero_explicit
Lloh5:
	adrp	x8, _EFAULT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_3
LBB0_8:
	add	x0, sp, #8
	mov	w1, #4
	bl	_memzero_explicit
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_CRYPTO_TFM_RES_BAD_KEY_LEN,4,2 ; @CRYPTO_TFM_RES_BAD_KEY_LEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_qat_alg_aead_init_sessions
.subsections_via_symbols
