	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_stream_concurrency        ## -- Begin function test_stream_concurrency
	.p2align	4, 0x90
_test_stream_concurrency:               ## @test_stream_concurrency
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_quic_ctx@GOTPCREL(%rip), %r12
	movq	(%r12), %r15
	leaq	16(,%r15,8), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	leaq	1(%r15), %rax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_new_master_id
	movl	%eax, %ebx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_ptls_iovec_init
	subq	$32, %rsp
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rsp)
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rdx
	movq	_fake_address@GOTPCREL(%rip), %rcx
	leaq	-56(%rbp), %rdi
	movq	%r12, %rsi
	xorl	%r8d, %r8d
	movl	%ebx, %r9d
	callq	_quicly_connect
	addq	$32, %rsp
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_ok
	movq	$1, -72(%rbp)
	movq	-56(%rbp), %rdi
	leaq	-112(%rbp), %r12
	leaq	-72(%rbp), %rdx
	movq	%r12, %rsi
	callq	_quicly_send
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_ok
	xorl	%edi, %edi
	cmpq	$1, -72(%rbp)
	sete	%dil
	callq	_ok
	leaq	-100(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_decode_packets
	xorl	%edi, %edi
	cmpl	$1, %eax
	sete	%dil
	callq	_ok
	xorl	%edi, %edi
	cmpq	$1, -72(%rbp)
	sete	%dil
	callq	_ok
	xorl	%eax, %eax
	callq	_new_master_id
                                        ## kill: def $eax killed $eax def $rax
	leaq	-64(%rbp), %rdi
	movq	_quic_ctx@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	movq	_fake_address@GOTPCREL(%rip), %rcx
	movq	%rbx, %r8
	xorl	%r9d, %r9d
	pushq	$0
	pushq	%rax
	callq	_quicly_accept
	addq	$16, %rsp
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_ok
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_free_packets
	movq	-64(%rbp), %rdi
	movq	-56(%rbp), %rsi
	callq	_transmit
	movq	%r15, %r12
	incq	%r12
	je	LBB0_6
## %bb.1:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	leaq	L_.str.1(%rip), %rbx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rdi
	leaq	(%r15,%r13), %rsi
	xorl	%edx, %edx
	callq	_quicly_open_stream
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movq	(%r13,%r14,8), %rdi
	movq	8(%rdi), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%r14,8)
	cmpl	$0, (%rdi)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rsi
	movl	$5, %edx
	callq	_quicly_streambuf_egress_write
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	incq	%r14
	addq	$8, %r15
	cmpq	%r14, %r12
	jne	LBB0_2
## %bb.4:
	movq	%r12, %r14
LBB0_5:
	movq	-80(%rbp), %r15                 ## 8-byte Reload
