	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_int_array_sort_unique          ## -- Begin function int_array_sort_unique
	.p2align	4, 0x90
_int_array_sort_unique:                 ## @int_array_sort_unique
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_int_array_len
	movq	_freq_cmp@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$4, %edx
	callq	_qsort
	movl	(%r14), %esi
	testl	%esi, %esi
	je	LBB0_2
## %bb.3:
	movabsq	$4294967296, %rcx               ## imm = 0x100000000
	movl	4(%r14), %r9d
	testl	%r9d, %r9d
	je	LBB0_4
## %bb.5:
	leaq	4(%r14), %r8
	movl	$1, %edi
	xorl	%eax, %eax
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	leaq	(%r8,%rdi,4), %rbx
	shlq	$32, %rdi
	addq	%rcx, %rdi
	movl	%r9d, %edx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%edx, %esi
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movl	(%rbx), %edx
	addq	%rcx, %rdi
	addq	$4, %rbx
	testl	%edx, %edx
	jne	LBB0_7
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	%edx, 4(%r14,%rax,4)
	incq	%rax
	movq	%rdi, %rsi
	sarq	$32, %rsi
	sarq	$30, %rdi
	movl	(%r14,%rdi), %r9d
	movq	%rsi, %rdi
	movl	%edx, %esi
	testl	%r9d, %r9d
	jne	LBB0_6
	jmp	LBB0_10
LBB0_2:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_4:
	xorl	%eax, %eax
LBB0_10:
	shlq	$32, %rax
	addq	%rcx, %rax
	sarq	$32, %rax
LBB0_11:
	movl	$0, (%r14,%rax,4)
	popq	%rbx
	popq	%r14
	popq	%rbp
LBB0_12:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_freq_cmp,4,2                   ## @freq_cmp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_int_array_sort_unique          ; -- Begin function int_array_sort_unique
	.p2align	2
_int_array_sort_unique:                 ; @int_array_sort_unique
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_12
; %bb.1:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_int_array_len
	mov	x1, x0
Lloh0:
	adrp	x8, _freq_cmp@GOTPAGE
Lloh1:
	ldr	x8, [x8, _freq_cmp@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #4
	bl	_qsort
	ldr	w10, [x19]
	cbz	w10, LBB0_8
; %bb.2:
	ldr	w12, [x19, #4]
	cbz	w12, LBB0_9
; %bb.3:
	mov	x8, #0
	add	x9, x19, #4
	mov	w14, #1
	mov	x11, #4294967296
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	add	x13, x11, x14, lsl #32
	mov	x15, x12
	add	x12, x9, x14, lsl #2
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w10, w15
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	w15, [x12], #4
	add	x13, x13, x11
	cbnz	w15, LBB0_5
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, #1
	str	w15, [x19, x8, lsl #2]
	asr	x14, x13, #32
	asr	x10, x13, #30
	ldr	w12, [x19, x10]
	mov	x10, x15
	cbnz	w12, LBB0_4
	b	LBB0_10
LBB0_8:
	mov	x8, #0
	b	LBB0_11
LBB0_9:
	mov	x8, #0
LBB0_10:
	add	w8, w8, #1
	sxtw	x8, w8
LBB0_11:
	str	wzr, [x19, x8, lsl #2]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
LBB0_12:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_freq_cmp,4,2                   ; @freq_cmp
.subsections_via_symbols
