	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_ssl_ctx_pair            ## -- Begin function create_ssl_ctx_pair
	.p2align	4, 0x90
_create_ssl_ctx_pair:                   ## @create_ssl_ctx_pair
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r13d
	movl	%edx, %r12d
	movq	%rsi, %r15
	callq	_SSL_CTX_new
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.5:
	movq	%r15, %rdi
	callq	_SSL_CTX_new
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_2
## %bb.6:
	testl	%r12d, %r12d
	jg	LBB0_7
	jmp	LBB0_8
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_2
LBB0_4:
	xorl	%r15d, %r15d
	testl	%r12d, %r12d
	jle	LBB0_8
LBB0_7:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_SSL_CTX_set_min_proto_version
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_2
LBB0_8:
	testl	%r13d, %r13d
	jle	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_SSL_CTX_set_max_proto_version
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_2
LBB0_10:
	testq	%r15, %r15
	je	LBB0_15
## %bb.11:
	testl	%r12d, %r12d
	jle	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_SSL_CTX_set_min_proto_version
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_2
LBB0_13:
	testl	%r13d, %r13d
	jle	LBB0_15
## %bb.14:
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_SSL_CTX_set_max_proto_version
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_2
LBB0_15:
	movq	16(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.16:
	movq	24(%rbp), %r12
	testq	%r12, %r12
	je	LBB0_20
## %bb.17:
	movq	_SSL_FILETYPE_PEM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_SSL_CTX_use_certificate_file
	movl	%eax, %edi
	movl	$1, %esi
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_2
## %bb.18:
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_SSL_CTX_use_PrivateKey_file
	movl	%eax, %edi
	movl	$1, %esi
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_2
## %bb.19:
	movq	%r14, %rdi
	callq	_SSL_CTX_check_private_key
	movl	%eax, %edi
	movl	$1, %esi
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_2
LBB0_20:
	movl	$1, %ebx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_SSL_CTX_set_dh_auto
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movq	%r15, (%rax)
	jmp	LBB0_22
LBB0_2:
	movq	%r14, %rdi
	callq	_SSL_CTX_free
	movq	%r15, %rdi
	callq	_SSL_CTX_free
	xorl	%ebx, %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_FILETYPE_PEM,4,2           ## @SSL_FILETYPE_PEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_ssl_ctx_pair            ; -- Begin function create_ssl_ctx_pair
	.p2align	2
_create_ssl_ctx_pair:                   ; @create_ssl_ctx_pair
	.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	x23, x7
	mov	x24, x6
	mov	x21, x5
	mov	x22, x4
	mov	x25, x3
	mov	x26, x2
	mov	x20, x1
	bl	_SSL_CTX_new
	mov	x19, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_4
; %bb.1:
	cbz	x21, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_SSL_CTX_new
	mov	x20, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_21
; %bb.3:
	cmp	w26, #1
	b.ge	LBB0_6
	b	LBB0_7
LBB0_4:
	mov	x20, #0
	b	LBB0_21
LBB0_5:
	mov	x20, #0
	cmp	w26, #1
	b.lt	LBB0_7
LBB0_6:
	mov	x0, x19
	mov	x1, x26
	bl	_SSL_CTX_set_min_proto_version
	bl	_TEST_true
	cbz	w0, LBB0_21
LBB0_7:
	cmp	w25, #1
	b.lt	LBB0_9
; %bb.8:
	mov	x0, x19
	mov	x1, x25
	bl	_SSL_CTX_set_max_proto_version
	bl	_TEST_true
	cbz	w0, LBB0_21
LBB0_9:
	cbz	x20, LBB0_14
; %bb.10:
	cmp	w26, #1
	b.lt	LBB0_12
; %bb.11:
	mov	x0, x20
	mov	x1, x26
	bl	_SSL_CTX_set_min_proto_version
	bl	_TEST_true
	cbz	w0, LBB0_21
LBB0_12:
	cmp	w25, #1
	b.lt	LBB0_14
; %bb.13:
	mov	x0, x20
	mov	x1, x25
	bl	_SSL_CTX_set_max_proto_version
	bl	_TEST_true
	cbz	w0, LBB0_21
LBB0_14:
	cbz	x24, LBB0_19
; %bb.15:
	cbz	x23, LBB0_19
; %bb.16:
Lloh0:
	adrp	x25, _SSL_FILETYPE_PEM@GOTPAGE
Lloh1:
	ldr	x25, [x25, _SSL_FILETYPE_PEM@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x0, x19
	mov	x1, x24
	bl	_SSL_CTX_use_certificate_file
	mov	w1, #1
	bl	_TEST_int_eq
	cbz	w0, LBB0_21
; %bb.17:
	ldr	w2, [x25]
	mov	x0, x19
	mov	x1, x23
	bl	_SSL_CTX_use_PrivateKey_file
	mov	w1, #1
	bl	_TEST_int_eq
	cbz	w0, LBB0_21
; %bb.18:
	mov	x0, x19
	bl	_SSL_CTX_check_private_key
	mov	w1, #1
	bl	_TEST_int_eq
	cbz	w0, LBB0_21
LBB0_19:
	mov	w23, #1
	mov	x0, x19
	mov	w1, #1
	bl	_SSL_CTX_set_dh_auto
	str	x19, [x22]
	cbz	x21, LBB0_22
; %bb.20:
	str	x20, [x21]
	mov	w23, #1
	b	LBB0_22
LBB0_21:
	mov	x0, x19
	bl	_SSL_CTX_free
	mov	x0, x20
	bl	_SSL_CTX_free
	mov	w23, #0
LBB0_22:
	mov	x0, x23
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_FILETYPE_PEM,4,2           ; @SSL_FILETYPE_PEM
.subsections_via_symbols
