	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_quicly_ranges_subtract         ## -- Begin function quicly_ranges_subtract
	.p2align	4, 0x90
_quicly_ranges_subtract:                ## @quicly_ranges_subtract
	.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
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	xorl	%edi, %edi
	cmpq	%rdx, %rsi
	setle	%dil
	callq	_assert
	xorl	%r15d, %r15d
	cmpq	%r12, %r13
	je	LBB0_26
## %bb.1:
	movslq	(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_26
## %bb.2:
	movq	8(%r14), %rdi
	cmpq	%r12, (%rdi)
	jge	LBB0_26
## %bb.3:
	movq	%rdx, %rax
	shlq	$4, %rax
	cmpq	%r13, -8(%rax,%rdi)
	jle	LBB0_26
## %bb.4:
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rdi,%rbx), %rax
	incq	%rcx
	addq	$16, %rbx
	cmpq	%r13, %rax
	jl	LBB0_5
## %bb.6:
	leaq	(%rdi,%rbx), %r8
	leaq	-1(%rcx), %rsi
	movq	-16(%rdi,%rbx), %r9
	cmpq	%r12, %rax
	jge	LBB0_7
## %bb.16:
	cmpq	%r13, %r9
	jge	LBB0_18
## %bb.17:
	movq	%r13, -8(%r8)
	movq	%rcx, %rsi
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, %rdx
	je	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	cmpq	%r12, (%r8)
	jge	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	incq	%rcx
	leaq	16(%r8), %rax
	cmpq	%r12, 8(%r8)
	movq	%rax, %r8
	jle	LBB0_18
## %bb.21:
	movq	%r12, -16(%rax)
	decq	%rcx
LBB0_22:
	movq	%rcx, %rdx
LBB0_23:
	xorl	%r15d, %r15d
	cmpq	%rdx, %rsi
	je	LBB0_26
## %bb.24:
	movq	%r14, %rdi
	jmp	LBB0_25
LBB0_7:
	xorl	%r15d, %r15d
	cmpq	%r12, %r9
	jge	LBB0_26
## %bb.8:
	cmpq	%r13, %r9
	jge	LBB0_9
## %bb.12:
	cmpq	%r12, %rax
	jne	LBB0_14
## %bb.13:
	movq	%r13, -8(%r8)
	movq	%r13, %rax
	movq	%r9, %r12
	jmp	LBB0_10
LBB0_9:
	movq	%r12, -16(%rdi,%rbx)
LBB0_10:
	cmpq	%rax, %r12
	jne	LBB0_26
## %bb.11:
	movq	%r14, %rdi
	movq	%rcx, %rdx
LBB0_25:
	callq	_quicly_ranges_shrink
LBB0_26:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	callq	_insert_at
	movl	$-1, %r15d
	testq	%rax, %rax
	jne	LBB0_26
## %bb.15:
	movq	8(%r14), %rax
	movq	%r13, -8(%rax,%rbx)
	xorl	%r15d, %r15d
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_quicly_ranges_subtract         ; -- Begin function quicly_ranges_subtract
	.p2align	2
_quicly_ranges_subtract:                ; @quicly_ranges_subtract
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	cmp	x1, x2
	cset	w0, le
	bl	_assert
	cmp	x21, x20
	b.eq	LBB0_24
; %bb.1:
	ldrsw	x2, [x19]
	cbz	w2, LBB0_24
; %bb.2:
	ldr	x9, [x19, #8]
	ldr	x8, [x9]
	cmp	x8, x20
	b.ge	LBB0_24
; %bb.3:
	add	x8, x9, x2, lsl #4
	ldur	x8, [x8, #-8]
	cmp	x8, x21
	b.le	LBB0_24
; %bb.4:
	mov	x22, #0
	mov	x3, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x9, x22
	ldr	x8, [x8, #8]
	add	x3, x3, #1
	add	x22, x22, #16
	cmp	x8, x21
	b.lt	LBB0_5
; %bb.6:
	add	x9, x9, x22
	ldur	x10, [x9, #-16]
	sub	x1, x3, #1
	cmp	x8, x20
	b.ge	LBB0_13
; %bb.7:
	cmp	x10, x21
	b.ge	LBB0_9
; %bb.8:
	stur	x21, [x9, #-8]
	mov	x1, x3
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x2, x3
	b.eq	LBB0_18
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x9]
	cmp	x8, x20
	b.ge	LBB0_17
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x9, #8]
	add	x3, x3, #1
	add	x9, x9, #16
	cmp	x8, x20
	b.le	LBB0_9
; %bb.12:
	stur	x20, [x9, #-16]
	sub	x2, x3, #1
	b	LBB0_18
LBB0_13:
	cmp	x10, x20
	b.ge	LBB0_24
; %bb.14:
	cmp	x10, x21
	b.ge	LBB0_20
; %bb.15:
	cmp	x8, x20
	b.ne	LBB0_26
; %bb.16:
	stur	x21, [x9, #-8]
	mov	x8, x21
	mov	x20, x10
	b	LBB0_21
LBB0_17:
	mov	x2, x3
LBB0_18:
	cmp	x1, x2
	b.eq	LBB0_24
; %bb.19:
	mov	x0, x19
	b	LBB0_23
LBB0_20:
	stur	x20, [x9, #-16]
LBB0_21:
	cmp	x20, x8
	b.ne	LBB0_24
; %bb.22:
	mov	x0, x19
	mov	x2, x3
LBB0_23:
	bl	_quicly_ranges_shrink
LBB0_24:
	mov	w0, #0
LBB0_25:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_26:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x8
	bl	_insert_at
	cbz	x0, LBB0_28
; %bb.27:
	mov	w0, #-1
	b	LBB0_25
LBB0_28:
	ldr	x8, [x19, #8]
	add	x8, x8, x22
	stur	x21, [x8, #-8]
	b	LBB0_25
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
