	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compareseq
_compareseq:                            ## @compareseq
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r8
	movq	%rdx, %r13
	movq	%rdi, %r14
	movq	_xvec@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_yvec@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	cmpq	%rsi, %r14
	jae	LBB0_4
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r8, %r13
	jae	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rax,%r14,8), %rdx
	cmpq	(%rdi,%r13,8), %rdx
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	incq	%r14
	incq	%r13
	cmpq	-48(%rbp), %r14                 ## 8-byte Folded Reload
	jb	LBB0_1
LBB0_4:
	movl	%r8d, %ebx
	subb	%r13b, %bl
	movq	%r8, %rsi
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movl	%r8d, %edx
	subb	%r14b, %dl
	leaq	(%rdi,%rsi,8), %rcx
	addq	$-8, %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%r8,8), %r10
	addq	$-8, %r10
	movq	%rsi, %rcx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movl	%edx, %r11d
	movq	%rax, %r9
	leaq	(%rcx,%rax), %r15
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r9), %r12
	cmpq	%r14, %r12
	jbe	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%r13, %r15
	jbe	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r10,%r9,8), %r8
	leal	3(%rdi), %ebx
	leal	3(%r11), %edx
	leaq	-1(%r9), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%rcx,%r9,8), %r8
	movq	%rsi, %rcx
	je	LBB0_5
LBB0_8:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	subq	%r14, %rdx
	subq	%r13, %rcx
	leaq	(%rcx,%r9), %rbx
	movq	%rdx, %rsi
	addq	%r9, %rdx
	je	LBB0_9
## %bb.15:
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.22:
	leaq	-80(%rbp), %r9
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movq	%r15, %rcx
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	callq	_diag
	movq	-80(%rbp), %rsi
	movq	-72(%rbp), %rcx
	movl	-64(%rbp), %r8d
	movq	%r14, %rdi
	movq	%r13, %rdx
	callq	_compareseq
	movq	-80(%rbp), %rdi
	movq	-72(%rbp), %rdx
	movl	-60(%rbp), %r8d
	movq	%r12, %rsi
	movq	%r15, %rcx
	callq	_compareseq
	jmp	LBB0_23
LBB0_9:
	cmpq	%r13, %r15
	jbe	LBB0_23
## %bb.10:
	movq	_files@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%rax), %rdx
	movq	24(%rax), %rsi
	leaq	(%rcx,%r9), %rax
	decq	%rax
	testb	$3, %bl
	je	LBB0_13
## %bb.11:
	movzbl	%dil, %ecx
	andl	$3, %ecx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rsi,%r13,8), %rdi
	incq	%r13
	movl	$1, (%rdx,%rdi,4)
	decq	%rcx
	jne	LBB0_12
LBB0_13:
	cmpq	$3, %rax
	jb	LBB0_23
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rsi,%r13,8), %rax
	movl	$1, (%rdx,%rax,4)
	movq	8(%rsi,%r13,8), %rax
	movl	$1, (%rdx,%rax,4)
	movq	16(%rsi,%r13,8), %rax
	movl	$1, (%rdx,%rax,4)
	movq	24(%rsi,%r13,8), %rax
	addq	$4, %r13
	movl	$1, (%rdx,%rax,4)
	cmpq	%r13, %r15
	jne	LBB0_14
	jmp	LBB0_23
LBB0_16:
	cmpq	%r14, %r12
	jbe	LBB0_23
## %bb.17:
	movq	_files@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rdi
	leaq	(%rsi,%r9), %rax
	decq	%rax
	testb	$3, %dl
	je	LBB0_20
## %bb.18:
	movzbl	%r11b, %edx
	andl	$3, %edx
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%r14,8), %rsi
	incq	%r14
	movl	$1, (%rcx,%rsi,4)
	decq	%rdx
	jne	LBB0_19
LBB0_20:
	cmpq	$3, %rax
	jb	LBB0_23
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%r14,8), %rax
	movl	$1, (%rcx,%rax,4)
	movq	8(%rdi,%r14,8), %rax
	movl	$1, (%rcx,%rax,4)
	movq	16(%rdi,%r14,8), %rax
	movl	$1, (%rcx,%rax,4)
	movq	24(%rdi,%r14,8), %rax
	addq	$4, %r14
	movl	$1, (%rcx,%rax,4)
	cmpq	%r14, %r12
	jne	LBB0_21
LBB0_23:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_xvec,8,3                       ## @xvec
	.comm	_yvec,8,3                       ## @yvec
	.comm	_files,8,3                      ## @files
	.no_dead_strip	_compareseq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compareseq
