	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_ssl
_setup_ssl:                             ## @setup_ssl
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_SSL_load_error_strings
	xorl	%eax, %eax
	callq	_SSL_library_init
	xorl	%eax, %eax
	callq	_OpenSSL_add_all_algorithms
	xorl	%eax, %eax
	callq	_SSLv23_server_method
	movl	%eax, %edi
	callq	_SSL_CTX_new
	movq	_accept_ctx@GOTPCREL(%rip), %rbx
	movl	%eax, (%rbx)
	movq	_SSL_OP_NO_SSLv2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_SSL_CTX_set_options
	movl	(%rbx), %edi
	movq	%r12, %rsi
	callq	_SSL_CTX_use_certificate_chain_file
	cmpl	$1, %eax
	jne	LBB0_1
## %bb.2:
	movl	(%rbx), %edi
	movq	_SSL_FILETYPE_PEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_SSL_CTX_use_PrivateKey_file
	cmpl	$1, %eax
	je	LBB0_5
## %bb.3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	jmp	LBB0_4
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
LBB0_4:
	callq	_fprintf
	movl	$-1, %r15d
LBB0_5:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_accept_ctx,4,2                 ## @accept_ctx
	.comm	_SSL_OP_NO_SSLv2,4,2            ## @SSL_OP_NO_SSLv2
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"an error occurred while trying to load server certificate file:%s\n"

	.comm	_SSL_FILETYPE_PEM,4,2           ## @SSL_FILETYPE_PEM
L_.str.1:                               ## @.str.1
	.asciz	"an error occurred while trying to load private key file:%s\n"

	.no_dead_strip	_setup_ssl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_ssl
_setup_ssl:                             ; @setup_ssl
	.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
	mov	x20, x0
	bl	_SSL_load_error_strings
	bl	_SSL_library_init
	bl	_OpenSSL_add_all_algorithms
	bl	_SSLv23_server_method
	bl	_SSL_CTX_new
Lloh0:
	adrp	x21, _accept_ctx@GOTPAGE
Lloh1:
	ldr	x21, [x21, _accept_ctx@GOTPAGEOFF]
	str	w0, [x21]
Lloh2:
	adrp	x8, _SSL_OP_NO_SSLv2@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SSL_OP_NO_SSLv2@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_SSL_CTX_set_options
	ldr	w0, [x21]
	mov	x1, x20
	bl	_SSL_CTX_use_certificate_chain_file
	cmp	w0, #1
	b.ne	LBB0_3
; %bb.1:
	ldr	w0, [x21]
Lloh5:
	adrp	x8, _SSL_FILETYPE_PEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SSL_FILETYPE_PEM@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_SSL_CTX_use_PrivateKey_file
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_6
LBB0_3:
Lloh8:
	adrp	x8, _stderr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	b	LBB0_5
LBB0_4:
Lloh13:
	adrp	x8, _stderr@GOTPAGE
Lloh14:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
LBB0_5:
	bl	_fprintf
	mov	w0, #-1
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_accept_ctx,4,2                 ; @accept_ctx
	.comm	_SSL_OP_NO_SSLv2,4,2            ; @SSL_OP_NO_SSLv2
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"an error occurred while trying to load server certificate file:%s\n"

	.comm	_SSL_FILETYPE_PEM,4,2           ; @SSL_FILETYPE_PEM
l_.str.1:                               ; @.str.1
	.asciz	"an error occurred while trying to load private key file:%s\n"

	.no_dead_strip	_setup_ssl
.subsections_via_symbols
