	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cipher_setup_crypto
_cipher_setup_crypto:                   ## @cipher_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, %r12
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_cipher_dispose@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rdi)
	movq	_cipher_do_init@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rdi)
	movq	%r8, 8(%rdi)
	xorl	%eax, %eax
	callq	_EVP_CIPHER_CTX_new
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.2:
	xorl	%r14d, %r14d
	movq	%rax, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	callq	_EVP_EncryptInit_ex
	testl	%eax, %eax
	jne	LBB0_8
	jmp	LBB0_6
LBB0_3:
	movq	_PTLS_ERROR_NO_MEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	xorl	%r14d, %r14d
	movq	%rax, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	callq	_EVP_DecryptInit_ex
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	(%rbx), %rdi
	xorl	%esi, %esi
	callq	_EVP_CIPHER_CTX_set_padding
	jmp	LBB0_8
LBB0_6:
	movq	(%rbx), %rdi
	callq	_EVP_CIPHER_CTX_free
	movq	_PTLS_ERROR_LIBRARY@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cipher_dispose,4,2             ## @cipher_dispose
	.comm	_cipher_do_init,4,2             ## @cipher_do_init
	.comm	_PTLS_ERROR_NO_MEMORY,4,2       ## @PTLS_ERROR_NO_MEMORY
	.comm	_PTLS_ERROR_LIBRARY,4,2         ## @PTLS_ERROR_LIBRARY
	.no_dead_strip	_cipher_setup_crypto
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cipher_setup_crypto
_cipher_setup_crypto:                   ; @cipher_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
	str	x4, [x0, #8]
Lloh0:
	adrp	x8, _cipher_dispose@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cipher_dispose@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _cipher_do_init@GOTPAGE
Lloh4:
	ldr	x9, [x9, _cipher_do_init@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #16]
	bl	_EVP_CIPHER_CTX_new
	str	x0, [x19]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x1, x21
	mov	x2, #0
	mov	x3, x20
	mov	x4, #0
	cbz	w22, LBB0_5
; %bb.2:
	bl	_EVP_EncryptInit_ex
	cbz	w0, LBB0_7
; %bb.3:
	mov	w0, #0
	b	LBB0_9
LBB0_4:
Lloh6:
	adrp	x8, _PTLS_ERROR_NO_MEMORY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PTLS_ERROR_NO_MEMORY@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	bl	_EVP_DecryptInit_ex
	cbz	w0, LBB0_7
; %bb.6:
	ldr	x0, [x19]
	mov	w1, #0
	bl	_EVP_CIPHER_CTX_set_padding
	mov	w0, #0
	b	LBB0_9
LBB0_7:
	ldr	x0, [x19]
	bl	_EVP_CIPHER_CTX_free
Lloh8:
	adrp	x8, _PTLS_ERROR_LIBRARY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PTLS_ERROR_LIBRARY@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
LBB0_9:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_cipher_dispose,4,2             ; @cipher_dispose
	.comm	_cipher_do_init,4,2             ; @cipher_do_init
	.comm	_PTLS_ERROR_NO_MEMORY,4,2       ; @PTLS_ERROR_NO_MEMORY
	.comm	_PTLS_ERROR_LIBRARY,4,2         ; @PTLS_ERROR_LIBRARY
	.no_dead_strip	_cipher_setup_crypto
.subsections_via_symbols