_compareseq:                            ; @compareseq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _xvec@GOTPAGE
Lloh1:
	ldr	x8, [x8, _xvec@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _yvec@GOTPAGE
Lloh4:
	ldr	x9, [x9, _yvec@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x0, x1
	b.hs	LBB0_4
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x19, x3
	b.hs	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x10, [x8, x20, lsl #3]
	ldr	x11, [x9, x19, lsl #3]
	cmp	x10, x11
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x20, x20, #1
	add	x19, x19, #1
	cmp	x20, x1
	b.lo	LBB0_1
LBB0_4:
	mov	x13, #0
	sub	x12, x3, x19
	sub	x10, x1, x20
	add	x9, x9, x3, lsl #3
	sub	x9, x9, #8
	add	x8, x8, x1, lsl #3
	sub	x8, x8, #8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x11, x13
	add	x21, x3, x13
	add	x22, x1, x13
	cmp	x22, x20
	ccmp	x21, x19, #0, hi
	b.ls	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	lsl	x13, x11, #3
	ldr	x14, [x8, x13]
	ldr	x15, [x9, x13]
	sub	x13, x11, #1
	cmp	x14, x15
	b.eq	LBB0_5
LBB0_7:
	add	x14, x12, x11
	adds	x13, x10, x11
	b.eq	LBB0_10
; %bb.8:
	cbz	x14, LBB0_13
; %bb.9:
	add	x5, sp, #8
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	mov	x3, x21
	bl	_diag
	ldp	x1, x3, [sp, #8]
	ldr	w4, [sp, #24]
	mov	x0, x20
	mov	x2, x19
	bl	_compareseq
	ldp	x0, x2, [sp, #8]
	ldr	w4, [sp, #28]
	mov	x1, x22
	mov	x3, x21
	bl	_compareseq
	b	LBB0_26
LBB0_10:
	cmp	x21, x19
	b.ls	LBB0_26
; %bb.11:
Lloh6:
	adrp	x8, _files@GOTPAGE
Lloh7:
	ldr	x8, [x8, _files@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x8]
	ldp	x8, x9, [x9, #16]
	add	x11, x12, x11
	cmp	x11, #4
	b.hs	LBB0_16
; %bb.12:
	mov	x10, x19
	b	LBB0_19
LBB0_13:
	cmp	x22, x20
	b.ls	LBB0_26
; %bb.14:
Lloh9:
	adrp	x8, _files@GOTPAGE
Lloh10:
	ldr	x8, [x8, _files@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x8]
	ldp	x8, x9, [x9]
	add	x11, x10, x11
	cmp	x11, #4
	b.hs	LBB0_21
; %bb.15:
	mov	x10, x20
	b	LBB0_24
LBB0_16:
	and	x12, x11, #0xfffffffffffffffc
	add	x10, x19, x12
	and	x13, x14, #0xfffffffffffffffc
	add	x14, x9, x19, lsl #3
	add	x14, x14, #16
	mov	w15, #1
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldp	x16, x17, [x14, #-16]
	ldp	x0, x1, [x14], #32
	str	w15, [x8, x16, lsl #2]
	str	w15, [x8, x17, lsl #2]
	str	w15, [x8, x0, lsl #2]
	str	w15, [x8, x1, lsl #2]
	subs	x13, x13, #4
	b.ne	LBB0_17
; %bb.18:
	cmp	x11, x12
	b.eq	LBB0_26
LBB0_19:
	mov	w11, #1
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x9, x10, lsl #3]
	add	x13, x10, #1
	str	w11, [x8, x12, lsl #2]
	mov	x10, x13
	cmp	x21, x13
	b.ne	LBB0_20
	b	LBB0_26
LBB0_21:
	and	x12, x11, #0xfffffffffffffffc
	add	x10, x20, x12
	and	x13, x13, #0xfffffffffffffffc
	add	x14, x9, x20, lsl #3
	add	x14, x14, #16
	mov	w15, #1
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldp	x16, x17, [x14, #-16]
	ldp	x0, x1, [x14], #32
	str	w15, [x8, x16, lsl #2]
	str	w15, [x8, x17, lsl #2]
	str	w15, [x8, x0, lsl #2]
	str	w15, [x8, x1, lsl #2]
	subs	x13, x13, #4
	b.ne	LBB0_22
; %bb.23:
	cmp	x11, x12
	b.eq	LBB0_26
LBB0_24:
	mov	w11, #1
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x9, x10, lsl #3]
	add	x13, x10, #1
	str	w11, [x8, x12, lsl #2]
	mov	x10, x13
	cmp	x22, x13
	b.ne	LBB0_25
LBB0_26:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_xvec,8,3                       ; @xvec
	.comm	_yvec,8,3                       ; @yvec
	.comm	_files,8,3                      ; @files
	.no_dead_strip	_compareseq
.subsections_via_symbols
