	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uniquePos
_uniquePos:                             ## @uniquePos
	.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	%esi, %r15d
	cmpl	$2, %esi
	jl	LBB0_9
## %bb.1:
	movq	%rdi, %r14
	movq	_compareWordEntryPos@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, %esi
	movl	$4, %edx
	callq	_qsort
	movl	%r15d, %r12d
	movl	$8, %ebx
	movq	%r14, %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rax
	sarq	$2, %rax
	addq	$4, %rbx
	cmpq	%r12, %rax
	jge	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-4(%r14,%rbx), %edi
	callq	_WEP_GETPOS
	movl	%eax, %r13d
	movl	(%r15), %edi
	callq	_WEP_GETPOS
	cmpl	%eax, %r13d
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-4(%r14,%rbx), %edi
	callq	_WEP_GETWEIGHT
	movq	%rax, %r13
	movl	(%r15), %edi
	callq	_WEP_GETWEIGHT
	cmpq	%rax, %r13
	jle	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %r13d
	movl	-4(%r14,%rbx), %edi
	callq	_WEP_GETWEIGHT
	movl	%r13d, %edi
	movq	%rax, %rsi
	callq	_WEP_SETWEIGHT
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-4(%r14,%rbx), %edi
	movl	%edi, 4(%r15)
	addq	$4, %r15
	movq	%r15, %rax
	subq	%r14, %rax
	sarq	$2, %rax
	movq	_MAXNUMPOS@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	decq	%rcx
	cmpq	%rcx, %rax
	jge	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_WEP_GETPOS
	movq	_MAXENTRYPOS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	decl	%ecx
	cmpl	%ecx, %eax
	jne	LBB0_7
LBB0_8:
	subq	%r14, %r15
	addq	$4, %r15
	shrq	$2, %r15
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_compareWordEntryPos,4,2        ## @compareWordEntryPos
	.comm	_MAXNUMPOS,4,2                  ## @MAXNUMPOS
	.comm	_MAXENTRYPOS,4,2                ## @MAXENTRYPOS
	.no_dead_strip	_uniquePos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uniquePos
_uniquePos:                             ; @uniquePos
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	cmp	w1, #2
	b.lt	LBB0_9
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _compareWordEntryPos@GOTPAGE
Lloh1:
	ldr	x8, [x8, _compareWordEntryPos@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	w21, #4
	mov	x1, x20
	mov	w2, #4
	bl	_qsort
Lloh3:
	adrp	x23, _MAXNUMPOS@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MAXNUMPOS@GOTPAGEOFF]
Lloh5:
	adrp	x24, _MAXENTRYPOS@GOTPAGE
Lloh6:
	ldr	x24, [x24, _MAXENTRYPOS@GOTPAGEOFF]
	mov	x22, x19
	mov	w25, w20
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #4
	cmp	x25, x21, asr #2
	b.le	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, x21]
	bl	_WEP_GETPOS
	mov	x20, x0
	ldr	w0, [x22]
	bl	_WEP_GETPOS
	cmp	w20, w0
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, x21]
	bl	_WEP_GETWEIGHT
	mov	x20, x0
	ldr	w0, [x22]
	bl	_WEP_GETWEIGHT
	cmp	x20, x0
	b.le	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w20, [x22]
	ldr	w0, [x19, x21]
	bl	_WEP_GETWEIGHT
	mov	x1, x0
	mov	x0, x20
	bl	_WEP_SETWEIGHT
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, x21]
	str	w0, [x22, #4]!
	sub	x8, x22, x19
	ldrsw	x9, [x23]
	sub	x9, x9, #1
	cmp	x9, x8, asr #2
	b.le	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_WEP_GETPOS
	ldr	w8, [x24]
	sub	w8, w8, #1
	cmp	w0, w8
	b.ne	LBB0_2
LBB0_8:
	sub	x8, x22, x19
	add	x8, x8, #4
	lsr	x20, x8, #2
LBB0_9:
	mov	x0, x20
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_compareWordEntryPos,4,2        ; @compareWordEntryPos
	.comm	_MAXNUMPOS,4,2                  ; @MAXNUMPOS
	.comm	_MAXENTRYPOS,4,2                ; @MAXENTRYPOS
	.no_dead_strip	_uniquePos
.subsections_via_symbols
