	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intersect
_intersect:                             ## @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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdx), %r14d
	testl	%r14d, %r14d
	jle	LBB0_30
## %bb.1:
	movl	%r9d, %r10d
	leaq	48(%rdi), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	24(%rdi), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r12d
	cmpl	%r14d, %r12d
	jge	LBB0_30
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##     Child Loop BB0_15 Depth 2
                                        ##     Child Loop BB0_22 Depth 2
                                        ##     Child Loop BB0_26 Depth 2
	testl	%r9d, %r9d
	jle	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r12d, %r15
	movq	(%rdi,%r15,8), %rbx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	(%rcx,%rax,8), %rbx
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	incq	%rax
	cmpq	%rax, %r10
	jne	LBB0_4
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rsi,%r15,8), %rbx
	cmpq	(%r8,%rax,8), %rbx
	jne	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%r12), %eax
	cmpl	%r14d, %eax
	jge	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movslq	%eax, %r13
	leal	-1(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r14d, %eax
	subl	%r12d, %eax
	addl	$-2, %eax
	cmpl	$3, %eax
	jb	LBB0_20
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rdi,%r15,8), %rdx
	leaq	(%rdi,%r13,8), %rsi
	subq	%rsi, %rdx
	cmpq	$32, %rdx
	jb	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	incq	%rax
	movq	%rax, %rdx
	andq	$-4, %rdx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	addq	$-4, %rdx
	movq	%rdx, %r11
	shrq	$2, %r11
	incq	%r11
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r11, %rbx
	andq	$-2, %r11
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%r13,8), %rsi
	leaq	(%rdx,%r15,8), %r8
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	-48(%rsi,%rdx,8), %xmm0
	movups	-32(%rsi,%rdx,8), %xmm1
	movups	%xmm0, -48(%r8,%rdx,8)
	movups	%xmm1, -32(%r8,%rdx,8)
	movups	-16(%rsi,%rdx,8), %xmm0
	movups	(%rsi,%rdx,8), %xmm1
	movups	%xmm0, -16(%r8,%rdx,8)
	movups	%xmm1, (%r8,%rdx,8)
	addq	$8, %rdx
	addq	$-2, %r11
	jne	LBB0_15
	jmp	LBB0_16
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	decl	%r14d
	movl	%r14d, %eax
	jmp	LBB0_28
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r11, %rbx
	xorl	%edx, %edx
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %bl
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rdx,%r13), %rsi
	addq	%r15, %rdx
	movups	(%rdi,%rsi,8), %xmm0
	movups	16(%rdi,%rsi,8), %xmm1
	movups	%xmm0, (%rdi,%rdx,8)
	movups	%xmm1, 16(%rdi,%rdx,8)
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, %rax
	je	LBB0_27
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdx, %rax
	addq	%rdx, %r15
	addq	%rdx, %r13
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %r11d
	subl	%r15d, %r11d
	movl	%r15d, %eax
	notl	%eax
	addl	%r14d, %eax
	addl	$-2, %r11d
	andl	$3, %eax
	je	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	negl	%eax
	movq	%rdi, %rbx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx,%r13,8), %rdx
	movq	%rdx, (%rbx,%r15,8)
	decq	%rsi
	addq	$8, %rbx
	cmpl	%esi, %eax
	jne	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_2 Depth=1
	subq	%rsi, %r15
	subq	%rsi, %r13
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$3, %r11d
	jb	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %r11d
	notl	%r11d
	addl	%r14d, %r11d
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r15,8), %rsi
	leaq	(%rax,%r13,8), %rbx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_26:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-24(%rbx,%rdx,8), %rax
	movq	%rax, -24(%rsi,%rdx,8)
	movq	-16(%rbx,%rdx,8), %rax
	movq	%rax, -16(%rsi,%rdx,8)
	movq	-8(%rbx,%rdx,8), %rax
	movq	%rax, -8(%rsi,%rdx,8)
	movq	(%rbx,%rdx,8), %rax
	movq	%rax, (%rsi,%rdx,8)
	addq	$4, %rdx
	cmpl	%edx, %r11d
	jne	LBB0_26
LBB0_27:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_28:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, (%rdx)
	movl	%eax, %r14d
	cmpl	%r14d, %r12d
	jl	LBB0_2
LBB0_30:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_intersect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intersect
_intersect:                             ; @intersect
	.cfi_startproc
; %bb.0:
	ldr	w11, [x2]
	cmp	w11, #1
	b.lt	LBB0_18
; %bb.1:
	mov	w8, #0
	mov	w9, w5
	add	x10, x0, #32
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w8, #1
	cmp	w8, w11
	b.ge	LBB0_18
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;     Child Loop BB0_12 Depth 2
                                        ;     Child Loop BB0_15 Depth 2
	cmp	w5, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x14, w8
	mov	x13, x14
	ldr	x12, [x0, w8, sxtw #3]
	mov	x16, x9
	mov	x17, x3
	mov	x15, x4
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x6, [x17]
	cmp	x12, x6
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x15, x15, #8
	add	x17, x17, #8
	subs	x16, x16, #1
	b.ne	LBB0_5
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x12, [x1, x13, lsl #3]
	ldr	x15, [x15]
	cmp	x12, x15
	b.ne	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w12, w8, #1
	cmp	w12, w11
	b.ge	LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x15, w12
	sub	w12, w11, #1
	sub	w16, w11, w8
	sub	w16, w16, #2
	cmp	w16, #7
	b.lo	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x17, x0, x14, lsl #3
	add	x6, x0, x15, lsl #3
	sub	x17, x17, x6
	cmp	x17, #64
	b.lo	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x16, x16, #1
	and	x17, x16, #0x1fffffff8
	add	x13, x17, x14
	add	x6, x17, x15
	add	x15, x10, x15, lsl #3
	add	x14, x10, x14, lsl #3
	mov	x7, x17
LBB0_12:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q0, q1, [x15, #-32]
	ldp	q2, q3, [x15], #64
	stp	q0, q1, [x14, #-32]
	stp	q2, q3, [x14], #64
	subs	x7, x7, #8
	b.ne	LBB0_12
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x15, x6
	cmp	x16, x17
	b.eq	LBB0_17
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x14, x0, x13, lsl #3
	mvn	w13, w13
	add	w11, w13, w11
	add	x13, x0, x15, lsl #3
LBB0_15:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x15, [x13], #8
	str	x15, [x14], #8
	subs	w11, w11, #1
	b.ne	LBB0_15
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w12, w11, #1
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w12, [x2]
	mov	x11, x12
	cmp	w8, w11
	b.lt	LBB0_3
LBB0_18:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_intersect
.subsections_via_symbols
