	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uni_iter_intersect             ## -- Begin function uni_iter_intersect
	.p2align	4, 0x90
_uni_iter_intersect:                    ## @uni_iter_intersect
	.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
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	_intersect_buff@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	$0, (%rax)
	testl	%esi, %esi
	je	LBB0_25
## %bb.1:
	movl	%esi, %r14d
	movq	_MAX_WORDS@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	jle	LBB0_25
## %bb.2:
	movq	%rdi, %r12
	cmpl	$1, %r14d
	jne	LBB0_3
## %bb.14:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_24
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_uni_iter_val_and_next
	testl	%eax, %eax
	je	LBB0_24
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	(%r13), %rcx
	movslq	(%rcx), %rdx
	leaq	1(%rdx), %rsi
	movl	%esi, (%rcx)
	movl	%eax, 4(%rcx,%rdx,4)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, (%rcx)
	jl	LBB0_15
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_uni_iter_val_and_next
	testl	%eax, %eax
	je	LBB0_4
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13), %rcx
	movslq	(%rcx), %rdx
	leaq	1(%rdx), %rsi
	movl	%esi, (%rcx)
	movl	%eax, 4(%rcx,%rdx,4)
	jmp	LBB0_3
LBB0_4:
	cmpl	$2, %r14d
	jl	LBB0_24
## %bb.5:
	movl	%r14d, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$1, %r14d
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpq	-56(%rbp), %r14                 ## 8-byte Folded Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_24
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##       Child Loop BB0_11 Depth 3
	movq	(%r13), %rax
	movslq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_24
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$0, (%rax)
	leaq	(%r12,%r14,4), %rbx
	movq	%rbx, %rdi
	callq	_uni_iter_val_and_next
	incq	%r14
	testl	%eax, %eax
	je	LBB0_23
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, %r12d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	%rbx, %rdi
	callq	_uni_iter_val_and_next
	testl	%eax, %eax
	je	LBB0_23
LBB0_9:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_11 Depth 3
	movq	(%r13), %rcx
	cmpl	%r15d, %r12d
	jge	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movslq	%r12d, %rsi
	leaq	(%rcx,%rsi,4), %rdx
	movq	%r15, %rdi
	subq	%rsi, %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_6 Depth=1
                                        ##     Parent Loop BB0_9 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpl	%eax, (%rdx,%rsi,4)
	jle	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=3
	incq	%rsi
	cmpq	%rsi, %rdi
	jne	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=2
	movl	%r15d, %r12d
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=2
	addl	%esi, %r12d
LBB0_19:                                ##   in Loop: Header=BB0_9 Depth=2
	movslq	%r12d, %rdx
	cmpl	%eax, (%rcx,%rdx,4)
	jne	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_9 Depth=2
	movslq	(%rcx), %rdx
	leaq	1(%rdx), %rsi
	movl	%esi, (%rcx)
	movl	%eax, 4(%rcx,%rdx,4)
	cmpq	-56(%rbp), %r14                 ## 8-byte Folded Reload
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_9 Depth=2
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, (%rcx)
	jne	LBB0_22
	jmp	LBB0_23
LBB0_24:
	movq	(%r13), %rax
	xorl	%edi, %edi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	setle	%dil
	callq	_assert
	movq	(%r13), %rax
LBB0_25:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_intersect_buff,8,3             ## @intersect_buff
	.comm	_MAX_WORDS,4,2                  ## @MAX_WORDS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uni_iter_intersect             ; -- Begin function uni_iter_intersect
	.p2align	2
_uni_iter_intersect:                    ; @uni_iter_intersect
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
Lloh0:
	adrp	x22, _intersect_buff@GOTPAGE
Lloh1:
	ldr	x22, [x22, _intersect_buff@GOTPAGEOFF]
	ldr	x0, [x22]
	str	wzr, [x0]
	cbz	w1, LBB0_24
; %bb.1:
	mov	x21, x1
Lloh2:
	adrp	x8, _MAX_WORDS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX_WORDS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w1
	b.le	LBB0_24
; %bb.2:
	mov	x19, x2
	cmp	w21, #1
	b.ne	LBB0_6
; %bb.3:
	cmp	w19, #1
	b.lt	LBB0_23
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_uni_iter_val_and_next
	cbz	w0, LBB0_23
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22]
	ldrsw	x9, [x8]
	add	x9, x9, #1
	str	w9, [x8]
	str	w0, [x8, x9, lsl #2]
	ldr	w8, [x8]
	cmp	w8, w19
	b.lt	LBB0_4
	b	LBB0_23
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_uni_iter_val_and_next
	cbz	w0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22]
	ldrsw	x9, [x8]
	add	x9, x9, #1
	str	w9, [x8]
	str	w0, [x8, x9, lsl #2]
	b	LBB0_6
LBB0_8:
	cmp	w21, #2
	b.lt	LBB0_23
; %bb.9:
	mov	w23, w21
	mov	w24, #1
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	cmp	x24, x23
	b.eq	LBB0_23
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
                                        ;       Child Loop BB0_17 Depth 3
	ldr	x8, [x22]
	ldr	w25, [x8]
	cbz	w25, LBB0_23
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	str	wzr, [x8]
	add	x21, x20, x24, lsl #2
	mov	x0, x21
	bl	_uni_iter_val_and_next
	add	x24, x24, #1
	cbz	w0, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	sxtw	x26, w25
	mov	w27, #1
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=2
	mov	x0, x21
	bl	_uni_iter_val_and_next
	cbz	w0, LBB0_10
LBB0_15:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_17 Depth 3
	ldr	x8, [x22]
	cmp	w27, w25
	b.ge	LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	add	x9, x8, w27, sxtw #2
	sub	x10, x26, w27, sxtw
LBB0_17:                                ;   Parent Loop BB0_11 Depth=1
                                        ;     Parent Loop BB0_15 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w11, [x9]
	cmp	w11, w0
	b.le	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=3
	add	w27, w27, #1
	add	x9, x9, #4
	subs	x10, x10, #1
	b.ne	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_15 Depth=2
	mov	x27, x25
LBB0_20:                                ;   in Loop: Header=BB0_15 Depth=2
	ldr	w9, [x8, w27, sxtw #2]
	cmp	w9, w0
	b.ne	LBB0_14
; %bb.21:                               ;   in Loop: Header=BB0_15 Depth=2
	ldrsw	x9, [x8]
	add	x9, x9, #1
	str	w9, [x8]
	str	w0, [x8, x9, lsl #2]
	cmp	x24, x23
	b.ne	LBB0_14
; %bb.22:                               ;   in Loop: Header=BB0_15 Depth=2
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_14
	b	LBB0_10
LBB0_23:
	ldr	x8, [x22]
	ldr	w8, [x8]
	cmp	w8, w19
	cset	w0, le
	bl	_assert
	ldr	x0, [x22]
LBB0_24:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_intersect_buff,8,3             ; @intersect_buff
	.comm	_MAX_WORDS,4,2                  ; @MAX_WORDS
.subsections_via_symbols
