	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SSL_dup                        ## -- Begin function SSL_dup
	.p2align	4, 0x90
_SSL_dup:                               ## @SSL_dup
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_SSL_in_init
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_SSL_in_before
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	callq	_SSL_get_SSL_CTX
	movl	%eax, %edi
	callq	_SSL_new
	testq	%rax, %rax
	je	LBB0_19
## %bb.4:
	movq	%rax, %r14
	cmpq	$0, 144(%rbx)
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_SSL_copy_session_id
	testl	%eax, %eax
	jne	LBB0_11
	jmp	LBB0_18
LBB0_2:
	leaq	156(%rbx), %rdi
	movl	152(%rbx), %edx
	leaq	-28(%rbp), %rsi
	callq	_CRYPTO_UP_REF
	jmp	LBB0_32
LBB0_6:
	movl	136(%rbx), %esi
	movq	%r14, %rdi
	callq	_SSL_set_ssl_method
	testl	%eax, %eax
	je	LBB0_18
## %bb.7:
	cmpq	$0, 128(%rbx)
	je	LBB0_9
## %bb.8:
	movq	128(%r14), %rdi
	callq	_ssl_cert_free
	movq	128(%rbx), %rdi
	callq	_ssl_cert_dup
	movq	%rax, 128(%r14)
	testq	%rax, %rax
	je	LBB0_18
LBB0_9:
	movl	112(%rbx), %edx
	movl	120(%rbx), %esi
	movq	%r14, %rdi
	callq	_SSL_set_session_id_context
	testl	%eax, %eax
	je	LBB0_18
LBB0_11:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ssl_dane_dup
	testl	%eax, %eax
	je	LBB0_18
## %bb.12:
	movl	104(%rbx), %eax
	movl	%eax, 104(%r14)
	movl	100(%rbx), %eax
	movl	%eax, 100(%r14)
	movl	96(%rbx), %eax
	movl	%eax, 96(%r14)
	movq	%rbx, %rdi
	callq	_SSL_get_max_cert_list
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_SSL_set_max_cert_list
	movq	%rbx, %rdi
	callq	_SSL_get_read_ahead
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_SSL_set_read_ahead
	movl	92(%rbx), %eax
	movl	%eax, 92(%r14)
	movl	88(%rbx), %eax
	movl	%eax, 88(%r14)
	movq	%rbx, %rdi
	callq	_SSL_get_verify_mode
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_SSL_get_verify_callback
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_SSL_set_verify
	movq	%rbx, %rdi
	callq	_SSL_get_verify_depth
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_SSL_set_verify_depth
	movl	84(%rbx), %eax
	movl	%eax, 84(%r14)
	movq	%rbx, %rdi
	callq	_SSL_get_info_callback
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_SSL_set_info_callback
	movq	_CRYPTO_EX_INDEX_SSL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	80(%r14), %rsi
	leaq	80(%rbx), %rdx
	callq	_CRYPTO_dup_ex_data
	testl	%eax, %eax
	je	LBB0_18
