	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function on_ssl_handshake_complete
_on_ssl_handshake_complete:             ## @on_ssl_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	%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	%rdi, %r15
	movq	(%rdi), %r14
	movq	$0, (%rdi)
	movq	8(%r14), %rax
	movq	(%rax), %rax
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	incl	24(%rax)
	movq	%r15, %rdi
	callq	_h2o_socket_close
	jmp	LBB0_14
LBB0_2:
	movl	28(%rax), %edi
	callq	_h2o_gettimeofday
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_h2o_timeval_subtract
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_h2o_socket_get_ssl_session_reused
	movq	8(%r14), %rcx
	movq	(%rcx), %rcx
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	incl	20(%rcx)
	addq	$16, %rcx
	jmp	LBB0_5
LBB0_4:
	incl	12(%rcx)
	addq	$8, %rcx
LBB0_5:
	addl	%ebx, (%rcx)
	movq	%r15, %rdi
	callq	_h2o_socket_ssl_get_selected_protocol
	movq	%rax, %r13
	movq	_h2o_http2_alpn_protocols@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	movl	%edx, %r12d
	addq	$16, %rbx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rbx), %rax
	addq	$16, %rbx
	testq	%rax, %rax
	je	LBB0_11
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, %r13
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	-8(%rbx), %esi
	movl	%r12d, %edi
	movq	%r13, %rdx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	8(%r14), %rdi
	movq	(%rdi), %rax
	incl	4(%rax)
	movl	(%r14), %edx
	movq	%r15, %rsi
	callq	_h2o_http2_accept
	jmp	LBB0_14
LBB0_11:
	movq	8(%r14), %rdi
	testq	%r13, %r13
	je	LBB0_13
## %bb.12:
	movq	(%rdi), %rax
	incl	(%rax)
LBB0_13:
	movl	(%r14), %edx
	movq	%r15, %rsi
	callq	_h2o_http1_accept
LBB0_14:
	movq	_accept_data_callbacks@GOTPCREL(%rip), %rax
	movq	%r14, %rdi
	callq	*(%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_h2o_http2_alpn_protocols,8,3   ## @h2o_http2_alpn_protocols
	.comm	_accept_data_callbacks,8,3      ## @accept_data_callbacks
	.no_dead_strip	_on_ssl_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_ssl_handshake_complete
_on_ssl_handshake_complete:             ; @on_ssl_handshake_complete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x0
	ldr	x19, [x0]
	str	xzr, [x0]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x1, LBB0_2
; %bb.1:
	ldr	w9, [x8, #24]
	add	w9, w9, #1
	str	w9, [x8, #24]
	mov	x0, x20
	bl	_h2o_socket_close
	b	LBB0_14
LBB0_2:
	ldr	w0, [x8, #28]
	bl	_h2o_gettimeofday
	str	w0, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_h2o_timeval_subtract
	mov	x21, x0
	mov	x0, x20
	bl	_h2o_socket_get_ssl_session_reused
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w9, [x8, #20]
	add	w9, w9, #1
	str	w9, [x8, #20]
	add	x8, x8, #16
	b	LBB0_5
LBB0_4:
	ldr	w9, [x8, #12]
	add	w9, w9, #1
	str	w9, [x8, #12]
	add	x8, x8, #8
LBB0_5:
	ldr	w9, [x8]
	add	w9, w9, w21
	str	w9, [x8]
	mov	x0, x20
	bl	_h2o_socket_ssl_get_selected_protocol
	mov	x21, x0
Lloh0:
	adrp	x8, _h2o_http2_alpn_protocols@GOTPAGE
Lloh1:
	ldr	x8, [x8, _h2o_http2_alpn_protocols@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	ldr	x8, [x9]
	cbz	x8, LBB0_11
; %bb.6:
	mov	x22, x1
	add	x23, x9, #16
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x23], #16
	cbz	x8, LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x21, x8
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldur	w1, [x23, #-8]
	mov	x0, x22
	mov	x2, x21
	bl	_memcmp
	cbnz	x0, LBB0_7
; %bb.10:
	ldr	x0, [x19, #8]
	ldr	x8, [x0]
	ldr	w9, [x8, #4]
	add	w9, w9, #1
	str	w9, [x8, #4]
	ldr	w2, [x19]
	mov	x1, x20
	bl	_h2o_http2_accept
	b	LBB0_14
LBB0_11:
	ldr	x0, [x19, #8]
	cbz	x21, LBB0_13
; %bb.12:
	ldr	x8, [x0]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_13:
	ldr	w2, [x19]
	mov	x1, x20
	bl	_h2o_http1_accept
LBB0_14:
Lloh3:
	adrp	x8, _accept_data_callbacks@GOTPAGE
Lloh4:
	ldr	x8, [x8, _accept_data_callbacks@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_h2o_http2_alpn_protocols,8,3   ; @h2o_http2_alpn_protocols
	.comm	_accept_data_callbacks,8,3      ; @accept_data_callbacks
	.no_dead_strip	_on_ssl_handshake_complete
.subsections_via_symbols
