	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function esp_init_aead
_esp_init_aead:                         ## @esp_init_aead
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	8(%rdi), %r12
	movl	12(%rax), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_crypto_alloc_aead
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%r15, (%r12)
	movq	(%r14), %rax
	movl	(%rax), %edx
	movl	8(%rax), %esi
	leal	7(%rdx), %eax
	addl	$14, %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$3, %edx
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_crypto_aead_setkey
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
LBB0_2:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	(%r14), %rax
	movl	4(%rax), %eax
	leal	7(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	sarl	$3, %esi
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_crypto_aead_setauthsize        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_esp_init_aead
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function esp_init_aead
_esp_init_aead:                         ; @esp_init_aead
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldp	x8, x22, [x0]
	ldr	w0, [x8, #12]
	mov	w1, #0
	mov	w2, #0
	bl	_crypto_alloc_aead
	mov	x20, x0
	bl	_PTR_ERR
	mov	x21, x0
	mov	x0, x20
	bl	_IS_ERR
	cbnz	x0, LBB0_2
; %bb.1:
	str	x20, [x22]
	ldr	x8, [x19]
	ldr	w1, [x8, #8]
	ldr	w8, [x8]
	add	w9, w8, #7
	add	w8, w8, #14
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w2, w8, #3
	mov	x0, x20
	bl	_crypto_aead_setkey
	mov	x21, x0
	cbz	w0, LBB0_3
LBB0_2:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x8, [x19]
	ldr	w8, [x8, #4]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w1, w8, #3
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_crypto_aead_setauthsize
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_esp_init_aead
.subsections_via_symbols
