	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NISortAffixes                  ## -- Begin function NISortAffixes
	.p2align	4, 0x90
_NISortAffixes:                         ## @NISortAffixes
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %r12d
	testl	%r12d, %r12d
	je	LBB0_20
## %bb.1:
	movq	%rdi, %r14
	movl	%r12d, %eax
	cmpl	$2, %r12d
	jl	LBB0_3
## %bb.2:
	movq	32(%r14), %rdi
	movq	_cmpaffix@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %esi
	movl	$40, %edx
	callq	_qsort
	movl	(%r14), %eax
LBB0_3:
	shll	$3, %eax
	leal	(%rax,%rax,2), %edi
	callq	_palloc
	movq	%rax, 24(%r14)
	movq	$0, 16(%rax)
	cmpl	$0, (%r14)
	je	LBB0_4
## %bb.5:
	xorl	%ebx, %ebx
	movq	_FF_SUFFIX@GOTPCREL(%rip), %rdx
	movq	_FF_COMPOUNDFLAG@GOTPCREL(%rip), %rdi
	xorl	%r13d, %r13d
	movq	%rax, %rsi
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	_FF_SUFFIX@GOTPCREL(%rip), %rdx
	movq	_FF_COMPOUNDFLAG@GOTPCREL(%rip), %rdi
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r13
	movslq	(%r14), %rax
	addq	$40, %rbx
	cmpq	%rax, %r13
	jae	LBB0_18
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r12d, %rcx
	movl	%r13d, %eax
	cmpq	%rcx, %r13
	jb	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%r12d, %eax
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	32(%r14), %r15
	movq	(%r15,%rbx), %rcx
	cmpq	(%rdx), %rcx
	cmovel	%eax, %r12d
	movl	(%rdi), %eax
	testl	%eax, 8(%r15,%rbx)
	je	LBB0_17
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, 16(%r15,%rbx)
	jle	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	32(%r15,%rbx), %esi
	movq	%r14, %rdi
	callq	_isAffixInUse
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r15,%rbx), %rax
	movq	%r14, %rcx
	xorl	%r14d, %r14d
	movq	_FF_SUFFIX@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%r14b
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	cmpq	24(%rcx), %rsi
	movq	_FF_COMPOUNDFLAG@GOTPCREL(%rip), %rdi
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%r14d, -24(%rsi)
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-16(%rsi), %rdx
	movq	-8(%rsi), %rdi
	movq	24(%r15,%rbx), %rsi
	callq	_strbncmp
	movq	_FF_COMPOUNDFLAG@GOTPCREL(%rip), %rdi
	movq	_FF_SUFFIX@GOTPCREL(%rip), %rdx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	24(%r15,%rbx), %rax
	movq	%rax, 16(%rsi)
	movq	16(%r15,%rbx), %rax
	movq	%rax, 8(%rsi)
	movl	%r14d, (%rsi)
	addq	$24, %rsi
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_18:
	movq	24(%r14), %rax
	jmp	LBB0_19
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rax, %rsi
LBB0_19:
	movq	$0, 16(%rsi)
	subl	%eax, %esi
	addl	$24, %esi
	movq	%rax, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_repalloc
	movq	%rax, 24(%r14)
	movq	_FF_PREFIX@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	callq	_mkANode
	movq	%rax, 16(%r14)
	movl	(%r14), %edx
	movq	_FF_SUFFIX@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	%r14, %rdi
	movl	%r12d, %esi
	xorl	%ecx, %ecx
	callq	_mkANode
	movq	%rax, 8(%r14)
	movq	%r14, %rdi
	movl	$1, %esi
	movl	%r12d, %edx
	callq	_mkVoidAffix
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mkVoidAffix                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cmpaffix,4,2                   ## @cmpaffix
	.comm	_FF_SUFFIX,8,3                  ## @FF_SUFFIX
	.comm	_FF_COMPOUNDFLAG,4,2            ## @FF_COMPOUNDFLAG
	.comm	_FF_PREFIX,8,3                  ## @FF_PREFIX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NISortAffixes                  ; -- Begin function NISortAffixes
	.p2align	2
