	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mark_packets_as_lost
_mark_packets_as_lost:                  ## @mark_packets_as_lost
	.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	%rsi, %r14
	movq	%rdi, %r12
	xorl	%edi, %edi
	testq	%rsi, %rsi
	setne	%dil
	callq	_assert
	leaq	-44(%rbp), %r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_init_acks_iter
	movq	%r15, %rdi
	callq	_quicly_sentmap_get
	movq	(%rax), %rax
	cmpq	(%r12), %rax
	jge	LBB0_3
## %bb.1:
	leaq	-44(%rbp), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_quicly_sentmap_skip
	movq	%r15, %rdi
	callq	_quicly_sentmap_get
	movq	(%rax), %rax
	cmpq	(%r12), %rax
	jl	LBB0_2
LBB0_3:
	leaq	8(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	-44(%rbp), %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_quicly_sentmap_get
	movq	(%rax), %r13
	movq	_UINT64_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r13
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rsi
	movq	8(%rax), %r15
	movq	_QUICLY_SENTMAP_EVENT_LOST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rcx
	callq	_quicly_sentmap_update
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	testq	%r15, %r15
	setne	%al
	incq	%r13
	movq	%r13, (%r12)
	subq	%rax, %r14
	jne	LBB0_4
	jmp	LBB0_7
LBB0_9:
	xorl	%edi, %edi
	cmpq	$0, 8(%r12)
	sete	%dil
	callq	_assert
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UINT64_MAX,8,3                 ## @UINT64_MAX
	.comm	_QUICLY_SENTMAP_EVENT_LOST,4,2  ## @QUICLY_SENTMAP_EVENT_LOST
	.no_dead_strip	_mark_packets_as_lost
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mark_packets_as_lost
_mark_packets_as_lost:                  ; @mark_packets_as_lost
	.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
	mov	x20, x1
	mov	x19, x0
	cmp	x1, #0
	cset	w0, ne
	bl	_assert
	add	x1, sp, #12
	mov	x0, x19
	bl	_init_acks_iter
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	bl	_quicly_sentmap_get
	ldr	x8, [x0]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ge	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x0, sp, #12
	bl	_quicly_sentmap_skip
	b	LBB0_1
LBB0_3:
	add	x21, x19, #8
Lloh0:
	adrp	x22, _UINT64_MAX@GOTPAGE
Lloh1:
	ldr	x22, [x22, _UINT64_MAX@GOTPAGEOFF]
Lloh2:
	adrp	x23, _QUICLY_SENTMAP_EVENT_LOST@GOTPAGE
Lloh3:
	ldr	x23, [x23, _QUICLY_SENTMAP_EVENT_LOST@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	bl	_quicly_sentmap_get
	ldr	x24, [x0]
	ldr	x8, [x22]
	cmp	x24, x8
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x25, [x0, #8]
	ldr	w2, [x23]
	add	x1, sp, #12
	mov	x0, x21
	mov	x3, x19
	bl	_quicly_sentmap_update
	cbnz	w0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x25, #0
	cset	w8, ne
	add	x9, x24, #1
	str	x9, [x19]
	subs	x20, x20, x8
	b.ne	LBB0_4
	b	LBB0_8
LBB0_7:
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
LBB0_8:
	mov	w0, #0
LBB0_9:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_UINT64_MAX,8,3                 ; @UINT64_MAX
	.comm	_QUICLY_SENTMAP_EVENT_LOST,4,2  ; @QUICLY_SENTMAP_EVENT_LOST
	.no_dead_strip	_mark_packets_as_lost
.subsections_via_symbols
