	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_ssl_ctx
_update_ssl_ctx:                        ## @update_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	setne	%dil
	callq	_assert
	testq	%r15, %r15
	jne	LBB0_2
## %bb.1:
	movq	(%rbx), %rdi
	callq	_SSL_CTX_get_cert_store
	movq	%rax, %r15
LBB0_2:
	movq	%r15, %rdi
	callq	_X509_STORE_up_ref
	cmpl	$-1, %r14d
	je	LBB0_3
## %bb.4:
	testq	%r12, %r12
	je	LBB0_5
LBB0_8:
	movq	(%r12), %r12
	jmp	LBB0_9
LBB0_3:
	movq	(%rbx), %rdi
	callq	_SSL_CTX_get_verify_mode
	movl	%eax, %r14d
	testq	%r12, %r12
	jne	LBB0_8
LBB0_5:
	movq	(%rbx), %rdi
	callq	_h2o_socket_ssl_get_session_cache
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_h2o_cache_get_capacity
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_h2o_cache_get_duration
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_create_ssl_session_cache
	movq	%rax, %r12
	jmp	LBB0_9
LBB0_6:
	xorl	%r12d, %r12d
LBB0_9:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	callq	_SSL_CTX_free
LBB0_11:
	xorl	%eax, %eax
	callq	_create_ssl_ctx
	movq	%rax, (%rbx)
	movq	_H2O_SESSID_CTX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_H2O_SESSID_CTX_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	callq	_SSL_CTX_set_session_id_context
	movq	(%rbx), %rdi
	movq	%r15, %rsi
	callq	_SSL_CTX_set_cert_store
	movq	(%rbx), %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_SSL_CTX_set_verify
	testq	%r12, %r12
	je	LBB0_12
## %bb.13:
	movq	(%rbx), %rdi
	movq	%r12, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_h2o_socket_ssl_set_session_cache ## TAILCALL
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_H2O_SESSID_CTX,4,2             ## @H2O_SESSID_CTX
	.comm	_H2O_SESSID_CTX_LEN,4,2         ## @H2O_SESSID_CTX_LEN
	.no_dead_strip	_update_ssl_ctx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_ssl_ctx
_update_ssl_ctx:                        ; @update_ssl_ctx
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	cbnz	x21, LBB0_2
; %bb.1:
	ldr	x0, [x19]
	bl	_SSL_CTX_get_cert_store
	mov	x21, x0
LBB0_2:
	mov	x0, x21
	bl	_X509_STORE_up_ref
	cmn	w20, #1
	b.eq	LBB0_5
; %bb.3:
	cbz	x22, LBB0_6
LBB0_4:
	ldr	x22, [x22]
	b	LBB0_8
LBB0_5:
	ldr	x0, [x19]
	bl	_SSL_CTX_get_verify_mode
	mov	x20, x0
	cbnz	x22, LBB0_4
LBB0_6:
	ldr	x0, [x19]
	bl	_h2o_socket_ssl_get_session_cache
	mov	x22, x0
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x22
	bl	_h2o_cache_get_capacity
	mov	x23, x0
	mov	x0, x22
	bl	_h2o_cache_get_duration
	mov	x1, x0
	mov	x0, x23
	bl	_create_ssl_session_cache
	mov	x22, x0
LBB0_8:
	ldr	x0, [x19]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_SSL_CTX_free
LBB0_10:
	bl	_create_ssl_ctx
	str	x0, [x19]
Lloh0:
	adrp	x8, _H2O_SESSID_CTX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _H2O_SESSID_CTX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _H2O_SESSID_CTX_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _H2O_SESSID_CTX_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_SSL_CTX_set_session_id_context
	ldr	x0, [x19]
	mov	x1, x21
	bl	_SSL_CTX_set_cert_store
	ldr	x0, [x19]
	mov	x1, x20
	mov	x2, #0
	bl	_SSL_CTX_set_verify
	cbz	x22, LBB0_12
; %bb.11:
	ldr	x0, [x19]
	mov	x1, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_h2o_socket_ssl_set_session_cache
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_H2O_SESSID_CTX,4,2             ; @H2O_SESSID_CTX
	.comm	_H2O_SESSID_CTX_LEN,4,2         ; @H2O_SESSID_CTX_LEN
	.no_dead_strip	_update_ssl_ctx
.subsections_via_symbols
