	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function induceSA
_induceSA:                              ## @induceSA
	.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
	movq	%r9, %r12
	movq	%r8, %rbx
	movq	%rcx, %r14
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	cmpq	%rcx, %rdx
	jne	LBB0_2
## %bb.1:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%rbx, %rdx
	movq	%r12, %rcx
	movq	16(%rbp), %r8
	callq	_getCounts
LBB0_2:
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_getBuckets
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.3:
	movq	$-1, %rdx
	xorl	%r13d, %r13d
	xorl	%ecx, %ecx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	-2(%r14), %rdi
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	callq	_chr
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	negq	%r14
	cmpq	%rdx, %rax
	cmovbq	%r14, %r12
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r12, (%rcx)
	addq	$8, %rcx
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	cmpq	%r13, %rbx
	je	LBB0_12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%r13,8), %r14
	movq	%r14, %rax
	notq	%rax
	movq	%rax, (%r15,%r13,8)
	testq	%r14, %r14
	je	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leaq	-1(%r14), %r12
	movq	%r12, %rdi
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	callq	_chr
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	subq	%r15, %rsi
	sarq	$3, %rsi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rsi, (%rcx,%rdx,8)
	movq	(%rcx,%rax,8), %rcx
	leaq	(%r15,%rcx,8), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdx
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	testq	%r12, %r12
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r12d, %r12d
	jmp	LBB0_10
LBB0_12:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	cmpq	%r14, %r13
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_14
## %bb.13:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%rbx, %rdx
	movq	%r12, %rcx
	movq	16(%rbp), %r8
	callq	_getCounts
LBB0_14:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movl	$1, %ecx
	callq	_getBuckets
	movq	$-1, %r13
	xorl	%eax, %eax
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_15 Depth=1
	negq	%r12
	movq	%r12, %r14
LBB0_23:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, -8(%rax)
	addq	$-8, %rax
LBB0_15:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_16 Depth=2
	movq	$-1, (%r15,%rbx,8)
LBB0_16:                                ##   Parent Loop BB0_15 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	decq	%rbx
	movq	(%r15,%rbx,8), %r12
	testq	%r12, %r12
	je	LBB0_24
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	leaq	-1(%r12), %r14
	movq	%r14, %rdi
	callq	_chr
	cmpq	%r13, %rax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	subq	%r15, %rsi
	sarq	$3, %rsi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rsi, (%rcx,%r13,8)
	movq	(%rcx,%rax,8), %rcx
	leaq	(%r15,%rcx,8), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %r13
LBB0_19:                                ##   in Loop: Header=BB0_16 Depth=2
	testq	%rax, %rax
	je	LBB0_16
## %bb.20:                              ##   in Loop: Header=BB0_15 Depth=1
	testq	%r14, %r14
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_15 Depth=1
	leaq	-2(%r12), %rdi
	callq	_chr
	cmpq	%r13, %rax
	ja	LBB0_22
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_induceSA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function induceSA
_induceSA:                              ; @induceSA
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x24, x6
	mov	x22, x5
	mov	x19, x4
	mov	x20, x3
	mov	x23, x2
	mov	x21, x1
	mov	x25, x0
	cmp	x2, x3
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x25
	mov	x1, x23
	mov	x2, x19
	mov	x3, x22
	mov	x4, x24
	bl	_getCounts
LBB0_2:
	stp	x25, x24, [sp, #8]              ; 16-byte Folded Spill
	mov	x0, x23
	mov	x1, x20
	str	x22, [sp, #24]                  ; 8-byte Folded Spill
	mov	x2, x22
	mov	w3, #0
	bl	_getBuckets
	cbz	x19, LBB0_12
; %bb.3:
	mov	x27, #0
	mov	x25, #-1
	mov	x28, x21
	mov	x24, x19
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	sub	x0, x22, #2
	bl	_chr
	cmp	x0, x25
	csneg	x8, x26, x22, hs
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	str	x8, [x27], #8
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x28, x28, #8
	subs	x24, x24, #1
	b.eq	LBB0_12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x28]
	mvn	x8, x22
	str	x8, [x28]
	cbz	x22, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	x26, x22, #1
	mov	x0, x26
	bl	_chr
	cmp	x0, x25
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	x8, x27, x21
	asr	x8, x8, #3
	str	x8, [x20, x25, lsl #3]
	ldr	x8, [x20, x0, lsl #3]
	add	x27, x21, x8, lsl #3
	mov	x25, x0
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	cbnz	x26, LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x8, #0
	b	LBB0_5
LBB0_12:
	cmp	x23, x20
	ldr	x22, [sp, #24]                  ; 8-byte Folded Reload
	b.ne	LBB0_14
; %bb.13:
	ldp	x0, x4, [sp, #8]                ; 16-byte Folded Reload
	mov	x1, x23
	mov	x2, x19
	mov	x3, x22
	bl	_getCounts
LBB0_14:
	mov	x0, x23
	mov	x1, x20
	mov	x2, x22
	mov	w3, #1
	bl	_getBuckets
	mov	x24, #0
	mov	x23, #-1
	mov	x25, #-1
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	str	x23, [x21, x19, lsl #3]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	sub	x19, x19, #1
	ldr	x26, [x21, x19, lsl #3]
	cbz	x26, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	sub	x22, x26, #1
	mov	x0, x22
	bl	_chr
	cmp	x0, x25
	b.eq	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	sub	x8, x24, x21
	asr	x8, x8, #3
	str	x8, [x20, x25, lsl #3]
	ldr	x8, [x20, x0, lsl #3]
	add	x24, x21, x8, lsl #3
	mov	x25, x0
LBB0_19:                                ;   in Loop: Header=BB0_16 Depth=1
	cbz	x0, LBB0_16
; %bb.20:                               ;   in Loop: Header=BB0_16 Depth=1
	cbz	x22, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_16 Depth=1
	sub	x0, x26, #2
	bl	_chr
	cmp	x0, x25
	b.ls	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_16 Depth=1
	neg	x22, x26
LBB0_23:                                ;   in Loop: Header=BB0_16 Depth=1
	str	x22, [x24, #-8]!
	b	LBB0_16
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_induceSA
.subsections_via_symbols