_NISortAffixes:                         ; @NISortAffixes
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	w19, [x0]
	cbz	w19, LBB0_14
; %bb.1:
	mov	x20, x0
	mov	x8, x19
	cmp	w19, #2
	b.lt	LBB0_3
; %bb.2:
	ldr	x0, [x20, #32]
Lloh0:
	adrp	x8, _cmpaffix@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cmpaffix@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x1, x19
	mov	w2, #40
	bl	_qsort
	ldr	w8, [x20]
LBB0_3:
	add	w8, w8, w8, lsl #1
	lsl	w0, w8, #3
	bl	_palloc
	str	x0, [x20, #24]
	str	xzr, [x0, #16]
	ldr	w8, [x20]
Lloh3:
	adrp	x21, _FF_SUFFIX@GOTPAGE
Lloh4:
	ldr	x21, [x21, _FF_SUFFIX@GOTPAGEOFF]
	cbz	w8, LBB0_15
; %bb.4:
	mov	x23, #0
	mov	x24, #0
Lloh5:
	adrp	x25, _FF_COMPOUNDFLAG@GOTPAGE
Lloh6:
	ldr	x25, [x25, _FF_COMPOUNDFLAG@GOTPAGEOFF]
	mov	x22, x0
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x27, x23
	ldr	x8, [x8, #24]
	ldr	x9, [x26, #16]
	stp	x9, x8, [x22, #8]
	str	w28, [x22], #24
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x20]
	add	x23, x23, #40
	cmp	x24, x8
	b.hs	LBB0_13
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x20, #32]
	add	x26, x27, x23
	ldr	x8, [x26]
	ldr	x9, [x21]
	cmp	x24, w19, sxtw
	ccmp	x8, x9, #0, lo
	csel	w19, w24, w19, eq
	ldr	w8, [x26, #8]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x26, #16]
	cmp	x8, #1
	b.lt	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x27, x23
	ldr	w1, [x8, #32]
	mov	x0, x20
	bl	_isAffixInUse
	cbz	x0, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x27, x23]
	ldr	x9, [x21]
	cmp	x8, x9
	cset	w28, eq
	ldr	x8, [x20, #24]
	cmp	x22, x8
	b.eq	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	ldur	w8, [x22, #-24]
	cmp	w8, w28
	b.ne	LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x27, x23
	ldr	x1, [x8, #24]
	ldp	x2, x0, [x22, #-16]
	bl	_strbncmp
	cbnz	x0, LBB0_5
	b	LBB0_6
LBB0_13:
	ldr	x0, [x20, #24]
	b	LBB0_16
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_15:
	mov	x22, x0
LBB0_16:
	str	xzr, [x22, #16]
	sub	w8, w22, w0
	add	w1, w8, #24
	bl	_repalloc
	str	x0, [x20, #24]
Lloh7:
	adrp	x8, _FF_PREFIX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FF_PREFIX@GOTPAGEOFF]
Lloh9:
	ldr	x4, [x8]
	mov	x0, x20
	mov	w1, #0
	mov	x2, x19
	mov	w3, #0
	bl	_mkANode
	str	x0, [x20, #16]
	ldr	w2, [x20]
	ldr	x4, [x21]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	bl	_mkANode
	str	x0, [x20, #8]
	mov	x0, x20
	mov	w1, #1
	mov	x2, x19
	bl	_mkVoidAffix
	mov	x0, x20
	mov	w1, #0
	mov	x2, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_mkVoidAffix
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_cmpaffix,4,2                   ; @cmpaffix
	.comm	_FF_SUFFIX,8,3                  ; @FF_SUFFIX
	.comm	_FF_COMPOUNDFLAG,4,2            ; @FF_COMPOUNDFLAG
	.comm	_FF_PREFIX,8,3                  ; @FF_PREFIX
.subsections_via_symbols
