	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remove_duplicates_in_refs
_remove_duplicates_in_refs:             ## @remove_duplicates_in_refs
	.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
	movq	%rdi, %rbx
	movq	_STRING_LIST_INIT_NODUP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	testl	%esi, %esi
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	jle	LBB0_1
## %bb.5:
	movl	%esi, %r13d
	xorl	%r14d, %r14d
	leaq	-48(%rbp), %r12
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	incl	%r15d
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r14
	cmpq	%r14, %r13
	je	LBB0_2
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%r14,8), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_string_list_insert
	cmpq	$0, (%rax)
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rbx,%r14,8), %rcx
	movq	%rcx, (%rax)
	movl	%r15d, %eax
	cmpq	%rax, %r14
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rbx,%r14,8), %rax
	movslq	%r15d, %rcx
	movq	%rax, (%rbx,%rcx,8)
	jmp	LBB0_9
LBB0_1:
	xorl	%r15d, %r15d
LBB0_2:
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, %r15d
	jge	LBB0_4
## %bb.3:
	movslq	%r15d, %rax
	leaq	(%rbx,%rax,8), %rdi
	movl	%r15d, %eax
	notl	%eax
	addl	%ecx, %eax
	leaq	8(,%rax,8), %rsi
	callq	___bzero
LBB0_4:
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_string_list_clear
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRING_LIST_INIT_NODUP,4,2     ## @STRING_LIST_INIT_NODUP
	.no_dead_strip	_remove_duplicates_in_refs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remove_duplicates_in_refs
_remove_duplicates_in_refs:             ; @remove_duplicates_in_refs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _STRING_LIST_INIT_NODUP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRING_LIST_INIT_NODUP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	cmp	w1, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x22, #0
	mov	w19, #0
	mov	w23, w20
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w19, w19, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	cmp	x23, x22
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, x22, lsl #3]
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_string_list_insert
	ldr	x8, [x0]
	cbnz	x8, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, x22, lsl #3]
	str	x8, [x0]
	cmp	x22, w19, uxtw
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, x22, lsl #3]
	str	x8, [x21, w19, sxtw #3]
	b	LBB0_2
LBB0_7:
	mov	w19, #0
LBB0_8:
	cmp	w19, w20
	b.ge	LBB0_10
; %bb.9:
	add	x0, x21, w19, sxtw #3
	mvn	w8, w19
	add	w8, w8, w20
	lsl	x8, x8, #3
	add	x1, x8, #8
	bl	_bzero
LBB0_10:
	add	x0, sp, #8
	mov	w1, #0
	bl	_string_list_clear
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_STRING_LIST_INIT_NODUP,4,2     ; @STRING_LIST_INIT_NODUP
	.no_dead_strip	_remove_duplicates_in_refs
.subsections_via_symbols
