	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function on_handshake_complete
_on_handshake_complete:                 ## @on_handshake_complete
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %rdx
	movq	_h2o_socket_error_ssl_cert_name_mismatch@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_4
LBB0_2:
	movq	_mode_server@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.5:
	movq	_server_on_read_first@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_h2o_socket_read_start          ## TAILCALL
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_H2O_STRLIT
	movl	%eax, -24(%rbp)
	movq	_client_on_write_complete@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_h2o_socket_write
	movq	_client_on_read_first@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_h2o_socket_read_start
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	_stderr@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movl	(%r14), %edi
	callq	_ERR_print_errors_fp
	movq	%rbx, %rdi
	callq	_h2o_socket_close
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_h2o_socket_error_ssl_cert_name_mismatch,8,3 ## @h2o_socket_error_ssl_cert_name_mismatch
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TLS handshake failure:%s\n"

	.comm	_mode_server,8,3                ## @mode_server
	.comm	_server_on_read_first,4,2       ## @server_on_read_first
L_.str.1:                               ## @.str.1
	.asciz	"0"

	.comm	_client_on_write_complete,4,2   ## @client_on_write_complete
	.comm	_client_on_read_first,4,2       ## @client_on_read_first
	.no_dead_strip	_on_handshake_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function on_handshake_complete
_on_handshake_complete:                 ; @on_handshake_complete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	cbz	x1, LBB0_2
; %bb.1:
	mov	x2, x1
Lloh0:
	adrp	x8, _h2o_socket_error_ssl_cert_name_mismatch@GOTPAGE
Lloh1:
	ldr	x8, [x8, _h2o_socket_error_ssl_cert_name_mismatch@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_5
LBB0_2:
Lloh3:
	adrp	x8, _mode_server@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mode_server@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _server_on_read_first@GOTPAGE
Lloh7:
	ldr	x8, [x8, _server_on_read_first@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_h2o_socket_read_start
LBB0_4:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_H2O_STRLIT
	str	w0, [sp, #8]
Lloh11:
	adrp	x8, _client_on_write_complete@GOTPAGE
Lloh12:
	ldr	x8, [x8, _client_on_write_complete@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #1
	bl	_h2o_socket_write
Lloh14:
	adrp	x8, _client_on_read_first@GOTPAGE
Lloh15:
	ldr	x8, [x8, _client_on_read_first@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_h2o_socket_read_start
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
Lloh17:
	adrp	x20, _stderr@GOTPAGE
Lloh18:
	ldr	x20, [x20, _stderr@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	w0, [x20]
	bl	_ERR_print_errors_fp
	mov	x0, x19
	bl	_h2o_socket_close
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_h2o_socket_error_ssl_cert_name_mismatch,8,3 ; @h2o_socket_error_ssl_cert_name_mismatch
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TLS handshake failure:%s\n"

	.comm	_mode_server,8,3                ; @mode_server
	.comm	_server_on_read_first,4,2       ; @server_on_read_first
l_.str.1:                               ; @.str.1
	.asciz	"0"

	.comm	_client_on_write_complete,4,2   ; @client_on_write_complete
	.comm	_client_on_read_first,4,2       ; @client_on_read_first
	.no_dead_strip	_on_handshake_complete
.subsections_via_symbols
