	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function virtio_crypto_alg_ablkcipher_init_sessions
_virtio_crypto_alg_ablkcipher_init_sessions: ## @virtio_crypto_alg_ablkcipher_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	cmpl	%edx, (%rax)
	jae	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_2
LBB0_3:
	movl	%edx, %r12d
	movq	%rsi, %r15
	leaq	-36(%rbp), %rsi
	movl	%edx, %edi
	callq	_virtio_crypto_alg_validate_key
	testq	%rax, %rax
	je	LBB0_4
LBB0_2:
	movl	(%r14), %edi
	movq	_CRYPTO_TFM_RES_BAD_KEY_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_crypto_tfm_set_flags
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	-36(%rbp), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	movl	$1, %r8d
	callq	_virtio_crypto_alg_ablkcipher_init_session
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movl	-36(%rbp), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	xorl	%r8d, %r8d
	callq	_virtio_crypto_alg_ablkcipher_init_session
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r15d
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_virtio_crypto_alg_ablkcipher_close_session
	movl	%r15d, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"virtio_crypto: the key is too long\n"

	.comm	_CRYPTO_TFM_RES_BAD_KEY_LEN,4,2 ## @CRYPTO_TFM_RES_BAD_KEY_LEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_virtio_crypto_alg_ablkcipher_init_sessions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function virtio_crypto_alg_ablkcipher_init_sessions
_virtio_crypto_alg_ablkcipher_init_sessions: ; @virtio_crypto_alg_ablkcipher_init_sessions
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	cmp	w8, w2
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_3
LBB0_2:
	mov	x20, x2
	mov	x21, x1
	add	x1, sp, #12
	mov	x0, x2
	bl	_virtio_crypto_alg_validate_key
	cbz	x0, LBB0_5
LBB0_3:
	ldr	w0, [x19]
Lloh2:
	adrp	x8, _CRYPTO_TFM_RES_BAD_KEY_LEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CRYPTO_TFM_RES_BAD_KEY_LEN@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_crypto_tfm_set_flags
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_4:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
	ldr	w1, [sp, #12]
	mov	x0, x19
	mov	x2, x21
	mov	x3, x20
	mov	w4, #1
	bl	_virtio_crypto_alg_ablkcipher_init_session
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.6:
	ldr	w1, [sp, #12]
	mov	x0, x19
	mov	x2, x21
	mov	x3, x20
	mov	w4, #0
	bl	_virtio_crypto_alg_ablkcipher_init_session
	mov	x22, x0
	cbz	w0, LBB0_4
; %bb.7:
	mov	x0, x19
	mov	w1, #1
	bl	_virtio_crypto_alg_ablkcipher_close_session
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"virtio_crypto: the key is too long\n"

	.comm	_CRYPTO_TFM_RES_BAD_KEY_LEN,4,2 ; @CRYPTO_TFM_RES_BAD_KEY_LEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_virtio_crypto_alg_ablkcipher_init_sessions
.subsections_via_symbols
