	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_quicly_open_stream             ## -- Begin function quicly_open_stream
	.p2align	4, 0x90
_quicly_open_stream:                    ## @quicly_open_stream
	.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	%edx, %r15d
	movq	%rdi, %rbx
	testl	%edx, %edx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	leaq	24(%rbx), %r14
	leaq	44(%rbx), %r13
	leaq	8(%rbx), %rax
	xorl	%edx, %edx
	jmp	LBB0_3
LBB0_2:
	leaq	16(%rbx), %r14
	leaq	40(%rbx), %r13
	movq	(%rbx), %rax
	movq	8(%rax), %rdx
	leaq	12(%rbx), %rax
LBB0_3:
	movl	(%rax), %ecx
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_open_stream
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	incl	4(%r14)
	addl	$4, (%r14)
	movl	(%rax), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	cmpl	(%r13), %ecx
	jl	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	testl	%r15d, %r15d
	setne	%al
	movl	$1, 4(%r12)
	movl	32(%rbx,%rax,4), %edi
	movq	%r12, %rsi
	addq	$8, %rsi
	callq	_quicly_linklist_insert
LBB0_7:
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	movq	%r12, %rsi
	callq	*(%rdi)
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_4:
	movq	_PTLS_ERROR_NO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PTLS_ERROR_NO_MEMORY,4,2       ## @PTLS_ERROR_NO_MEMORY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function quicly_open_stream
lCPI0_0:
	.long	4                               ; 0x4
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_quicly_open_stream
	.p2align	2
_quicly_open_stream:                    ; @quicly_open_stream
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	cbz	w2, LBB0_2
; %bb.1:
	mov	x2, #0
	add	x24, x20, #24
	add	x23, x20, #44
	add	x8, x20, #8
	b	LBB0_3
LBB0_2:
	add	x24, x20, #16
	add	x23, x20, #40
	mov	x8, x20
	ldr	x9, [x8], #12
	ldr	x2, [x9, #8]
LBB0_3:
	ldr	w3, [x8]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_open_stream
	cbz	x0, LBB0_8
; %bb.4:
	mov	x22, x0
	ldr	d0, [x24]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	add.2s	v0, v0, v1
	str	d0, [x24]
	ldr	w8, [x0]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	ldr	w9, [x23]
	cmp	w9, w8, asr #2
	b.gt	LBB0_6
; %bb.5:
	mov	w8, #1
	str	w8, [x22, #4]
	add	x8, x20, #36
	add	x9, x20, #32
	cmp	w21, #0
	csel	x8, x9, x8, eq
	ldr	w0, [x8]
	add	x1, x22, #8
	bl	_quicly_linklist_insert
LBB0_6:
	ldr	x8, [x20]
	ldr	x0, [x8]
	ldr	x8, [x0]
	mov	x1, x22
	blr	x8
	cbnz	w0, LBB0_9
; %bb.7:
	str	x22, [x19]
	b	LBB0_9
LBB0_8:
Lloh2:
	adrp	x8, _PTLS_ERROR_NO_MEMORY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PTLS_ERROR_NO_MEMORY@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
LBB0_9:
	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 AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PTLS_ERROR_NO_MEMORY,4,2       ; @PTLS_ERROR_NO_MEMORY
.subsections_via_symbols
