	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_divsufsort                     ## -- Begin function divsufsort
	.p2align	4, 0x90
_divsufsort:                            ## @divsufsort
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %ebx
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.1:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.2:
	movl	%edx, %r13d
	testl	%edx, %edx
	js	LBB0_13
## %bb.3:
	je	LBB0_4
## %bb.5:
	movq	%rdi, %r15
	cmpl	$2, %r13d
	je	LBB0_8
## %bb.6:
	cmpl	$1, %r13d
	jne	LBB0_9
## %bb.7:
	movl	$0, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_4:
	movl	%r13d, %ebx
	jmp	LBB0_13
LBB0_8:
	movq	(%r15), %rax
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	cmpq	8(%r15), %rax
	setl	%cl
	setge	%dl
	movl	$0, (%r14,%rdx,4)
	movl	$1, (%r14,%rcx,4)
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_9:
	movq	_BUCKET_A_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$2, %edi
	callq	_malloc
	movq	%rax, %r12
	movq	_BUCKET_B_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$2, %edi
	callq	_malloc
	movl	$-2, %ebx
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	testq	%r12, %r12
	je	LBB0_12
## %bb.10:
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	%rax, %rcx
	movl	%r13d, %r8d
	movq	%rax, %r12
	callq	_sort_typeBstar
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movq	%r12, %rcx
	movl	%r13d, %r8d
	movl	%eax, %r9d
	callq	_construct_SA
	movq	%r12, %rax
	xorl	%ebx, %ebx
LBB0_12:
	movq	%rax, %rdi
	callq	_free
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUCKET_A_SIZE,4,2              ## @BUCKET_A_SIZE
	.comm	_BUCKET_B_SIZE,4,2              ## @BUCKET_B_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_divsufsort                     ; -- Begin function divsufsort
	.p2align	2
_divsufsort:                            ; @divsufsort
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	w22, #-1
	cbz	x0, LBB0_13
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_13
; %bb.2:
	mov	x20, x2
	tbnz	w2, #31, LBB0_13
; %bb.3:
	cbz	w20, LBB0_7
; %bb.4:
	mov	x21, x0
	cmp	w20, #2
	b.eq	LBB0_8
; %bb.5:
	cmp	w20, #1
	b.ne	LBB0_9
; %bb.6:
	mov	w22, #0
	str	wzr, [x19]
	b	LBB0_13
LBB0_7:
	mov	x22, x20
	b	LBB0_13
LBB0_8:
	mov	w22, #0
	ldp	x8, x9, [x21]
	cmp	x8, x9
	cset	w8, lt
	cset	w9, ge
	str	wzr, [x19, w9, uxtw #2]
	mov	w9, #1
	str	w9, [x19, w8, uxtw #2]
	b	LBB0_13
LBB0_9:
Lloh0:
	adrp	x8, _BUCKET_A_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BUCKET_A_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w0, w8, #2
	bl	_malloc
	mov	x23, x0
Lloh3:
	adrp	x8, _BUCKET_B_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BUCKET_B_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w0, w8, #2
	bl	_malloc
	mov	x24, x0
	cmp	x23, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_11
; %bb.10:
	mov	w22, #-2
	b	LBB0_12
LBB0_11:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x23
	mov	x3, x24
	mov	x4, x20
	bl	_sort_typeBstar
	mov	x5, x0
	mov	x0, x21
	mov	x1, x19
	mov	x2, x23
	mov	x3, x24
	mov	x4, x20
	bl	_construct_SA
	mov	w22, #0
LBB0_12:
	mov	x0, x24
	bl	_free
	mov	x0, x23
	bl	_free
LBB0_13:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BUCKET_A_SIZE,4,2              ; @BUCKET_A_SIZE
	.comm	_BUCKET_B_SIZE,4,2              ; @BUCKET_B_SIZE
.subsections_via_symbols
