	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aead_setup
_aead_setup:                            ## @aead_setup
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_crypto_aead_ctx
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_crypto_aead_alg
	movl	(%rax), %r13d
	cmpl	$0, 16(%rbx)
	jne	LBB0_3
## %bb.1:
	cmpl	$0, 8(%rbx)
	je	LBB0_2
LBB0_3:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_init_completion
	leaq	4(%rbx), %r15
	movq	%r15, %rdi
	callq	_atomic_inc
	leaq	28(%rbx), %rdi
	callq	_reset_sa_dir
	movq	%rbx, %rdi
	addq	$24, %rdi
	callq	_reset_sa_dir
	movl	16(%rbx), %ecx
	movl	20(%rbx), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_setup_cipher
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	movl	16(%rbx), %ecx
	movl	20(%rbx), %edx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_setup_cipher
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:
	movl	8(%rbx), %r8d
	movl	12(%rbx), %ecx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %r9d
	callq	_setup_auth
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.6:
	movl	8(%rbx), %r8d
	movl	12(%rbx), %ecx
	movq	%r14, %rdi
	movl	$1, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %r9d
	callq	_setup_auth
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_7
LBB0_11:
	movq	%r15, %rdi
	callq	_atomic_dec_and_test
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	callq	_wait_for_completion
	jmp	LBB0_13
LBB0_2:
	xorl	%r12d, %r12d
LBB0_13:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	(%r14), %eax
	movq	_CRYPTO_TFM_RES_WEAK_KEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r12d, %r12d
	testl	%eax, %ecx
	je	LBB0_11
## %bb.8:
	movq	_CRYPTO_TFM_REQ_WEAK_KEY@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_10
## %bb.9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_11
LBB0_10:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%r14)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_CRYPTO_TFM_RES_WEAK_KEY,4,2    ## @CRYPTO_TFM_RES_WEAK_KEY
	.comm	_CRYPTO_TFM_REQ_WEAK_KEY,4,2    ## @CRYPTO_TFM_REQ_WEAK_KEY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_aead_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aead_setup
_aead_setup:                            ; @aead_setup
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x1
	mov	x20, x0
	bl	_crypto_aead_ctx
	mov	x19, x0
	mov	x0, x20
	bl	_crypto_aead_alg
	ldr	w23, [x0]
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_8
LBB0_2:
	mov	x0, x19
	bl	_init_completion
	add	x21, x19, #4
	mov	x0, x21
	bl	_atomic_inc
	add	x0, x19, #28
	bl	_reset_sa_dir
	add	x0, x19, #24
	bl	_reset_sa_dir
	ldp	w3, w2, [x19, #16]
	mov	x0, x20
	mov	w1, #0
	bl	_setup_cipher
	mov	x24, x0
	cbnz	w0, LBB0_6
; %bb.3:
	ldp	w3, w2, [x19, #16]
	mov	x0, x20
	mov	w1, #1
	bl	_setup_cipher
	mov	x24, x0
	cbnz	w0, LBB0_6
; %bb.4:
	ldp	w4, w3, [x19, #8]
	mov	x0, x20
	mov	w1, #0
	mov	x2, x22
	mov	x5, x23
	bl	_setup_auth
	mov	x24, x0
	cbnz	w0, LBB0_6
; %bb.5:
	ldp	w4, w3, [x19, #8]
	mov	x0, x20
	mov	w1, #1
	mov	x2, x22
	mov	x5, x23
	bl	_setup_auth
	mov	x24, x0
	cbz	w0, LBB0_10
LBB0_6:
	mov	x0, x21
	bl	_atomic_dec_and_test
	cbnz	w0, LBB0_9
; %bb.7:
	mov	x0, x19
	bl	_wait_for_completion
	b	LBB0_9
LBB0_8:
	mov	w24, #0
LBB0_9:
	mov	x0, x24
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _CRYPTO_TFM_RES_WEAK_KEY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CRYPTO_TFM_RES_WEAK_KEY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.11:
Lloh3:
	adrp	x10, _CRYPTO_TFM_REQ_WEAK_KEY@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CRYPTO_TFM_REQ_WEAK_KEY@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_14
; %bb.12:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_6
LBB0_13:
	mov	w24, #0
	b	LBB0_6
LBB0_14:
	mov	w24, #0
	bic	w8, w8, w9
	str	w8, [x20]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CRYPTO_TFM_RES_WEAK_KEY,4,2    ; @CRYPTO_TFM_RES_WEAK_KEY
	.comm	_CRYPTO_TFM_REQ_WEAK_KEY,4,2    ; @CRYPTO_TFM_REQ_WEAK_KEY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_aead_setup
.subsections_via_symbols
