	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SSL_set_SSL_CTX                ## -- Begin function SSL_set_SSL_CTX
	.p2align	4, 0x90
_SSL_set_SSL_CTX:                       ## @SSL_set_SSL_CTX
	.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, %r15
	cmpq	%rsi, 8(%rdi)
	je	LBB0_14
## %bb.1:
	movq	%rdi, %r14
	testq	%r15, %r15
	jne	LBB0_3
## %bb.2:
	movq	32(%r14), %r15
LBB0_3:
	movl	8(%r15), %edi
	callq	_ssl_cert_dup
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:
	movq	%rax, %rbx
	movq	24(%r14), %rsi
	movq	%rax, %rdi
	callq	_custom_exts_copy_flags
	testl	%eax, %eax
	je	LBB0_12
## %bb.5:
	movq	24(%r14), %rdi
	callq	_ssl_cert_free
	movq	%rbx, 24(%r14)
	xorl	%edi, %edi
	cmpl	$5, (%r14)
	setb	%dil
	callq	_ossl_assert
	testl	%eax, %eax
	je	LBB0_13
## %bb.6:
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movl	(%r14), %edx
	cmpl	(%rax), %edx
	jne	LBB0_10
## %bb.8:
	movl	16(%r14), %edi
	movl	4(%rax), %esi
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	leaq	16(%r14), %rdi
	movl	(%r15), %eax
	movl	%eax, (%r14)
	leaq	4(%r15), %rsi
	movl	$4, %edx
	callq	_memcpy
LBB0_10:
	movq	%r15, %rdi
	callq	_SSL_CTX_up_ref
	movq	8(%r14), %rdi
	callq	_SSL_CTX_free
	movq	%r15, 8(%r14)
	jmp	LBB0_14
LBB0_12:
	movq	%rbx, %rdi
	callq	_ssl_cert_free
LBB0_13:
	xorl	%r15d, %r15d
LBB0_14:
	movq	%r15, %rax
	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_set_SSL_CTX                ; -- Begin function SSL_set_SSL_CTX
	.p2align	2
_SSL_set_SSL_CTX:                       ; @SSL_set_SSL_CTX
	.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	x19, x1
	ldr	x8, [x0, #8]
	cmp	x8, x1
	b.eq	LBB0_13
; %bb.1:
	mov	x20, x0
	cbnz	x19, LBB0_3
; %bb.2:
	ldr	x19, [x20, #32]
LBB0_3:
	ldr	w0, [x19, #8]
	bl	_ssl_cert_dup
	cbz	x0, LBB0_12
; %bb.4:
	mov	x21, x0
	ldr	x1, [x20, #24]
	bl	_custom_exts_copy_flags
	cbz	w0, LBB0_11
; %bb.5:
	ldr	x0, [x20, #24]
	bl	_ssl_cert_free
	str	x21, [x20, #24]
	ldr	w8, [x20]
	cmp	w8, #5
	cset	w0, lo
	bl	_ossl_assert
	cbz	w0, LBB0_12
; %bb.6:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_10
; %bb.7:
	ldr	w2, [x20]
	ldr	w9, [x8]
	cmp	w2, w9
	b.ne	LBB0_10
; %bb.8:
	mov	x21, x20
	ldr	w0, [x21, #16]!
	ldr	w1, [x8, #4]
	bl	_memcmp
	cbnz	x0, LBB0_10
; %bb.9:
	mov	x1, x19
	ldr	w8, [x1], #4
	str	w8, [x20]
	mov	x0, x21
	mov	w2, #4
	bl	_memcpy
LBB0_10:
	mov	x0, x19
	bl	_SSL_CTX_up_ref
	ldr	x0, [x20, #8]
	bl	_SSL_CTX_free
	str	x19, [x20, #8]
	b	LBB0_13
LBB0_11:
	mov	x0, x21
	bl	_ssl_cert_free
LBB0_12:
	mov	x19, #0
LBB0_13:
	mov	x0, x19
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
