	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_reset_after_close
_test_reset_after_close:                ## @test_reset_after_close
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_client@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rax, %rbx
	leaq	-48(%rbp), %rsi
	xorl	%edx, %edx
	callq	_quicly_open_stream
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_ok
	movq	-48(%rbp), %rdi
	movq	8(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rsi
	movl	$5, %edx
	callq	_quicly_streambuf_egress_write
	movl	(%rbx), %edi
	movq	_server@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_transmit
	movq	_QUICLY_DELAYED_ACK_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_quic_now@GOTPCREL(%rip), %rcx
	addl	%eax, (%rcx)
	movl	(%r13), %edi
	movl	(%rbx), %esi
	callq	_transmit
	movl	(%r13), %edi
	movq	-48(%rbp), %rax
	movl	16(%rax), %esi
	callq	_quicly_get_stream
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	8(%r12), %r15
	leaq	4(%r15), %r14
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_buffer_is
	movl	%eax, %edi
	callq	_ok
	movq	%r12, %rdi
	movl	$5, %esi
	callq	_quicly_streambuf_ingress_shift
	movq	-48(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$5, %edx
	callq	_quicly_streambuf_egress_write
	movq	-48(%rbp), %rdi
	callq	_quicly_streambuf_egress_shutdown
	movq	-48(%rbp), %rbx
	movl	$12345, %edi                    ## imm = 0x3039
	callq	_QUICLY_ERROR_FROM_APPLICATION_ERROR_CODE
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_quicly_reset_stream
	movq	_client@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	(%r13), %esi
	callq	_transmit
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_buffer_is
	movl	%eax, %edi
	callq	_ok
	movq	%r12, %rdi
	callq	_quicly_recvstate_transfer_complete
	movl	%eax, %edi
	callq	_ok
	movq	%r12, %rdi
	callq	_quicly_streambuf_egress_shutdown
	movl	(%r13), %edi
	movl	(%rbx), %esi
	callq	_transmit
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	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)
	movl	(%rbx), %edi
	movl	(%r13), %esi
	callq	_transmit
	movl	(%r15), %edi
	callq	_ok
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_client,4,2                     ## @client
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hello"

	.comm	_server,4,2                     ## @server
	.comm	_QUICLY_DELAYED_ACK_TIMEOUT,8,3 ## @QUICLY_DELAYED_ACK_TIMEOUT
	.comm	_quic_now,4,2                   ## @quic_now
L_.str.1:                               ## @.str.1
	.asciz	"world"

L_.str.2:                               ## @.str.2
	.space	1

	.no_dead_strip	_test_reset_after_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_reset_after_close
_test_reset_after_close:                ; @test_reset_after_close
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x22, _client@GOTPAGE
Lloh1:
	ldr	x22, [x22, _client@GOTPAGEOFF]
	ldr	w0, [x22]
	add	x1, sp, #8
	mov	w2, #0
	bl	_quicly_open_stream
	cmp	w0, #0
	cset	w0, eq
	bl	_ok
	ldr	x0, [sp, #8]
	ldr	x23, [x0, #8]
Lloh2:
	adrp	x20, l_.str@PAGE
Lloh3:
	add	x20, x20, l_.str@PAGEOFF
	mov	x1, x20
	mov	w2, #5
	bl	_quicly_streambuf_egress_write
	ldr	w0, [x22]
Lloh4:
	adrp	x24, _server@GOTPAGE
Lloh5:
	ldr	x24, [x24, _server@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_transmit
Lloh6:
	adrp	x26, _QUICLY_DELAYED_ACK_TIMEOUT@GOTPAGE
Lloh7:
	ldr	x26, [x26, _QUICLY_DELAYED_ACK_TIMEOUT@GOTPAGEOFF]
Lloh8:
	adrp	x25, _quic_now@GOTPAGE
Lloh9:
	ldr	x25, [x25, _quic_now@GOTPAGEOFF]
	ldr	w8, [x26]
	ldr	w9, [x25]
	add	w8, w9, w8
	str	w8, [x25]
	ldr	w0, [x24]
	ldr	w1, [x22]
	bl	_transmit
	ldr	w0, [x24]
	ldr	x8, [sp, #8]
	ldr	w1, [x8, #16]
	bl	_quicly_get_stream
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	ldr	x27, [x19, #8]
	add	x21, x27, #4
	mov	x0, x21
	mov	x1, x20
	bl	_buffer_is
	bl	_ok
	mov	x0, x19
	mov	w1, #5
	bl	_quicly_streambuf_ingress_shift
	ldr	x0, [sp, #8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #5
	bl	_quicly_streambuf_egress_write
	ldr	x0, [sp, #8]
	bl	_quicly_streambuf_egress_shutdown
	ldr	x20, [sp, #8]
	mov	w0, #12345
	bl	_QUICLY_ERROR_FROM_APPLICATION_ERROR_CODE
	mov	x1, x0
	mov	x0, x20
	bl	_quicly_reset_stream
	ldr	w0, [x22]
	ldr	w1, [x24]
	bl	_transmit
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_buffer_is
	bl	_ok
	mov	x0, x19
	bl	_quicly_recvstate_transfer_complete
	bl	_ok
	mov	x0, x19
	bl	_quicly_streambuf_egress_shutdown
	ldr	w0, [x24]
	ldr	w1, [x22]
	bl	_transmit
	ldr	w0, [x23]
	bl	_ok
	ldr	w8, [x26]
	ldr	w9, [x25]
	add	w8, w9, w8
	str	w8, [x25]
	ldr	w0, [x22]
	ldr	w1, [x24]
	bl	_transmit
	ldr	w0, [x27]
	bl	_ok
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_client,4,2                     ; @client
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hello"

	.comm	_server,4,2                     ; @server
	.comm	_QUICLY_DELAYED_ACK_TIMEOUT,8,3 ; @QUICLY_DELAYED_ACK_TIMEOUT
	.comm	_quic_now,4,2                   ; @quic_now
l_.str.1:                               ; @.str.1
	.asciz	"world"

l_.str.2:                               ; @.str.2
	.space	1

	.no_dead_strip	_test_reset_after_close
.subsections_via_symbols
