	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_send_then_close
_test_send_then_close:                  ## @test_send_then_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	24(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %r15
	movq	%r15, %rsi
	movl	$5, %edx
	callq	_quicly_streambuf_egress_write
	movl	(%rbx), %edi
	movq	_server@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_transmit
	movl	(%r13), %edi
	movq	-48(%rbp), %rax
	movl	32(%rax), %esi
	callq	_quicly_get_stream
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	24(%rbx), %r12
	leaq	4(%r12), %r14
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_buffer_is
	movl	%eax, %edi
	callq	_ok
	movq	%rbx, %rdi
	movl	$5, %esi
	callq	_quicly_streambuf_ingress_shift
	movq	_QUICLY_DELAYED_ACK_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_quic_now@GOTPCREL(%rip), %rcx
	addl	%eax, (%rcx)
	movl	(%r13), %edi
	movq	%r13, %r15
	movq	_client@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_transmit
	movq	-48(%rbp), %rax
	xorl	%edi, %edi
	cmpl	$1, 8(%rax)
	sete	%dil
	callq	_ok
	movq	-48(%rbp), %rax
	movq	16(%rax), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
	callq	_ok
	movq	-48(%rbp), %rax
	movq	16(%rax), %rax
	xorl	%edi, %edi
	cmpl	$5, 8(%rax)
	sete	%dil
	callq	_ok
	movq	-48(%rbp), %rdi
	callq	_quicly_streambuf_egress_shutdown
	movl	(%r13), %edi
	movl	(%r15), %esi
	callq	_transmit
	movq	%rbx, %rdi
	callq	_quicly_recvstate_transfer_complete
	movl	%eax, %edi
	callq	_ok
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_buffer_is
	movl	%eax, %edi
	callq	_ok
	movq	%rbx, %rdi
	callq	_quicly_streambuf_egress_shutdown
	movl	(%r15), %edi
	movl	(%r13), %esi
	callq	_transmit
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_ok
	xorl	%edi, %edi
	cmpl	$0, (%r12)
	sete	%dil
	callq	_ok
	movq	_QUICLY_DELAYED_ACK_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_quic_now@GOTPCREL(%rip), %rcx
	addl	%eax, (%rcx)
	movl	(%r13), %edi
	movl	(%r15), %esi
	callq	_transmit
	movl	(%r12), %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
	.space	1

	.no_dead_strip	_test_send_then_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_send_then_close
_test_send_then_close:                  ; @test_send_then_close
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
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	x24, [x0, #24]
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
	mov	x1, x21
	mov	w2, #5
	bl	_quicly_streambuf_egress_write
	ldr	w0, [x22]
Lloh4:
	adrp	x23, _server@GOTPAGE
Lloh5:
	ldr	x23, [x23, _server@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_transmit
	ldr	w0, [x23]
	ldr	x8, [sp, #8]
	ldr	w1, [x8, #32]
	bl	_quicly_get_stream
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	ldr	x25, [x19, #24]
	add	x20, x25, #4
	mov	x0, x20
	mov	x1, x21
	bl	_buffer_is
	bl	_ok
	mov	x0, x19
	mov	w1, #5
	bl	_quicly_streambuf_ingress_shift
Lloh6:
	adrp	x26, _QUICLY_DELAYED_ACK_TIMEOUT@GOTPAGE
Lloh7:
	ldr	x26, [x26, _QUICLY_DELAYED_ACK_TIMEOUT@GOTPAGEOFF]
Lloh8:
	adrp	x21, _quic_now@GOTPAGE
Lloh9:
	ldr	x21, [x21, _quic_now@GOTPAGEOFF]
	ldr	w8, [x26]
	ldr	w9, [x21]
	add	w8, w9, w8
	str	w8, [x21]
	ldr	w0, [x23]
	ldr	w1, [x22]
	bl	_transmit
	ldr	x8, [sp, #8]
	ldr	w8, [x8, #8]
	cmp	w8, #1
	cset	w0, eq
	bl	_ok
	ldr	x8, [sp, #8]
	ldr	x8, [x8, #16]
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, eq
	bl	_ok
	ldr	x8, [sp, #8]
	ldr	x8, [x8, #16]
	ldr	w8, [x8, #8]
	cmp	w8, #5
	cset	w0, eq
	bl	_ok
	ldr	x0, [sp, #8]
	bl	_quicly_streambuf_egress_shutdown
	ldr	w0, [x22]
	ldr	w1, [x23]
	bl	_transmit
	mov	x0, x19
	bl	_quicly_recvstate_transfer_complete
	bl	_ok
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_buffer_is
	bl	_ok
	mov	x0, x19
	bl	_quicly_streambuf_egress_shutdown
	ldr	w0, [x23]
	ldr	w1, [x22]
	bl	_transmit
	ldr	w0, [x24]
	bl	_ok
	ldr	w8, [x25]
	cmp	w8, #0
	cset	w0, eq
	bl	_ok
	ldr	w8, [x26]
	ldr	w9, [x21]
	add	w8, w9, w8
	str	w8, [x21]
	ldr	w0, [x22]
	ldr	w1, [x23]
	bl	_transmit
	ldr	w0, [x25]
	bl	_ok
	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
	add	sp, sp, #96
	ret
	.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
	.space	1

	.no_dead_strip	_test_send_then_close
.subsections_via_symbols