## %bb.13:
	movq	64(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	leaq	64(%r14), %rsi
	callq	_BIO_dup_state
	testl	%eax, %eax
	je	LBB0_18
LBB0_15:
	movq	72(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.16:
	cmpq	64(%rbx), %rdi
	je	LBB0_20
## %bb.17:
	leaq	72(%r14), %rsi
	callq	_BIO_dup_state
	testl	%eax, %eax
	jne	LBB0_21
	jmp	LBB0_18
LBB0_20:
	movq	64(%r14), %rdi
	callq	_BIO_up_ref
	movq	64(%r14), %rax
	movq	%rax, 72(%r14)
LBB0_21:
	movq	48(%rbx), %rax
	movq	%rax, 48(%r14)
	cmpq	$0, 56(%rbx)
	je	LBB0_25
## %bb.22:
	cmpq	$0, 48(%rbx)
	je	LBB0_24
## %bb.23:
	movq	%r14, %rdi
	callq	_SSL_set_accept_state
	jmp	LBB0_25
LBB0_24:
	movq	%r14, %rdi
	callq	_SSL_set_connect_state
LBB0_25:
	movups	28(%rbx), %xmm0
	movups	%xmm0, 28(%r14)
	movl	24(%r14), %edi
	movl	24(%rbx), %esi
	callq	_X509_VERIFY_PARAM_inherit
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_27
## %bb.26:
	callq	_sk_SSL_CIPHER_dup
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_18
LBB0_27:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_29
## %bb.28:
	callq	_sk_SSL_CIPHER_dup
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_18
LBB0_29:
	movq	%r14, %rdi
	addq	$4, %rdi
	movl	4(%rbx), %esi
	callq	_dup_ca_names
	testl	%eax, %eax
	je	LBB0_18
## %bb.30:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_dup_ca_names
	testl	%eax, %eax
	je	LBB0_18
## %bb.31:
	movq	%r14, %rbx
	jmp	LBB0_32
LBB0_18:
	movq	%r14, %rdi
	callq	_SSL_free
LBB0_19:
	xorl	%ebx, %ebx
LBB0_32:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CRYPTO_EX_INDEX_SSL,4,2        ## @CRYPTO_EX_INDEX_SSL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SSL_dup                        ; -- Begin function SSL_dup
	.p2align	2
_SSL_dup:                               ; @SSL_dup
	.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
	bl	_SSL_in_init
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_SSL_in_before
	cbz	w0, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_SSL_get_SSL_CTX
	bl	_SSL_new
	cbz	x0, LBB0_30
; %bb.3:
	mov	x20, x0
	ldr	x8, [x19, #144]
	cbz	x8, LBB0_6
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	bl	_SSL_copy_session_id
	cbnz	w0, LBB0_10
	b	LBB0_29
LBB0_5:
	add	x0, x19, #156
	ldr	w2, [x19, #152]
	add	x1, sp, #12
	bl	_CRYPTO_UP_REF
	b	LBB0_31
LBB0_6:
	ldr	w1, [x19, #136]
	mov	x0, x20
	bl	_SSL_set_ssl_method
	cbz	w0, LBB0_29
; %bb.7:
	ldr	x8, [x19, #128]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	x0, [x20, #128]
	bl	_ssl_cert_free
	ldr	x0, [x19, #128]
	bl	_ssl_cert_dup
	str	x0, [x20, #128]
	cbz	x0, LBB0_29
LBB0_9:
	ldr	w1, [x19, #120]
	ldr	w2, [x19, #112]
	mov	x0, x20
	bl	_SSL_set_session_id_context
	cbz	w0, LBB0_29
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	bl	_ssl_dane_dup
	cbz	w0, LBB0_29
; %bb.11:
	ldr	w8, [x19, #104]
	str	w8, [x20, #104]
	ldr	d0, [x19, #96]
	str	d0, [x20, #96]
	mov	x0, x19
	bl	_SSL_get_max_cert_list
	mov	x1, x0
	mov	x0, x20
	bl	_SSL_set_max_cert_list
	mov	x0, x19
	bl	_SSL_get_read_ahead
	mov	x1, x0
	mov	x0, x20
	bl	_SSL_set_read_ahead
	ldr	d0, [x19, #88]
	str	d0, [x20, #88]
	mov	x0, x19
	bl	_SSL_get_verify_mode
	mov	x21, x0
	mov	x0, x19
	bl	_SSL_get_verify_callback
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_SSL_set_verify
	mov	x0, x19
	bl	_SSL_get_verify_depth
	mov	x1, x0
	mov	x0, x20
	bl	_SSL_set_verify_depth
	ldr	w8, [x19, #84]
	str	w8, [x20, #84]
	mov	x0, x19
	bl	_SSL_get_info_callback
	mov	x1, x0
	mov	x0, x20
	bl	_SSL_set_info_callback
Lloh0:
	adrp	x8, _CRYPTO_EX_INDEX_SSL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CRYPTO_EX_INDEX_SSL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x20, #80
	add	x2, x19, #80
	bl	_CRYPTO_dup_ex_data
	cbz	w0, LBB0_29
; %bb.12:
	ldr	x0, [x19, #64]
	cbz	x0, LBB0_14
; %bb.13:
	add	x1, x20, #64
	bl	_BIO_dup_state
	cbz	w0, LBB0_29
LBB0_14:
	ldr	x0, [x19, #72]
	cbz	x0, LBB0_18
; %bb.15:
	ldr	x8, [x19, #64]
	cmp	x0, x8
	b.eq	LBB0_17
; %bb.16:
	add	x1, x20, #72
	bl	_BIO_dup_state
	cbnz	w0, LBB0_18
	b	LBB0_29
LBB0_17:
	ldr	x0, [x20, #64]
	bl	_BIO_up_ref
	ldr	x8, [x20, #64]
	str	x8, [x20, #72]
LBB0_18:
	ldp	x8, x9, [x19, #48]
	str	x8, [x20, #48]
	cbz	x9, LBB0_22
; %bb.19:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_21
; %bb.20:
	mov	x0, x20
	bl	_SSL_set_accept_state
	b	LBB0_22
LBB0_21:
	mov	x0, x20
	bl	_SSL_set_connect_state
LBB0_22:
	ldur	q0, [x19, #28]
	stur	q0, [x20, #28]
	ldr	w0, [x20, #24]
	ldr	w1, [x19, #24]
	bl	_X509_VERIFY_PARAM_inherit
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_24
; %bb.23:
	bl	_sk_SSL_CIPHER_dup
	str	x0, [x20, #16]
	cbz	x0, LBB0_29
LBB0_24:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_26
; %bb.25:
	bl	_sk_SSL_CIPHER_dup
	str	x0, [x20, #8]
	cbz	x0, LBB0_29
LBB0_26:
	add	x0, x20, #4
	ldr	w1, [x19, #4]
	bl	_dup_ca_names
	cbz	w0, LBB0_29
; %bb.27:
	ldr	w1, [x19]
	mov	x0, x20
	bl	_dup_ca_names
	cbz	w0, LBB0_29
; %bb.28:
	mov	x19, x20
	b	LBB0_31
LBB0_29:
	mov	x0, x20
	bl	_SSL_free
LBB0_30:
	mov	x19, #0
LBB0_31:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CRYPTO_EX_INDEX_SSL,4,2        ; @CRYPTO_EX_INDEX_SSL
.subsections_via_symbols
