	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function on_pool_connect
_on_pool_connect:                       ## @on_pool_connect
	.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, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	leaq	16(%rdx), %rdi
	callq	_h2o_timer_unlink
	movq	$0, 8(%r15)
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	cmpq	$0, (%rbx)
	je	LBB0_8
## %bb.3:
	movq	%rbx, %rdi
	callq	_h2o_socket_ssl_get_selected_protocol
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	%rax, %r12
	movl	%edx, %r13d
	leaq	L_.str(%rip), %rdi
	callq	_H2O_STRLIT
	movl	%r13d, %edi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_h2o_memis
	testq	%rax, %rax
	je	LBB0_5
## %bb.9:
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_h2o_socketpool_detach
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_h2o_httpclient__h2_on_connect  ## TAILCALL
LBB0_1:
	xorl	%edi, %edi
	testq	%r12, %r12
	setne	%dil
	callq	_assert
	movq	%r15, %rdi
	movq	%r12, %rsi
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_on_connect_error               ## TAILCALL
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edi
	movq	%r12, %rdx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	_h2o_httpclient_error_unknown_alpn_protocol@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	jmp	LBB0_7
LBB0_8:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_h2o_httpclient__h1_on_connect  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"h2"

L_.str.1:                               ## @.str.1
	.asciz	"http/1.1"

	.comm	_h2o_httpclient_error_unknown_alpn_protocol,8,3 ## @h2o_httpclient_error_unknown_alpn_protocol
	.no_dead_strip	_on_pool_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function on_pool_connect
_on_pool_connect:                       ; @on_pool_connect
	.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	x20, x3
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	add	x0, x2, #16
	bl	_h2o_timer_unlink
	str	xzr, [x19, #8]
	cbz	x21, LBB0_5
; %bb.1:
	ldr	x8, [x21]
	cbz	x8, LBB0_9
; %bb.2:
	mov	x0, x21
	bl	_h2o_socket_ssl_get_selected_protocol
	cbz	x0, LBB0_9
; %bb.3:
	mov	x22, x0
	mov	x23, x1
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_H2O_STRLIT
	mov	x2, x0
	mov	x0, x23
	mov	x1, x22
	bl	_h2o_memis
	cbz	x0, LBB0_7
; %bb.4:
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	x1, x21
	bl	_h2o_socketpool_detach
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	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_httpclient__h2_on_connect
LBB0_5:
	cmp	x22, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x19
	mov	x1, x22
LBB0_6:
	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	_on_connect_error
LBB0_7:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	mov	x2, x22
	bl	_memcmp
	cbz	x0, LBB0_9
; %bb.8:
Lloh4:
	adrp	x8, _h2o_httpclient_error_unknown_alpn_protocol@GOTPAGE
Lloh5:
	ldr	x8, [x8, _h2o_httpclient_error_unknown_alpn_protocol@GOTPAGEOFF]
Lloh6:
	ldr	x1, [x8]
	mov	x0, x19
	b	LBB0_6
LBB0_9:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	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_httpclient__h1_on_connect
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"h2"

l_.str.1:                               ; @.str.1
	.asciz	"http/1.1"

	.comm	_h2o_httpclient_error_unknown_alpn_protocol,8,3 ; @h2o_httpclient_error_unknown_alpn_protocol
	.no_dead_strip	_on_pool_connect
.subsections_via_symbols
