	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function proceed_handshake
_proceed_handshake:                     ## @proceed_handshake
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	$0, 16(%rdi)
	testq	%rsi, %rsi
	je	LBB0_1
LBB0_64:
	movq	%r13, %rdi
	callq	_h2o_socket_read_stop
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_on_handshake_complete
LBB0_65:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	8(%r13), %rax
	movq	16(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
LBB0_22:
	callq	_SSL_is_server
	testq	%rax, %rax
	je	LBB0_27
## %bb.23:
	movq	8(%r13), %rax
	cmpl	$132, 12(%rax)
	jne	LBB0_27
## %bb.24:
	movq	(%rax), %rcx
	movq	(%rcx), %rdi
	cmpq	$1024, %rdi                     ## imm = 0x400
	ja	LBB0_26
## %bb.25:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_alloca
	movq	8(%r13), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %edx
	leaq	-72(%rbp), %rdi
	movl	%eax, %esi
	callq	_h2o_iovec_init
	movq	-72(%rbp), %r15
	movl	-64(%rbp), %edi
	movq	8(%r13), %rax
	movq	(%rax), %rax
	movl	8(%rax), %esi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edi killed $edi killed $rdi
	movq	%r15, %rdx
	callq	_memcpy
	jmp	LBB0_28
LBB0_2:
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-72(%rbp), %rdi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_ptls_buffer_init
	movq	8(%r13), %rax
	movq	32(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	movq	(%rax), %rax
	movl	8(%rax), %edx
	leaq	-72(%rbp), %rsi
	leaq	-80(%rbp), %rcx
	xorl	%r8d, %r8d
	callq	_ptls_handshake
	movl	%eax, %r14d
LBB0_11:
	movq	8(%r13), %rdi
	cmpq	$0, 32(%rdi)
	je	LBB0_21
## %bb.12:
	movq	-80(%rbp), %rsi
	callq	_h2o_buffer_consume
	testl	$-129, %r14d
	jne	LBB0_19
## %bb.13:
	cmpq	$0, -72(%rbp)
	je	LBB0_18
## %bb.14:
	movq	%r13, %rdi
	callq	_h2o_socket_read_stop
	movl	-64(%rbp), %esi
	movq	-72(%rbp), %rdx
	movq	%r13, %rdi
	callq	_write_ssl_bytes
	testl	%r14d, %r14d
	jne	LBB0_15
## %bb.16:
	movq	_on_handshake_complete@GOTPCREL(%rip), %rsi
	jmp	LBB0_17
LBB0_4:
	movl	40(%rax), %edi
	callq	_h2o_socket_ssl_get_picotls_context
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	movq	%rax, %rdi
	movl	$1, %esi
	callq	_ptls_new
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	callq	_h2o_fatal
LBB0_7:
	movq	%rbx, %rdi
	callq	_ptls_get_data_ptr
	movq	%r13, (%rax)
	movq	8(%r13), %rax
	movq	(%rax), %rax
	movl	8(%rax), %edx
	leaq	-72(%rbp), %rsi
	leaq	-80(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	callq	_ptls_handshake
	movl	%eax, %r14d
	testl	$-129, %eax
	jne	LBB0_10
## %bb.8:
	cmpq	$0, -72(%rbp)
	je	LBB0_10
## %bb.9:
	movq	8(%r13), %rax
	movq	%rbx, 32(%rax)
	movl	$133, 12(%rax)
	jmp	LBB0_11
LBB0_21:
	leaq	-72(%rbp), %rdi
	callq	_ptls_buffer_dispose
	movq	%r13, %rdi
	callq	_create_ossl
	movq	8(%r13), %rax
	movq	16(%rax), %rdi
	testq	%rdi, %rdi
	jne	LBB0_22
	jmp	LBB0_27
LBB0_26:
	movl	$133, 12(%rax)
LBB0_27:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
LBB0_28:
	movq	_SSL_ERROR_WANT_READ@GOTPCREL(%rip), %r14
	leaq	L_.str.3(%rip), %r12
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_ERR_clear_error
	movq	8(%r13), %rax
	movq	16(%rax), %rdi
	callq	_SSL_is_server
	movq	8(%r13), %rcx
	movq	16(%rcx), %rdi
	testq	%rax, %rax
	je	LBB0_35
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	callq	_SSL_accept
	movl	%eax, %ebx
	movq	8(%r13), %rcx
	movl	12(%rcx), %eax
	cmpl	$132, %eax
	je	LBB0_66
## %bb.31:                              ##   in Loop: Header=BB0_29 Depth=1
	cmpl	$133, %eax
	je	LBB0_36
## %bb.32:                              ##   in Loop: Header=BB0_29 Depth=1
	cmpl	$131, %eax
	je	LBB0_33
## %bb.34:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	%r12, %rdi
	callq	_h2o_fatal
	testl	%ebx, %ebx
	jne	LBB0_37
	jmp	LBB0_39
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_29 Depth=1
	callq	_SSL_connect
	movl	%eax, %ebx
LBB0_36:                                ##   in Loop: Header=BB0_29 Depth=1
	testl	%ebx, %ebx
	je	LBB0_39
LBB0_37:                                ##   in Loop: Header=BB0_29 Depth=1
	jns	LBB0_44
## %bb.38:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	8(%r13), %rax
	movq	16(%rax), %rdi
	movl	%ebx, %esi
	callq	_SSL_get_error
	cmpq	(%r14), %rax
	jne	LBB0_39
LBB0_44:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	8(%r13), %rax
	cmpq	$0, 24(%rax)
	jne	LBB0_45
## %bb.49:                              ##   in Loop: Header=BB0_29 Depth=1
	cmpl	$1, %ebx
	je	LBB0_50
## %bb.60:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	jne	LBB0_29
	jmp	LBB0_61
	.p2align	4, 0x90
LBB0_66:                                ##   in Loop: Header=BB0_29 Depth=1
	movl	$133, 12(%rcx)
	testl	%ebx, %ebx
	jne	LBB0_37
LBB0_39:
	movq	8(%r13), %rax
	movq	16(%rax), %rdi
	callq	_SSL_get_verify_result
	movq	_X509_V_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_40
## %bb.41:
	movq	8(%r13), %rax
	cmpq	$0, 24(%rax)
	je	LBB0_42
## %bb.43:
	movq	%r13, %rdi
	callq	_h2o_socket_read_stop
	movq	_on_handshake_failure_ossl111@GOTPCREL(%rip), %rsi
	jmp	LBB0_48
LBB0_45:
	movq	%r13, %rdi
	callq	_h2o_socket_read_stop
	cmpl	$1, %ebx
	jne	LBB0_46
## %bb.47:
	movq	_on_handshake_complete@GOTPCREL(%rip), %rsi
	jmp	LBB0_48
LBB0_50:
	movq	16(%rax), %rdi
	callq	_SSL_is_server
	testq	%rax, %rax
	je	LBB0_52
## %bb.51:
	xorl	%ebx, %ebx
	jmp	LBB0_64
LBB0_61:
	leaq	_proceed_handshake(%rip), %rsi
	movq	%r13, %rdi
	callq	_h2o_socket_read_start
	jmp	LBB0_65
LBB0_40:
	movq	%rax, %rdi
	callq	_X509_verify_cert_error_string
	movq	%rax, %rbx
	jmp	LBB0_64
LBB0_46:
	leaq	_proceed_handshake(%rip), %rsi
LBB0_48:
	movq	%r13, %rdi
	callq	_flush_pending_ssl
	jmp	LBB0_65
LBB0_19:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_on_handshake_complete
	jmp	LBB0_20
LBB0_52:
	movq	8(%r13), %rax
	movq	16(%rax), %rdi
	callq	_SSL_get_peer_certificate
	testq	%rax, %rax
	je	LBB0_62
## %bb.53:
	movq	%rax, %r14
	movq	8(%r13), %rax
	movl	8(%rax), %edi
	movq	%r14, %rsi
	callq	_validate_hostname
	cmpl	$130, %eax
	je	LBB0_54
## %bb.55:
	cmpl	$129, %eax
	jne	LBB0_57
## %bb.56:
	movq	_h2o_socket_error_ssl_cert_name_mismatch@GOTPCREL(%rip), %rax
	jmp	LBB0_58
LBB0_18:
	leaq	_proceed_handshake(%rip), %rsi
	movq	%r13, %rdi
	callq	_h2o_socket_read_start
	jmp	LBB0_20
LBB0_15:
	leaq	_proceed_handshake(%rip), %rsi
LBB0_17:
	movq	%r13, %rdi
	callq	_flush_pending_ssl
LBB0_20:
	leaq	-72(%rbp), %rdi
	callq	_ptls_buffer_dispose
	jmp	LBB0_65
LBB0_42:
	movq	_h2o_socket_error_ssl_handshake@GOTPCREL(%rip), %rax
	jmp	LBB0_63
LBB0_10:
	movq	%rbx, %rdi
	callq	_ptls_free
	jmp	LBB0_11
LBB0_33:
	shrl	$31, %ebx
	movl	%ebx, %edi
	callq	_assert
	movq	8(%r13), %rax
	movq	16(%rax), %rdi
	callq	_SSL_free
	movq	%r13, %rdi
	callq	_create_ossl
	movq	8(%r13), %rdi
	callq	_clear_output_buffer
	movq	8(%r13), %rdi
	movq	(%rdi), %rax
	movq	(%rax), %rsi
	callq	_h2o_buffer_consume
	movq	8(%r13), %rdi
	movq	%r15, %rsi
	callq	_h2o_buffer_reserve
	movq	8(%r13), %rax
	movq	(%rax), %rax
	movl	8(%rax), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r15, %rdx
	callq	_memcpy
	movq	8(%r13), %rax
	movq	(%rax), %rax
	movq	%r15, (%rax)
	movq	%r13, %rdi
	callq	_h2o_socket_read_stop
	jmp	LBB0_65
LBB0_62:
	movq	_h2o_socket_error_ssl_no_cert@GOTPCREL(%rip), %rax
LBB0_63:
	movq	(%rax), %rbx
	jmp	LBB0_64
LBB0_54:
	xorl	%ebx, %ebx
	jmp	LBB0_59
LBB0_57:
	movq	_h2o_socket_error_ssl_cert_invalid@GOTPCREL(%rip), %rax
LBB0_58:
	movq	(%rax), %rbx
LBB0_59:
	movq	%r14, %rdi
	callq	_X509_free
	jmp	LBB0_64
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

L_.str.1:                               ## @.str.1
	.asciz	"no memory"

L_.str.2:                               ## @.str.2
	.asciz	"picotls handshake error"

L_.str.3:                               ## @.str.3
	.asciz	"unexpected async resumption state"

	.comm	_SSL_ERROR_WANT_READ,8,3        ## @SSL_ERROR_WANT_READ
	.comm	_X509_V_OK,8,3                  ## @X509_V_OK
	.comm	_h2o_socket_error_ssl_handshake,8,3 ## @h2o_socket_error_ssl_handshake
	.comm	_h2o_socket_error_ssl_cert_name_mismatch,8,3 ## @h2o_socket_error_ssl_cert_name_mismatch
	.comm	_h2o_socket_error_ssl_cert_invalid,8,3 ## @h2o_socket_error_ssl_cert_invalid
	.comm	_h2o_socket_error_ssl_no_cert,8,3 ## @h2o_socket_error_ssl_no_cert
	.comm	_ptls_default_skip_tracing,4,2  ## @ptls_default_skip_tracing
	.no_dead_strip	_proceed_handshake
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function proceed_handshake
_proceed_handshake:                     ; @proceed_handshake
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	mov	x19, x0
	str	xzr, [x0, #16]
	cbz	x1, LBB0_3
LBB0_1:
	mov	x0, x19
	bl	_h2o_socket_read_stop
	mov	x0, x19
	mov	x1, x20
	bl	_on_handshake_complete
LBB0_2:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	x0, [x8, #16]
	cbz	x0, LBB0_8
LBB0_4:
	bl	_SSL_is_server
	cbz	x0, LBB0_20
; %bb.5:
	ldr	x8, [x19, #8]
	ldr	w9, [x8, #12]
	cmp	w9, #132
	b.ne	LBB0_20
; %bb.6:
	ldr	x9, [x8]
	ldr	x0, [x9]
	cmp	x0, #1024
	b.hi	LBB0_44
; %bb.7:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_alloca
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w1, [x8]
	mov	x8, sp
	bl	_h2o_iovec_init
	ldr	x20, [sp]
	ldr	w21, [sp, #8]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w1, [x8, #8]
	mov	x0, x21
	mov	x2, x20
	bl	_memcpy
	b	LBB0_21
LBB0_8:
	ldr	x8, [x8]
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, sp
	mov	w2, #0
	bl	_ptls_buffer_init
	ldr	x8, [x19, #8]
	ldr	x0, [x8, #32]
	cbz	x0, LBB0_14
; %bb.9:
	ldr	x8, [x8]
	ldr	w2, [x8, #8]
	mov	x1, sp
	add	x3, sp, #24
	mov	x4, #0
	bl	_ptls_handshake
	mov	x20, x0
LBB0_10:
	ldr	x0, [x19, #8]
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_19
; %bb.11:
	ldr	x1, [sp, #24]
	bl	_h2o_buffer_consume
	orr	w8, w20, #0x80
	cmp	w8, #128
	b.ne	LBB0_45
; %bb.12:
	ldr	x8, [sp]
	cbz	x8, LBB0_50
; %bb.13:
	mov	x0, x19
	bl	_h2o_socket_read_stop
	ldr	w1, [sp, #8]
	ldr	x2, [sp]
	mov	x0, x19
	bl	_write_ssl_bytes
Lloh2:
	adrp	x8, _proceed_handshake@PAGE
Lloh3:
	add	x8, x8, _proceed_handshake@PAGEOFF
Lloh4:
	adrp	x9, _on_handshake_complete@GOTPAGE
Lloh5:
	ldr	x9, [x9, _on_handshake_complete@GOTPAGEOFF]
	cmp	w20, #0
	csel	x1, x9, x8, eq
	mov	x0, x19
	bl	_flush_pending_ssl
	b	LBB0_51
LBB0_14:
	ldr	w0, [x8, #40]
	bl	_h2o_socket_ssl_get_picotls_context
	cbz	x0, LBB0_52
; %bb.15:
	mov	w1, #1
	bl	_ptls_new
	mov	x21, x0
	cbnz	x0, LBB0_17
; %bb.16:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_h2o_fatal
LBB0_17:
	mov	x0, x21
	bl	_ptls_get_data_ptr
	str	x19, [x0]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w2, [x8, #8]
	mov	x1, sp
	add	x3, sp, #24
	mov	x0, x21
	mov	x4, #0
	bl	_ptls_handshake
	mov	x20, x0
	and	w8, w0, #0xffffff7f
	ldr	x9, [sp]
	cmp	w8, #0
	ccmp	x9, #0, #4, eq
	b.ne	LBB0_54
; %bb.18:
	mov	x0, x21
	bl	_ptls_free
	b	LBB0_10
LBB0_19:
	mov	x0, sp
	bl	_ptls_buffer_dispose
	mov	x0, x19
	bl	_create_ossl
	ldr	x8, [x19, #8]
	ldr	x0, [x8, #16]
	cbnz	x0, LBB0_4
LBB0_20:
	mov	w21, #0
	mov	x20, #0
LBB0_21:
Lloh8:
	adrp	x24, _SSL_ERROR_WANT_READ@GOTPAGE
Lloh9:
	ldr	x24, [x24, _SSL_ERROR_WANT_READ@GOTPAGEOFF]
	mov	w25, #133
Lloh10:
	adrp	x22, l_.str.3@PAGE
Lloh11:
	add	x22, x22, l_.str.3@PAGEOFF
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	bl	_ERR_clear_error
	ldr	x8, [x19, #8]
	ldr	x0, [x8, #16]
	bl	_SSL_is_server
	mov	x8, x0
	ldr	x9, [x19, #8]
	ldr	x0, [x9, #16]
	cbz	x8, LBB0_27
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	bl	_SSL_accept
	mov	x23, x0
	ldr	x9, [x19, #8]
	ldr	w8, [x9, #12]
	cmp	w8, #132
	b.eq	LBB0_34
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=1
	cmp	w8, #133
	b.eq	LBB0_28
; %bb.25:                               ;   in Loop: Header=BB0_22 Depth=1
	cmp	w8, #131
	b.eq	LBB0_55
; %bb.26:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	x0, x22
	bl	_h2o_fatal
	cbnz	w23, LBB0_29
	b	LBB0_35
LBB0_27:                                ;   in Loop: Header=BB0_22 Depth=1
	bl	_SSL_connect
	mov	x23, x0
LBB0_28:                                ;   in Loop: Header=BB0_22 Depth=1
	cbz	w23, LBB0_35
LBB0_29:                                ;   in Loop: Header=BB0_22 Depth=1
	tbz	w23, #31, LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8, #16]
	mov	x1, x23
	bl	_SSL_get_error
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_35
LBB0_31:                                ;   in Loop: Header=BB0_22 Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x8, #24]
	cbnz	x9, LBB0_38
; %bb.32:                               ;   in Loop: Header=BB0_22 Depth=1
	cmp	w23, #1
	b.eq	LBB0_40
; %bb.33:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbnz	x8, LBB0_22
	b	LBB0_42
LBB0_34:                                ;   in Loop: Header=BB0_22 Depth=1
	str	w25, [x9, #12]
	cbnz	w23, LBB0_29
LBB0_35:
	ldr	x8, [x19, #8]
	ldr	x0, [x8, #16]
	bl	_SSL_get_verify_result
Lloh12:
	adrp	x8, _X509_V_OK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _X509_V_OK@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_43
; %bb.36:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_53
; %bb.37:
	mov	x0, x19
	bl	_h2o_socket_read_stop
Lloh15:
	adrp	x1, _on_handshake_failure_ossl111@GOTPAGE
Lloh16:
	ldr	x1, [x1, _on_handshake_failure_ossl111@GOTPAGEOFF]
	b	LBB0_39
LBB0_38:
	mov	x0, x19
	bl	_h2o_socket_read_stop
Lloh17:
	adrp	x8, _proceed_handshake@PAGE
Lloh18:
	add	x8, x8, _proceed_handshake@PAGEOFF
Lloh19:
	adrp	x9, _on_handshake_complete@GOTPAGE
Lloh20:
	ldr	x9, [x9, _on_handshake_complete@GOTPAGEOFF]
	cmp	w23, #1
	csel	x1, x9, x8, eq
LBB0_39:
	mov	x0, x19
	bl	_flush_pending_ssl
	b	LBB0_2
LBB0_40:
	ldr	x0, [x8, #16]
	bl	_SSL_is_server
	cbz	x0, LBB0_46
; %bb.41:
	mov	x20, #0
	b	LBB0_1
LBB0_42:
Lloh21:
	adrp	x1, _proceed_handshake@PAGE
Lloh22:
	add	x1, x1, _proceed_handshake@PAGEOFF
	mov	x0, x19
	bl	_h2o_socket_read_start
	b	LBB0_2
LBB0_43:
	bl	_X509_verify_cert_error_string
	mov	x20, x0
	b	LBB0_1
LBB0_44:
	mov	w21, #0
	mov	x20, #0
	mov	w9, #133
	str	w9, [x8, #12]
	b	LBB0_21
LBB0_45:
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_on_handshake_complete
	b	LBB0_51
LBB0_46:
	ldr	x8, [x19, #8]
	ldr	x0, [x8, #16]
	bl	_SSL_get_peer_certificate
	cbz	x0, LBB0_56
; %bb.47:
	mov	x21, x0
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #8]
	mov	x1, x21
	bl	_validate_hostname
	cmp	w0, #130
	b.eq	LBB0_58
; %bb.48:
	cmp	w0, #129
	b.ne	LBB0_59
; %bb.49:
Lloh25:
	adrp	x8, _h2o_socket_error_ssl_cert_name_mismatch@GOTPAGE
Lloh26:
	ldr	x8, [x8, _h2o_socket_error_ssl_cert_name_mismatch@GOTPAGEOFF]
	b	LBB0_60
LBB0_50:
Lloh27:
	adrp	x1, _proceed_handshake@PAGE
Lloh28:
	add	x1, x1, _proceed_handshake@PAGEOFF
	mov	x0, x19
	bl	_h2o_socket_read_start
LBB0_51:
	mov	x0, sp
	bl	_ptls_buffer_dispose
	b	LBB0_2
LBB0_52:
	mov	w20, #0
	b	LBB0_10
LBB0_53:
Lloh29:
	adrp	x8, _h2o_socket_error_ssl_handshake@GOTPAGE
Lloh30:
	ldr	x8, [x8, _h2o_socket_error_ssl_handshake@GOTPAGEOFF]
	b	LBB0_57
LBB0_54:
	ldr	x8, [x19, #8]
	str	x21, [x8, #32]
	mov	w9, #133
	str	w9, [x8, #12]
	b	LBB0_10
LBB0_55:
	lsr	w0, w23, #31
	bl	_assert
	ldr	x8, [x19, #8]
	ldr	x0, [x8, #16]
	bl	_SSL_free
	mov	x0, x19
	bl	_create_ossl
	ldr	x0, [x19, #8]
	bl	_clear_output_buffer
	ldr	x0, [x19, #8]
	ldr	x8, [x0]
	ldr	x1, [x8]
	bl	_h2o_buffer_consume
	ldr	x0, [x19, #8]
	mov	x1, x20
	bl	_h2o_buffer_reserve
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w0, [x8, #8]
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	str	x20, [x8]
	mov	x0, x19
	bl	_h2o_socket_read_stop
	b	LBB0_2
LBB0_56:
Lloh31:
	adrp	x8, _h2o_socket_error_ssl_no_cert@GOTPAGE
Lloh32:
	ldr	x8, [x8, _h2o_socket_error_ssl_no_cert@GOTPAGEOFF]
LBB0_57:
	ldr	x20, [x8]
	b	LBB0_1
LBB0_58:
	mov	x20, #0
	b	LBB0_61
LBB0_59:
Lloh33:
	adrp	x8, _h2o_socket_error_ssl_cert_invalid@GOTPAGE
Lloh34:
	ldr	x8, [x8, _h2o_socket_error_ssl_cert_invalid@GOTPAGEOFF]
LBB0_60:
	ldr	x20, [x8]
LBB0_61:
	mov	x0, x21
	bl	_X509_free
	b	LBB0_1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

l_.str.1:                               ; @.str.1
	.asciz	"no memory"

l_.str.2:                               ; @.str.2
	.asciz	"picotls handshake error"

l_.str.3:                               ; @.str.3
	.asciz	"unexpected async resumption state"

	.comm	_SSL_ERROR_WANT_READ,8,3        ; @SSL_ERROR_WANT_READ
	.comm	_X509_V_OK,8,3                  ; @X509_V_OK
	.comm	_h2o_socket_error_ssl_handshake,8,3 ; @h2o_socket_error_ssl_handshake
	.comm	_h2o_socket_error_ssl_cert_name_mismatch,8,3 ; @h2o_socket_error_ssl_cert_name_mismatch
	.comm	_h2o_socket_error_ssl_cert_invalid,8,3 ; @h2o_socket_error_ssl_cert_invalid
	.comm	_h2o_socket_error_ssl_no_cert,8,3 ; @h2o_socket_error_ssl_no_cert
	.comm	_ptls_default_skip_tracing,4,2  ; @ptls_default_skip_tracing
	.no_dead_strip	_proceed_handshake
.subsections_via_symbols
