	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	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
	movq	_USE_MEMCACHED@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_libmemcached_receiver@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %r8
	movl	$11211, %esi                    ## imm = 0x2BCB
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_h2o_memcached_create_context
	movl	%eax, %edi
	movl	$86400, %esi                    ## imm = 0x15180
	callq	_h2o_accept_setup_memcached_ssl_resumption
	movl	(%rbx), %edi
	callq	_h2o_socket_ssl_async_resumption_setup_ctx
LBB0_2:
	movl	(%rbx), %edi
	movq	%r12, %rsi
	callq	_SSL_CTX_use_certificate_chain_file
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.4:
	movl	(%rbx), %edi
	movq	_SSL_FILETYPE_PEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_SSL_CTX_use_PrivateKey_file
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.6:
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_SSL_CTX_set_cipher_list
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$1, %ecx
	je	LBB0_9
## %bb.7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdx
	jmp	LBB0_8
LBB0_3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdx
	jmp	LBB0_8
LBB0_5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdx
LBB0_8:
	callq	_fprintf
	movl	$-1, %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_accept_ctx,16,3                ## @accept_ctx
	.comm	_SSL_OP_NO_SSLv2,4,2            ## @SSL_OP_NO_SSLv2
	.comm	_USE_MEMCACHED,8,3              ## @USE_MEMCACHED
	.comm	_libmemcached_receiver,4,2      ## @libmemcached_receiver
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"127.0.0.1"

L_.str.1:                               ## @.str.1
	.asciz	"h2o:ssl-resumption:"

	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"an error occurred while trying to load server certificate file:%s\n"

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

L_.str.4:                               ## @.str.4
	.asciz	"ciphers could not be set: %s\n"

	.comm	_h2o_http2_alpn_protocols,4,2   ## @h2o_http2_alpn_protocols
	.comm	_h2o_http2_npn_protocols,4,2    ## @h2o_http2_npn_protocols
	.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, x2
	mov	x20, x1
	mov	x21, 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	x22, _accept_ctx@GOTPAGE
Lloh1:
	ldr	x22, [x22, _accept_ctx@GOTPAGEOFF]
	str	w0, [x22]
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
Lloh5:
	adrp	x8, _USE_MEMCACHED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _USE_MEMCACHED@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _libmemcached_receiver@GOTPAGE
Lloh9:
	ldr	x8, [x8, _libmemcached_receiver@GOTPAGEOFF]
	str	x8, [x22, #8]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
Lloh12:
	adrp	x4, l_.str.1@PAGE
Lloh13:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	w1, #11211
	mov	w2, #0
	mov	w3, #1
	bl	_h2o_memcached_create_context
	mov	w1, #20864
	movk	w1, #1, lsl #16
	bl	_h2o_accept_setup_memcached_ssl_resumption
	ldr	w0, [x22]
	bl	_h2o_socket_ssl_async_resumption_setup_ctx
LBB0_2:
	ldr	w0, [x22]
	mov	x1, x21
	bl	_SSL_CTX_use_certificate_chain_file
	cmp	w0, #1
	b.ne	LBB0_6
; %bb.3:
	ldr	w0, [x22]
Lloh14:
	adrp	x8, _SSL_FILETYPE_PEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SSL_FILETYPE_PEM@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_SSL_CTX_use_PrivateKey_file
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.4:
	ldr	w0, [x22]
	mov	x1, x19
	bl	_SSL_CTX_set_cipher_list
	cmp	w0, #1
	b.ne	LBB0_8
; %bb.5:
	mov	w0, #0
	b	LBB0_10
LBB0_6:
Lloh17:
	adrp	x8, _stderr@GOTPAGE
Lloh18:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x21
	b	LBB0_9
LBB0_7:
Lloh22:
	adrp	x8, _stderr@GOTPAGE
Lloh23:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x20
	b	LBB0_9
LBB0_8:
Lloh27:
	adrp	x8, _stderr@GOTPAGE
Lloh28:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x1, l_.str.4@PAGE
Lloh31:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x19
LBB0_9:
	bl	_fprintf
	mov	w0, #-1
LBB0_10:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_accept_ctx,16,3                ; @accept_ctx
	.comm	_SSL_OP_NO_SSLv2,4,2            ; @SSL_OP_NO_SSLv2
	.comm	_USE_MEMCACHED,8,3              ; @USE_MEMCACHED
	.comm	_libmemcached_receiver,4,2      ; @libmemcached_receiver
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"127.0.0.1"

l_.str.1:                               ; @.str.1
	.asciz	"h2o:ssl-resumption:"

	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"an error occurred while trying to load server certificate file:%s\n"

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

l_.str.4:                               ; @.str.4
	.asciz	"ciphers could not be set: %s\n"

	.comm	_h2o_http2_alpn_protocols,4,2   ; @h2o_http2_alpn_protocols
	.comm	_h2o_http2_npn_protocols,4,2    ; @h2o_http2_npn_protocols
	.no_dead_strip	_setup_ssl
.subsections_via_symbols
