	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ssl_session_dup
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ssl_session_dup
	.p2align	4, 0x90
_ssl_session_dup:                       ## @ssl_session_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	%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
	movl	$144, %edi
	callq	_OPENSSL_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_25
## %bb.1:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$144, %edx
	callq	_memcpy
	movq	$0, 8(%rbx)
	leaq	80(%rbx), %r12
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movups	%xmm0, 64(%rbx)
	movups	%xmm0, 88(%rbx)
	movups	%xmm0, 104(%rbx)
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	xorps	%xmm0, %xmm0
	movups	%xmm0, 128(%rbx)
	movl	$1, (%rbx)
	xorl	%eax, %eax
	callq	_CRYPTO_THREAD_lock_new
	movq	%rax, 120(%rbx)
	testq	%rax, %rax
	je	LBB0_25
## %bb.2:
	movq	_CRYPTO_EX_INDEX_SSL_SESSION@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_CRYPTO_new_ex_data
	testl	%eax, %eax
	je	LBB0_25
## %bb.3:
	movq	112(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.4:
	callq	_X509_up_ref
	testl	%eax, %eax
	je	LBB0_25
## %bb.5:
	movq	112(%r14), %rax
	movq	%rax, 112(%rbx)
LBB0_6:
	movq	104(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_X509_chain_up_ref
	movq	%rax, 104(%rbx)
	testq	%rax, %rax
	je	LBB0_25
LBB0_8:
	movq	96(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_OPENSSL_strdup
	movq	%rax, 96(%rbx)
	testq	%rax, %rax
	je	LBB0_25
LBB0_10:
	movq	88(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	leaq	88(%rbx), %r13
	callq	_OPENSSL_strdup
	movq	%rax, (%r13)
	movq	_CRYPTO_EX_INDEX_SSL_SESSION@GOTPCREL(%rip), %r13
	testq	%rax, %rax
	je	LBB0_25
LBB0_12:
	movl	(%r13), %edi
	leaq	80(%r14), %rdx
	movq	%r12, %rsi
	callq	_CRYPTO_dup_ex_data
	testl	%eax, %eax
	je	LBB0_25
## %bb.13:
	movq	72(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	callq	_OPENSSL_strdup
	movq	%rax, 72(%rbx)
	testq	%rax, %rax
	je	LBB0_25
LBB0_15:
	testl	%r15d, %r15d
	je	LBB0_18
## %bb.16:
	movq	64(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:
	leaq	64(%rbx), %r15
	movq	48(%r14), %rsi
	callq	_OPENSSL_memdup
	movq	%rax, (%r15)
	testq	%rax, %rax
	jne	LBB0_19
	jmp	LBB0_25
LBB0_18:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%rbx)
LBB0_19:
	movq	32(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.20:
	movq	40(%r14), %rsi
	callq	_OPENSSL_memdup
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_25
LBB0_21:
	movq	24(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.22:
	movq	%rbx, %r15
	addq	$24, %r15
	callq	_OPENSSL_strdup
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_25
LBB0_23:
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.24:
	movq	16(%r14), %rsi
	callq	_OPENSSL_memdup
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_26
LBB0_25:
	movq	_SSL_F_SSL_SESSION_DUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SSLerr
	movq	%rbx, %rdi
	callq	_SSL_SESSION_free
	xorl	%ebx, %ebx
LBB0_26:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CRYPTO_EX_INDEX_SSL_SESSION,4,2 ## @CRYPTO_EX_INDEX_SSL_SESSION
	.comm	_SSL_F_SSL_SESSION_DUP,4,2      ## @SSL_F_SSL_SESSION_DUP
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl_session_dup                ; -- Begin function ssl_session_dup
	.p2align	2
_ssl_session_dup:                       ; @ssl_session_dup
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x20, x0
	mov	w0, #144
	bl	_OPENSSL_malloc
	mov	x19, x0
	cbz	x0, LBB0_25
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #144
	bl	_memcpy
	movi.2d	v0, #0000000000000000
	mov	x25, x19
	str	q0, [x25, #88]!
	mov	x24, x19
	str	xzr, [x24, #64]!
	mov	x23, x19
	str	xzr, [x23, #24]!
	str	xzr, [x19, #8]
	add	x22, x19, #80
	str	xzr, [x19, #32]
	str	xzr, [x19, #72]
	stur	q0, [x19, #104]
	mov	x0, x22
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	stp	xzr, xzr, [x19, #128]
	mov	w8, #1
	str	w8, [x19]
	bl	_CRYPTO_THREAD_lock_new
	str	x0, [x19, #120]
	cbz	x0, LBB0_25
; %bb.2:
Lloh0:
	adrp	x26, _CRYPTO_EX_INDEX_SSL_SESSION@GOTPAGE
Lloh1:
	ldr	x26, [x26, _CRYPTO_EX_INDEX_SSL_SESSION@GOTPAGEOFF]
	ldr	w0, [x26]
	mov	x1, x19
	mov	x2, x22
	bl	_CRYPTO_new_ex_data
	cbz	w0, LBB0_25
; %bb.3:
	ldr	x0, [x20, #112]
	cbz	x0, LBB0_6
; %bb.4:
	bl	_X509_up_ref
	cbz	w0, LBB0_25
; %bb.5:
	ldr	x8, [x20, #112]
	str	x8, [x19, #112]
LBB0_6:
	ldr	x0, [x20, #104]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_X509_chain_up_ref
	str	x0, [x19, #104]
	cbz	x0, LBB0_25
LBB0_8:
	ldr	x0, [x20, #96]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_OPENSSL_strdup
	str	x0, [x19, #96]
	cbz	x0, LBB0_25
LBB0_10:
	ldr	x0, [x20, #88]
	cbz	x0, LBB0_12
; %bb.11:
	bl	_OPENSSL_strdup
	str	x0, [x25]
	cbz	x0, LBB0_25
LBB0_12:
	ldr	w0, [x26]
	add	x2, x20, #80
	mov	x1, x22
	bl	_CRYPTO_dup_ex_data
	cbz	w0, LBB0_25
; %bb.13:
	ldr	x0, [x20, #72]
	cbz	x0, LBB0_15
; %bb.14:
	bl	_OPENSSL_strdup
	str	x0, [x19, #72]
	cbz	x0, LBB0_25
LBB0_15:
	cbz	w21, LBB0_18
; %bb.16:
	ldr	x0, [x20, #64]
	cbz	x0, LBB0_18
; %bb.17:
	ldr	x1, [x20, #48]
	bl	_OPENSSL_memdup
	str	x0, [x24]
	cbnz	x0, LBB0_19
	b	LBB0_25
LBB0_18:
	stp	xzr, xzr, [x19, #48]
LBB0_19:
	ldr	x0, [x20, #32]
	cbz	x0, LBB0_21
; %bb.20:
	ldr	x1, [x20, #40]
	bl	_OPENSSL_memdup
	str	x0, [x19, #32]
	cbz	x0, LBB0_25
LBB0_21:
	ldr	x0, [x20, #24]
	cbz	x0, LBB0_23
; %bb.22:
	bl	_OPENSSL_strdup
	str	x0, [x23]
	cbz	x0, LBB0_25
LBB0_23:
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_26
; %bb.24:
	ldr	x1, [x20, #16]
	bl	_OPENSSL_memdup
	str	x0, [x19, #8]
	cbnz	x0, LBB0_26
LBB0_25:
Lloh2:
	adrp	x8, _SSL_F_SSL_SESSION_DUP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SSL_F_SSL_SESSION_DUP@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_SSLerr
	mov	x0, x19
	bl	_SSL_SESSION_free
	mov	x19, #0
LBB0_26:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CRYPTO_EX_INDEX_SSL_SESSION,4,2 ; @CRYPTO_EX_INDEX_SSL_SESSION
	.comm	_SSL_F_SSL_SESSION_DUP,4,2      ; @SSL_F_SSL_SESSION_DUP
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
.subsections_via_symbols
