	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_quicly_sendstate_shutdown      ## -- Begin function quicly_sendstate_shutdown
	.p2align	4, 0x90
_quicly_sendstate_shutdown:             ## @quicly_sendstate_shutdown
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_quicly_sendstate_is_open
	movl	%eax, %edi
	callq	_assert
	xorl	%edi, %edi
	cmpq	%r14, (%rbx)
	setle	%dil
	callq	_assert
	movslq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	24(%rbx), %rcx
	movq	-8(%rcx,%rax,8), %rdx
	movq	_UINT64_MAX@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_3
## %bb.2:
	leaq	1(%r14), %rdx
	movq	%rdx, -8(%rcx,%rax,8)
	jmp	LBB0_4
LBB0_3:
	leaq	16(%rbx), %rdi
	movq	(%rbx), %rsi
	leaq	1(%r14), %rdx
	callq	_quicly_ranges_add
	testl	%eax, %eax
	jne	LBB0_5
LBB0_4:
	movq	%r14, 8(%rbx)
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UINT64_MAX,8,3                 ## @UINT64_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_quicly_sendstate_shutdown      ; -- Begin function quicly_sendstate_shutdown
	.p2align	2
_quicly_sendstate_shutdown:             ; @quicly_sendstate_shutdown
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_quicly_sendstate_is_open
	bl	_assert
	ldr	x8, [x20]
	cmp	x8, x19
	cset	w0, le
	bl	_assert
	mov	x0, x20
	ldrsw	x9, [x0, #16]!
	cbz	w9, LBB0_3
; %bb.1:
	ldr	x8, [x20, #24]
	sub	x9, x9, #1
	ldr	x10, [x8, x9, lsl #3]
Lloh0:
	adrp	x11, _UINT64_MAX@GOTPAGE
Lloh1:
	ldr	x11, [x11, _UINT64_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_3
; %bb.2:
	add	x10, x19, #1
	str	x10, [x8, x9, lsl #3]
	b	LBB0_4
LBB0_3:
	ldr	x1, [x20]
	add	x2, x19, #1
	bl	_quicly_ranges_add
	cbnz	w0, LBB0_5
LBB0_4:
	mov	w0, #0
	str	x19, [x20, #8]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_UINT64_MAX,8,3                 ; @UINT64_MAX
.subsections_via_symbols
