	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_httpclient__h2_on_connect  ## -- Begin function h2o_httpclient__h2_on_connect
	.p2align	4, 0x90
_h2o_httpclient__h2_on_connect:         ## @h2o_httpclient__h2_on_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	addq	$8, %rdi
	callq	_h2o_timer_is_linked
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movq	(%r15), %rbx
	testq	%rbx, %rbx
	jne	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	movl	4(%r14), %ecx
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_create_connection
	movq	%rax, %rbx
	movq	%rax, (%r15)
	movl	(%r14), %esi
	movq	%rax, %rdi
	callq	_send_client_preface
	movl	16(%rbx), %edi
	movq	_on_read@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_h2o_socket_read_start
LBB0_2:
	movq	%r14, %rdi
	callq	_setup_stream
	movq	%rbx, %rdi
	callq	_h2o_timer_is_linked
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	movq	%rbx, %rdx
	callq	_h2o_timer_link
LBB0_4:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_on_connection_ready            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_on_read,4,2                    ## @on_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_httpclient__h2_on_connect  ; -- Begin function h2o_httpclient__h2_on_connect
	.p2align	2
_h2o_httpclient__h2_on_connect:         ; @h2o_httpclient__h2_on_connect
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	add	x0, x0, #8
	bl	_h2o_timer_is_linked
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	ldr	x20, [x21]
	cbnz	x20, LBB0_2
; %bb.1:
	ldp	w0, w3, [x19]
	mov	x1, x21
	mov	x2, x22
	bl	_create_connection
	mov	x20, x0
	str	x0, [x21]
	ldr	w1, [x19]
	bl	_send_client_preface
	ldr	w0, [x20, #16]
Lloh0:
	adrp	x8, _on_read@GOTPAGE
Lloh1:
	ldr	x8, [x8, _on_read@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_h2o_socket_read_start
LBB0_2:
	mov	x0, x19
	bl	_setup_stream
	mov	x0, x20
	bl	_h2o_timer_is_linked
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	x8, [x20, #8]
	ldp	w1, w0, [x8]
	mov	x2, x20
	bl	_h2o_timer_link
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_on_connection_ready
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_on_read,4,2                    ; @on_read
.subsections_via_symbols
