	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aead_setup_crypto
_aead_setup_crypto:                     ## @aead_setup_crypto
	.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	%rcx, %r15
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	_aead_dispose_crypto@GOTPCREL(%rip), %rax
	movq	%rax, 40(%rdi)
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movq	_aead_do_encrypt_init@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movq	_aead_do_encrypt_update@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	_aead_do_encrypt_final@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movq	$0, 32(%rbx)
	movq	_aead_do_decrypt@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_3:
	movq	%rax, 8(%rbx)
	movq	$0, 48(%rbx)
	xorl	%eax, %eax
	callq	_EVP_CIPHER_CTX_new
	movq	%rax, 48(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.6:
	callq	_EVP_EncryptInit_ex
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_10
LBB0_4:
	movq	_PTLS_ERROR_NO_MEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_7:
	callq	_EVP_DecryptInit_ex
	testl	%eax, %eax
	je	LBB0_10
LBB0_9:
	movq	(%rbx), %rax
	movq	48(%rbx), %rdi
	movq	_EVP_CTRL_GCM_SET_IVLEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %edx
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
	callq	_EVP_CIPHER_CTX_ctrl
	testl	%eax, %eax
	jne	LBB0_12
LBB0_10:
	movq	_PTLS_ERROR_LIBRARY@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_aead_dispose_crypto
LBB0_12:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_aead_do_encrypt_init,8,3       ## @aead_do_encrypt_init
	.comm	_aead_do_encrypt_update,8,3     ## @aead_do_encrypt_update
	.comm	_aead_do_encrypt_final,8,3      ## @aead_do_encrypt_final
	.comm	_aead_do_decrypt,8,3            ## @aead_do_decrypt
	.comm	_PTLS_ERROR_NO_MEMORY,4,2       ## @PTLS_ERROR_NO_MEMORY
	.comm	_PTLS_ERROR_LIBRARY,4,2         ## @PTLS_ERROR_LIBRARY
	.comm	_EVP_CTRL_GCM_SET_IVLEN,4,2     ## @EVP_CTRL_GCM_SET_IVLEN
	.no_dead_strip	_aead_setup_crypto
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aead_setup_crypto
_aead_setup_crypto:                     ; @aead_setup_crypto
	.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	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _aead_dispose_crypto@GOTPAGE
Lloh1:
	ldr	x8, [x8, _aead_dispose_crypto@GOTPAGEOFF]
	str	x8, [x0, #40]
	cbz	w1, LBB0_2
; %bb.1:
	mov	x8, #0
Lloh2:
	adrp	x9, _aead_do_encrypt_init@GOTPAGE
Lloh3:
	ldr	x9, [x9, _aead_do_encrypt_init@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	str	x9, [x19, #32]
Lloh5:
	adrp	x9, _aead_do_encrypt_update@GOTPAGE
Lloh6:
	ldr	x9, [x9, _aead_do_encrypt_update@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	adrp	x10, _aead_do_encrypt_final@GOTPAGE
Lloh9:
	ldr	x10, [x10, _aead_do_encrypt_final@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	stp	x10, x9, [x19, #16]
	b	LBB0_3
LBB0_2:
	stp	xzr, xzr, [x19, #16]
	str	xzr, [x19, #32]
Lloh11:
	adrp	x8, _aead_do_decrypt@GOTPAGE
Lloh12:
	ldr	x8, [x8, _aead_do_decrypt@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
LBB0_3:
	str	x8, [x19, #8]
	str	xzr, [x19, #48]
	bl	_EVP_CIPHER_CTX_new
	str	x0, [x19, #48]
	cbz	x0, LBB0_6
; %bb.4:
	mov	x1, x21
	mov	x2, #0
	mov	x3, x20
	mov	x4, #0
	cbz	w22, LBB0_7
; %bb.5:
	bl	_EVP_EncryptInit_ex
	cbnz	w0, LBB0_8
	b	LBB0_10
LBB0_6:
Lloh14:
	adrp	x8, _PTLS_ERROR_NO_MEMORY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PTLS_ERROR_NO_MEMORY@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
	bl	_EVP_DecryptInit_ex
	cbz	w0, LBB0_10
LBB0_8:
	ldr	x0, [x19, #48]
Lloh16:
	adrp	x8, _EVP_CTRL_GCM_SET_IVLEN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EVP_CTRL_GCM_SET_IVLEN@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	x8, [x19]
	ldr	w2, [x8]
	mov	x3, #0
	bl	_EVP_CIPHER_CTX_ctrl
	cbz	w0, LBB0_10
; %bb.9:
	mov	w20, #0
	b	LBB0_12
LBB0_10:
Lloh19:
	adrp	x8, _PTLS_ERROR_LIBRARY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PTLS_ERROR_LIBRARY@GOTPAGEOFF]
LBB0_11:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_aead_dispose_crypto
LBB0_12:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_aead_do_encrypt_init,8,3       ; @aead_do_encrypt_init
	.comm	_aead_do_encrypt_update,8,3     ; @aead_do_encrypt_update
	.comm	_aead_do_encrypt_final,8,3      ; @aead_do_encrypt_final
	.comm	_aead_do_decrypt,8,3            ; @aead_do_decrypt
	.comm	_PTLS_ERROR_NO_MEMORY,4,2       ; @PTLS_ERROR_NO_MEMORY
	.comm	_PTLS_ERROR_LIBRARY,4,2         ; @PTLS_ERROR_LIBRARY
	.comm	_EVP_CTRL_GCM_SET_IVLEN,4,2     ; @EVP_CTRL_GCM_SET_IVLEN
	.no_dead_strip	_aead_setup_crypto
.subsections_via_symbols
