	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enter_close
_enter_close:                           ## @enter_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	_QUICLY_STATE_CLOSING@GOTPCREL(%rip), %r13
	xorl	%edi, %edi
	cmpq	(%r13), %rax
	setl	%dil
	callq	_assert
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_discard_sentmap_by_epoch
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	leaq	12(%rbx), %r12
	movl	8(%rbx), %esi
	movq	_now@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_QUICLY_EPOCH_INITIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	callq	_quicly_sentmap_prepare
	testl	%eax, %eax
	jne	LBB0_10
## %bb.2:
	movq	_on_end_closing@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_quicly_sentmap_allocate
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_quicly_sentmap_commit
	incl	8(%rbx)
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.4:
	movq	(%r13), %rax
	movq	%rax, 16(%rbx)
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_5:
	movq	_PTLS_ERROR_NO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_6:
	movq	_QUICLY_STATE_DRAINING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.7:
	movq	_now@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%rbx, %rdi
	callq	_get_sentmap_expiration_time
	addq	%r14, %rax
LBB0_9:
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_update_loss_alarm
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QUICLY_STATE_CLOSING,8,3       ## @QUICLY_STATE_CLOSING
	.comm	_now,8,3                        ## @now
	.comm	_QUICLY_EPOCH_INITIAL,4,2       ## @QUICLY_EPOCH_INITIAL
	.comm	_on_end_closing,4,2             ## @on_end_closing
	.comm	_PTLS_ERROR_NO_MEMORY,4,2       ## @PTLS_ERROR_NO_MEMORY
	.comm	_QUICLY_STATE_DRAINING,8,3      ## @QUICLY_STATE_DRAINING
	.no_dead_strip	_enter_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enter_close
_enter_close:                           ; @enter_close
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x23, _QUICLY_STATE_CLOSING@GOTPAGE
Lloh1:
	ldr	x23, [x23, _QUICLY_STATE_CLOSING@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	cset	w0, lt
	bl	_assert
	mov	x0, x19
	mov	w1, #-1
	bl	_discard_sentmap_by_epoch
	cbnz	w0, LBB0_10
; %bb.1:
	add	x22, x19, #12
	ldr	w1, [x19, #8]
Lloh2:
	adrp	x24, _now@GOTPAGE
Lloh3:
	ldr	x24, [x24, _now@GOTPAGEOFF]
	ldr	x2, [x24]
Lloh4:
	adrp	x8, _QUICLY_EPOCH_INITIAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _QUICLY_EPOCH_INITIAL@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
	mov	x0, x22
	bl	_quicly_sentmap_prepare
	cbnz	w0, LBB0_10
; %bb.2:
Lloh7:
	adrp	x8, _on_end_closing@GOTPAGE
Lloh8:
	ldr	x8, [x8, _on_end_closing@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_quicly_sentmap_allocate
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x22
	mov	w1, #0
	bl	_quicly_sentmap_commit
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	cbz	w21, LBB0_6
; %bb.4:
	mov	x8, #0
	ldr	x9, [x23]
	str	x9, [x19, #16]
	b	LBB0_9
LBB0_5:
Lloh10:
	adrp	x8, _PTLS_ERROR_NO_MEMORY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PTLS_ERROR_NO_MEMORY@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_6:
Lloh13:
	adrp	x8, _QUICLY_STATE_DRAINING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _QUICLY_STATE_DRAINING@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	str	x8, [x19, #16]
	cbz	w20, LBB0_8
; %bb.7:
	ldr	x20, [x24]
	mov	x0, x19
	bl	_get_sentmap_expiration_time
	add	x8, x0, x20
	b	LBB0_9
LBB0_8:
	mov	x8, #0
LBB0_9:
	str	x8, [x19]
	mov	x0, x19
	bl	_update_loss_alarm
	mov	w0, #0
LBB0_10:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_QUICLY_STATE_CLOSING,8,3       ; @QUICLY_STATE_CLOSING
	.comm	_now,8,3                        ; @now
	.comm	_QUICLY_EPOCH_INITIAL,4,2       ; @QUICLY_EPOCH_INITIAL
	.comm	_on_end_closing,4,2             ; @on_end_closing
	.comm	_PTLS_ERROR_NO_MEMORY,4,2       ; @PTLS_ERROR_NO_MEMORY
	.comm	_QUICLY_STATE_DRAINING,8,3      ; @QUICLY_STATE_DRAINING
	.no_dead_strip	_enter_close
.subsections_via_symbols
