	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_quicly_sendstate_acked         ## -- Begin function quicly_sendstate_acked
	.p2align	4, 0x90
_quicly_sendstate_acked:                ## @quicly_sendstate_acked
	.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	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	leaq	8(%rdi), %r15
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %edx
	movl	4(%rsi), %esi
	movq	%r15, %rdi
	callq	_quicly_ranges_add
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.1:
	testl	%r14d, %r14d
	je	LBB0_2
LBB0_3:
	cmpq	$0, 16(%r12)
	je	LBB0_4
## %bb.5:
	movq	8(%r12), %rax
	movq	24(%r12), %rcx
	movq	(%rax), %rax
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setle	%dil
	jmp	LBB0_6
LBB0_2:
	leaq	16(%r12), %rdi
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	callq	_quicly_ranges_subtract
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_12
	jmp	LBB0_3
LBB0_4:
	movl	$1, %edi
LBB0_6:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	callq	_assert
	movq	(%r15), %rax
	movq	(%rax), %rbx
	xorl	%r13d, %r13d
	cmpq	%rbx, %r14
	jne	LBB0_8
## %bb.7:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_8:
	movq	(%r12), %rax
	cmpq	%rax, %rbx
	jle	LBB0_10
## %bb.9:
	incq	%rax
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	sete	%dil
	callq	_assert
	decq	%rbx
LBB0_10:
	subq	%r14, %rbx
LBB0_11:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
LBB0_12:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_quicly_sendstate_acked         ; -- Begin function quicly_sendstate_acked
	.p2align	2
_quicly_sendstate_acked:                ; @quicly_sendstate_acked
	.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	x19, x3
	mov	x23, x2
	mov	x22, x1
	mov	x20, x0
	mov	x21, x0
	ldr	x8, [x21, #8]!
	ldr	x24, [x8]
	ldr	w1, [x1, #4]
	ldr	w2, [x22]
	mov	x0, x21
	bl	_quicly_ranges_add
	cbnz	w0, LBB0_12
; %bb.1:
	cbz	w23, LBB0_4
LBB0_2:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	x9, [x20, #24]
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, le
	b	LBB0_6
LBB0_4:
	add	x0, x20, #16
	ldp	w2, w1, [x22]
	bl	_quicly_ranges_subtract
	cbnz	w0, LBB0_12
	b	LBB0_2
LBB0_5:
	mov	w0, #1
LBB0_6:
	bl	_assert
	ldr	x8, [x21]
	ldr	x21, [x8]
	cmp	x24, x21
	b.ne	LBB0_8
; %bb.7:
	mov	x8, #0
	b	LBB0_11
LBB0_8:
	ldr	x8, [x20]
	cmp	x21, x8
	b.le	LBB0_10
; %bb.9:
	add	x8, x8, #1
	cmp	x21, x8
	cset	w0, eq
	bl	_assert
	sub	x21, x21, #1
LBB0_10:
	sub	x8, x21, x24
LBB0_11:
	mov	w0, #0
	str	x8, [x19]
LBB0_12:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
