	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_tunnel_establish           ## -- Begin function h2o_tunnel_establish
	.p2align	4, 0x90
_h2o_tunnel_establish:                  ## @h2o_tunnel_establish
	.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
	movl	%ecx, %r12d
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r13
	movl	$32, %edi
	callq	_h2o_mem_alloc
	movq	%rax, %rbx
	movq	%r13, 8(%rax)
	movl	%r12d, 24(%rax)
	movq	16(%rax), %rax
	movq	%r14, (%rax)
	movq	16(%rbx), %rax
	movq	%r15, 8(%rax)
	movq	%rbx, 8(%r14)
	movq	%rbx, 8(%r15)
	movq	_on_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_h2o_timer_init
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	movq	%rbx, %rdx
	callq	_h2o_timer_link
	movq	(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_on_read
LBB0_2:
	movq	(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_on_read
LBB0_4:
	movq	_on_read@GOTPCREL(%rip), %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_h2o_socket_read_start
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_h2o_socket_read_start
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_on_timeout,4,2                 ## @on_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_tunnel_establish           ; -- Begin function h2o_tunnel_establish
	.p2align	2
_h2o_tunnel_establish:                  ; @h2o_tunnel_establish
	.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	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x23, x0
	mov	w0, #32
	bl	_h2o_mem_alloc
	mov	x20, x0
	str	x23, [x0, #8]
	str	w22, [x0, #24]
	ldr	x8, [x0, #16]
	str	x19, [x8]
	ldr	x8, [x0, #16]
	str	x21, [x8, #8]
	str	x0, [x19, #8]
	str	x0, [x21, #8]
Lloh0:
	adrp	x8, _on_timeout@GOTPAGE
Lloh1:
	ldr	x8, [x8, _on_timeout@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_h2o_timer_init
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	mov	x1, x22
	mov	x2, x20
	bl	_h2o_timer_link
	ldr	x8, [x21]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, #0
	bl	_on_read
LBB0_2:
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, #0
	bl	_on_read
LBB0_4:
Lloh3:
	adrp	x22, _on_read@GOTPAGE
Lloh4:
	ldr	x22, [x22, _on_read@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x22
	bl	_h2o_socket_read_start
	mov	x0, x19
	mov	x1, x22
	bl	_h2o_socket_read_start
	mov	x0, 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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_on_timeout,4,2                 ; @on_timeout
.subsections_via_symbols
