	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_suffix_array_check             ## -- Begin function suffix_array_check
	.p2align	4, 0x90
_suffix_array_check:                    ## @suffix_array_check
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %r8d
	cmpl	$2, %r8d
	jl	LBB0_13
## %bb.1:
	movl	$1, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movb	(%rdx), %al
	cmpb	(%rsi), %al
	setb	%al
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movzbl	%al, %edi
	callq	_assert
	movq	24(%r14), %rax
	xorl	%edi, %edi
	cmpl	(%rax,%r12,4), %ebx
	sete	%dil
	callq	_assert
	incq	%r12
	movslq	(%r14), %r8
	cmpq	%r8, %r12
	jge	LBB0_13
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	8(%r14), %r9
	movq	16(%r14), %rax
	movslq	(%rax,%r15,4), %rdi
	movq	%rdi, %rdx
	addq	%r9, %rdx
	movslq	(%rax,%r12,4), %rax
	movq	%rax, %rsi
	addq	%r9, %rsi
	cmpl	%eax, %edi
	cmovgl	%edi, %eax
	movl	%r8d, %ebx
	subl	%eax, %ebx
	testl	%ebx, %ebx
	jle	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %eax
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rdx,%rdi), %ecx
	cmpb	(%rsi,%rdi), %cl
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	incq	%rdi
	cmpl	%edi, %eax
	jne	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	%rdi, %rsi
	addq	%rdi, %rdx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	%rdi, %rsi
	addq	%rdi, %rdx
	movl	%edi, %ebx
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r8d, %rax
	addq	%rax, %r9
	cmpq	%r9, %rdx
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movb	$1, %al
	jmp	LBB0_12
LBB0_13:
	movq	24(%r14), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
	callq	_assert
	movq	24(%r14), %rax
	movslq	(%r14), %rcx
	xorl	%edi, %edi
	cmpl	$0, (%rax,%rcx,4)
	sete	%dil
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_assert                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_suffix_array_check             ; -- Begin function suffix_array_check
	.p2align	2
_suffix_array_check:                    ; @suffix_array_check
	.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, x0
	ldr	w8, [x0]
	cmp	w8, #2
	b.lt	LBB0_13
; %bb.1:
	mov	x20, #0
	mov	w21, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x10]
	ldrb	w9, [x11]
	cmp	w8, w9
	cset	w0, lo
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	bl	_assert
	ldr	x8, [x19, #24]
	ldr	w8, [x8, x21, lsl #2]
	cmp	w22, w8
	cset	w0, eq
	bl	_assert
	add	x21, x21, #1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.ge	LBB0_13
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldp	x9, x10, [x19, #8]
	ldrsw	x12, [x10, x20, lsl #2]
	ldrsw	x13, [x10, x21, lsl #2]
	add	x10, x9, x12
	add	x11, x9, x13
	cmp	w12, w13
	csel	w12, w12, w13, gt
	sub	w22, w8, w12
	cmp	w22, #1
	b.lt	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x12, #0
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w13, [x10, x12]
	ldrb	w14, [x11, x12]
	cmp	w13, w14
	b.ne	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x12, x12, #1
	cmp	w22, w12
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x11, x11, x12
	add	x10, x10, x12
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w22, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x11, x11, x12
	add	x10, x10, x12
	mov	x22, x12
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x9, w8, sxtw
	cmp	x10, x8
	b.ne	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
	b	LBB0_3
LBB0_13:
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
	bl	_assert
	ldr	x8, [x19, #24]
	ldrsw	x9, [x19]
	ldr	w8, [x8, x9, lsl #2]
	cmp	w8, #0
	cset	w0, eq
	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
	b	_assert
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
