	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SSL_copy_session_id            ## -- Begin function SSL_copy_session_id
	.p2align	4, 0x90
_SSL_copy_session_id:                   ## @SSL_copy_session_id
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_SSL_get_session
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_SSL_set_session
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	24(%rbx), %rax
	cmpq	24(%r14), %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	*8(%rax)
	movq	24(%r14), %rax
	movq	%rax, 24(%rbx)
	movq	%rbx, %rdi
	callq	*(%rax)
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movq	16(%r14), %rdi
	movl	(%rdi), %edx
	addq	$4, %rdi
	leaq	-28(%rbp), %rsi
	callq	_CRYPTO_UP_REF
	movq	16(%rbx), %rdi
	callq	_ssl_cert_free
	movq	16(%r14), %rax
	movq	%rax, 16(%rbx)
	movl	(%r14), %edx
	movl	8(%r14), %esi
	movq	%rbx, %rdi
	callq	_SSL_set_session_id_context
	xorl	%r15d, %r15d
	testl	%eax, %eax
	setne	%r15b
LBB0_4:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SSL_copy_session_id            ; -- Begin function SSL_copy_session_id
	.p2align	2
_SSL_copy_session_id:                   ; @SSL_copy_session_id
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_SSL_get_session
	mov	x1, x0
	mov	x0, x19
	bl	_SSL_set_session
	cbz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x19, #24]
	ldr	x9, [x20, #24]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
	ldr	x8, [x20, #24]
	str	x8, [x19, #24]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_4
LBB0_3:
	ldr	x0, [x20, #16]
	ldr	w2, [x0], #4
	add	x1, sp, #12
	bl	_CRYPTO_UP_REF
	ldr	x0, [x19, #16]
	bl	_ssl_cert_free
	ldr	x8, [x20, #16]
	str	x8, [x19, #16]
	ldr	w1, [x20, #8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_SSL_set_session_id_context
	cmp	w0, #0
	cset	w0, ne
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