LBB0_6:
	xorl	%edi, %edi
	cmpq	%r15, %r14
	sete	%dil
	callq	_ok
	movq	-56(%rbp), %rdi
	movq	-64(%rbp), %rsi
	callq	_transmit
	movq	-64(%rbp), %rdi
	movq	-56(%rbp), %rsi
	callq	_transmit
	movq	(%r13,%r14,8), %rax
	movl	(%rax), %edi
	callq	_ok
	movq	-64(%rbp), %rdi
	movq	-8(%r13,%r14,8), %rax
	movl	16(%rax), %esi
	callq	_quicly_get_stream
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_ok
	movq	8(%rbx), %r12
	movq	-8(%r13,%r14,8), %rbx
	movl	$123, %edi
	callq	_QUICLY_ERROR_FROM_APPLICATION_ERROR_CODE
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_quicly_reset_stream
	movq	-8(%r13,%r14,8), %rbx
	movl	$456, %edi                      ## imm = 0x1C8
	callq	_QUICLY_ERROR_FROM_APPLICATION_ERROR_CODE
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_quicly_request_stop
	movq	-56(%rbp), %rdi
	movq	-64(%rbp), %rsi
	callq	_transmit
	movq	-64(%rbp), %rdi
	movq	-56(%rbp), %rsi
	callq	_transmit
	movq	8(%r12), %rbx
	movl	$123, %edi
	callq	_QUICLY_ERROR_FROM_APPLICATION_ERROR_CODE
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	sete	%dil
	callq	_ok
	movq	16(%r12), %rbx
	movl	$456, %edi                      ## imm = 0x1C8
	callq	_QUICLY_ERROR_FROM_APPLICATION_ERROR_CODE
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	sete	%dil
	callq	_ok
	xorl	%edi, %edi
	cmpl	$0, (%r12)
	sete	%dil
	callq	_ok
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	-8(%rax,%r14,8), %rbx
	movq	8(%rbx), %r15
	movl	$456, %edi                      ## imm = 0x1C8
	callq	_QUICLY_ERROR_FROM_APPLICATION_ERROR_CODE
	xorl	%edi, %edi
	cmpq	%rax, %r15
	sete	%dil
	callq	_ok
	movl	(%rbx), %edi
	callq	_ok
	movq	(%r13,%r14,8), %rax
	movl	(%rax), %edi
	callq	_ok
	movq	_QUICLY_DELAYED_ACK_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_quic_now@GOTPCREL(%rip), %rcx
	addl	%eax, (%rcx)
	movq	-56(%rbp), %rdi
	movq	-64(%rbp), %rsi
	callq	_transmit
	movq	-64(%rbp), %rdi
	movq	-56(%rbp), %rsi
	callq	_transmit
	movl	(%r12), %edi
	callq	_ok
	movq	(%r13,%r14,8), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
	callq	_ok
	movq	-56(%rbp), %rdi
	leaq	8(,%r14,8), %rsi
	addq	%r13, %rsi
	xorl	%edx, %edx
	callq	_quicly_open_stream
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_ok
	movq	8(%r13,%r14,8), %rax
	movl	(%rax), %edi
	callq	_ok
	movq	-56(%rbp), %rdi
	callq	_quicly_free
	movq	-64(%rbp), %rdi
	callq	_quicly_free
	movq	-96(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_quic_ctx,8,3                   ## @quic_ctx
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"example.com"

	.comm	_fake_address,4,2               ## @fake_address
L_.str.1:                               ## @.str.1
	.asciz	"hello"

	.comm	_QUICLY_DELAYED_ACK_TIMEOUT,8,3 ## @QUICLY_DELAYED_ACK_TIMEOUT
	.comm	_quic_now,4,2                   ## @quic_now
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_stream_concurrency        ; -- Begin function test_stream_concurrency
	.p2align	2
_test_stream_concurrency:               ; @test_stream_concurrency
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #48
	mov	x22, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x19, _quic_ctx@GOTPAGE
Lloh4:
	ldr	x19, [x19, _quic_ctx@GOTPAGEOFF]
	ldr	x25, [x19]
	lsl	x8, x25, #3
	add	x9, x8, #16
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #31
	and	x8, x8, #0xfffffffffffffff0
	sub	x24, x9, x8
	mov	sp, x24
	adds	x26, x25, #1
	cset	w27, hs
	lsl	x8, x26, #3
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xfffffffffffffff0
	sub	x23, x9, x8
	mov	sp, x23
	bl	_new_master_id
	mov	x21, x0
	mov	x0, #0
	mov	w1, #0
	bl	_ptls_iovec_init
	mov	x6, x0
	str	xzr, [sp, #-16]!
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
Lloh11:
	adrp	x20, _fake_address@GOTPAGE
Lloh12:
	ldr	x20, [x20, _fake_address@GOTPAGEOFF]
	sub	x0, x29, #96
	mov	x1, x19
	mov	x3, x20
	mov	x4, #0
	mov	x5, x21
	mov	x7, #0
	bl	_quicly_connect
	add	sp, sp, #16
	cmp	w0, #0
	cset	w0, eq
	bl	_ok
	mov	w8, #1
	stur	x8, [x29, #-120]
	ldur	x0, [x29, #-96]
	sub	x1, x29, #112
	sub	x2, x29, #120
	bl	_quicly_send
	cmp	w0, #0
	cset	w0, eq
	bl	_ok
	ldur	x8, [x29, #-120]
	cmp	x8, #1
	cset	w0, eq
	bl	_ok
	sub	x0, x29, #124
	sub	x1, x29, #112
	mov	w2, #1
	bl	_decode_packets
	cmp	w0, #1
	cset	w0, eq
	bl	_ok
	ldur	x8, [x29, #-120]
	cmp	x8, #1
	cset	w0, eq
	bl	_ok
	bl	_new_master_id
	mov	x6, x0
	sub	x0, x29, #104
	sub	x4, x29, #124
	mov	x1, x19
	mov	x2, #0
	mov	x3, x20
	mov	x5, #0
	mov	x7, #0
	bl	_quicly_accept
	cmp	w0, #0
	cset	w0, eq
	bl	_ok
	sub	x0, x29, #112
	mov	w1, #1
	bl	_free_packets
	ldp	x0, x1, [x29, #-104]
	bl	_transmit
	mov	x19, #0
	tbnz	w27, #0, LBB0_6
; %bb.1:
	mov	x21, #-1
	mov	x19, x24
	mov	x27, x23
Lloh13:
	adrp	x20, l_.str.1@PAGE
Lloh14:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x0, [x29, #-96]
	mov	x1, x19
	mov	w2, #0
	bl	_quicly_open_stream
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	ldr	x0, [x19]
	ldr	x8, [x0, #8]
	str	x8, [x27]
	ldr	w8, [x0]
	cbnz	w8, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x1, x20
	mov	w2, #5
	bl	_quicly_streambuf_egress_write
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	add	x21, x21, #1
	add	x27, x27, #8
	add	x19, x19, #8
	cmp	x25, x21
	b.ne	LBB0_2
; %bb.4:
	mov	x19, x26
	b	LBB0_6
LBB0_5:
	add	x19, x21, #1
LBB0_6:
	cmp	x19, x25
	cset	w0, eq
	bl	_ok
	ldp	x1, x0, [x29, #-104]
	bl	_transmit
	ldp	x0, x1, [x29, #-104]
	bl	_transmit
	lsl	x19, x19, #3
	add	x20, x24, x19
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_ok
	ldur	x0, [x29, #-104]
	sub	x25, x19, #8
	ldr	x8, [x24, x25]
	ldr	w1, [x8, #16]
	bl	_quicly_get_stream
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_ok
	ldr	x21, [x19, #8]
	ldr	x19, [x24, x25]
	mov	w0, #123
	bl	_QUICLY_ERROR_FROM_APPLICATION_ERROR_CODE
	mov	x1, x0
	mov	x0, x19
	bl	_quicly_reset_stream
	ldr	x19, [x24, x25]
	mov	w0, #456
	bl	_QUICLY_ERROR_FROM_APPLICATION_ERROR_CODE
	mov	x1, x0
	mov	x0, x19
	bl	_quicly_request_stop
	ldp	x1, x0, [x29, #-104]
	bl	_transmit
	ldp	x0, x1, [x29, #-104]
	bl	_transmit
	ldr	x19, [x21, #8]
	mov	w0, #123
	bl	_QUICLY_ERROR_FROM_APPLICATION_ERROR_CODE
	cmp	x19, x0
	cset	w0, eq
	bl	_ok
	ldr	x19, [x21, #16]
	mov	w0, #456
	bl	_QUICLY_ERROR_FROM_APPLICATION_ERROR_CODE
	cmp	x19, x0
	cset	w0, eq
	bl	_ok
	ldr	w8, [x21]
	cmp	w8, #0
	cset	w0, eq
	bl	_ok
	ldr	x19, [x23, x25]
	ldr	x23, [x19, #8]
	mov	w0, #456
	bl	_QUICLY_ERROR_FROM_APPLICATION_ERROR_CODE
	cmp	x23, x0
	cset	w0, eq
	bl	_ok
	ldr	w0, [x19]
	bl	_ok
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_ok
Lloh15:
	adrp	x8, _QUICLY_DELAYED_ACK_TIMEOUT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _QUICLY_DELAYED_ACK_TIMEOUT@GOTPAGEOFF]
Lloh17:
	adrp	x9, _quic_now@GOTPAGE
Lloh18:
	ldr	x9, [x9, _quic_now@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w10, [x9]
	add	w8, w10, w8
	str	w8, [x9]
	ldp	x1, x0, [x29, #-104]
	bl	_transmit
	ldp	x0, x1, [x29, #-104]
	bl	_transmit
	ldr	w0, [x21]
	bl	_ok
	ldr	x8, [x20]
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
	bl	_ok
	ldur	x0, [x29, #-96]
	add	x1, x20, #8
	mov	w2, #0
	bl	_quicly_open_stream
	cmp	w0, #0
	cset	w0, eq
	bl	_ok
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_ok
	ldur	x0, [x29, #-96]
	bl	_quicly_free
	ldur	x0, [x29, #-104]
	bl	_quicly_free
	mov	sp, x22
	ldur	x8, [x29, #-88]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_quic_ctx,8,3                   ; @quic_ctx
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"example.com"

	.comm	_fake_address,4,2               ; @fake_address
l_.str.1:                               ; @.str.1
	.asciz	"hello"

	.comm	_QUICLY_DELAYED_ACK_TIMEOUT,8,3 ; @QUICLY_DELAYED_ACK_TIMEOUT
	.comm	_quic_now,4,2                   ; @quic_now
.subsections_via_symbols
