	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iterator_remove_common_items
_iterator_remove_common_items:          ## @iterator_remove_common_items
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	cmpq	$0, 16(%rdi)
	movq	16(%rsi), %rax
	je	LBB0_7
## %bb.1:
	testq	%rax, %rax
	jne	LBB0_2
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_iterator_prev
	movq	%r14, %rdi
	callq	_iterator_prev
	movq	16(%r15), %rdi
	movl	%ebx, %esi
	callq	_ranges_delitem
	movq	16(%r14), %rdi
	movl	%ebx, %esi
	callq	_ranges_delitem
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	%r15, %rdi
	callq	_iterator_next
	movq	%r14, %rdi
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	callq	_iterator_next
	movl	(%r15), %ebx
	cmpl	$-1, %ebx
	je	LBB0_26
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	(%r14), %eax
	cmpl	$-1, %eax
	je	LBB0_26
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%r15, %rdi
	cmpl	%eax, %ebx
	je	LBB0_6
## %bb.25:                              ##   in Loop: Header=BB0_3 Depth=2
	cmovgq	%r14, %rdi
	jmp	LBB0_3
LBB0_26:
	movl	$-1, 8(%r15)
	movq	$-1, (%r15)
	movl	$-1, 8(%r14)
	movq	$-1, (%r14)
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_7:
	testq	%rax, %rax
	je	LBB0_8
LBB0_12:
	leaq	L_.str(%rip), %rdi
	callq	_ERR
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_27:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	4(%r15), %ecx
	movl	4(%r14), %edx
	cmpl	%edx, %ecx
	jge	LBB0_10
## %bb.9:
	movl	8(%r15), %eax
	cmpl	8(%r14), %eax
	jg	LBB0_12
LBB0_10:
	cmpl	%edx, %ecx
	jle	LBB0_13
## %bb.11:
	movl	8(%r15), %eax
	cmpl	8(%r14), %eax
	jl	LBB0_12
LBB0_13:
	movq	_TRUE@GOTPCREL(%rip), %rax
	cmpl	$-1, %ecx
	je	LBB0_27
## %bb.14:
	cmpl	$-1, %edx
	je	LBB0_27
## %bb.15:
	movl	8(%r15), %esi
	cmpl	%edx, %ecx
	jge	LBB0_17
## %bb.16:
	movl	%edx, 8(%r15)
	jmp	LBB0_20
LBB0_17:
	movl	8(%r14), %edx
	cmpl	%edx, %esi
	jle	LBB0_19
## %bb.18:
	movl	%edx, 4(%r15)
	jmp	LBB0_20
LBB0_19:
	movq	$-1, 4(%r15)
LBB0_20:
	cmpl	%ecx, 4(%r14)
	jge	LBB0_22
## %bb.21:
	movl	%ecx, 8(%r14)
	jmp	LBB0_27
LBB0_22:
	cmpl	%esi, 8(%r14)
	jle	LBB0_24
## %bb.23:
	movl	%esi, 4(%r14)
	jmp	LBB0_27
LBB0_24:
	movq	$-1, 4(%r14)
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"result is not a one range iterator\n"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_iterator_remove_common_items
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iterator_remove_common_items
_iterator_remove_common_items:          ; @iterator_remove_common_items
	.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	x19, x1
	mov	x20, x0
	ldr	x9, [x0, #16]
	ldr	x8, [x1, #16]
	cbz	x9, LBB0_10
; %bb.1:
	cbnz	x8, LBB0_3
	b	LBB0_11
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_iterator_prev
	mov	x0, x19
	bl	_iterator_prev
	ldr	x0, [x20, #16]
	mov	x1, x21
	bl	_ranges_delitem
	ldr	x0, [x19, #16]
	mov	x1, x21
	bl	_ranges_delitem
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	mov	x0, x20
	bl	_iterator_next
	mov	x0, x19
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_iterator_next
	ldr	w21, [x20]
	cmn	w21, #1
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	w8, [x19]
	cmn	w8, #1
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=2
	cmp	w21, w8
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=2
	csel	x0, x19, x20, gt
	b	LBB0_4
LBB0_8:
	mov	w8, #-1
	str	w8, [x20, #8]
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x20]
	str	w8, [x19, #8]
	str	d0, [x19]
LBB0_9:
Lloh0:
	adrp	x10, _TRUE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _TRUE@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
	cbz	x8, LBB0_13
LBB0_11:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ERR
Lloh4:
	adrp	x10, _FALSE@GOTPAGE
Lloh5:
	ldr	x10, [x10, _FALSE@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x10]
	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_13:
	ldr	w8, [x20, #4]
	ldr	w9, [x19, #4]
	cmp	w8, w9
	b.ge	LBB0_15
; %bb.14:
	ldr	w10, [x20, #8]
	ldr	w11, [x19, #8]
	cmp	w10, w11
	b.gt	LBB0_11
LBB0_15:
	cmp	w8, w9
	b.le	LBB0_17
; %bb.16:
	ldr	w10, [x20, #8]
	ldr	w11, [x19, #8]
	cmp	w10, w11
	b.lt	LBB0_11
LBB0_17:
Lloh6:
	adrp	x10, _TRUE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TRUE@GOTPAGEOFF]
	cmn	w8, #1
	b.eq	LBB0_12
; %bb.18:
	cmn	w9, #1
	b.eq	LBB0_12
; %bb.19:
	ldr	w10, [x20, #8]
	cmp	w8, w9
	b.ge	LBB0_21
; %bb.20:
	str	w9, [x20, #8]
	b	LBB0_24
LBB0_21:
	ldr	w9, [x19, #8]
	cmp	w10, w9
	b.le	LBB0_23
; %bb.22:
	str	w9, [x20, #4]
	b	LBB0_24
LBB0_23:
	movi.2d	v0, #0xffffffffffffffff
	stur	d0, [x20, #4]
LBB0_24:
	ldr	w9, [x19, #4]
	cmp	w9, w8
	b.ge	LBB0_26
; %bb.25:
	str	w8, [x19, #8]
	b	LBB0_9
LBB0_26:
	ldr	w8, [x19, #8]
	cmp	w8, w10
	b.le	LBB0_28
; %bb.27:
	str	w10, [x19, #4]
	b	LBB0_9
LBB0_28:
	movi.2d	v0, #0xffffffffffffffff
	stur	d0, [x19, #4]
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"result is not a one range iterator\n"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_iterator_remove_common_items
.subsections_via_symbols
