	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_tags_and_duplicates
_get_tags_and_duplicates:               ## @get_tags_and_duplicates
	.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
	cmpl	$0, (%rdi)
	jle	LBB0_18
## %bb.1:
	movq	%rdi, %r14
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_2
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r13,%r15), %ebx
	movq	8(%r13,%r15), %rax
	movl	(%rax), %edi
	callq	_type_name
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_warning
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	(%r14), %rax
	addq	$24, %r15
	cmpq	%rax, %r12
	jge	LBB0_18
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %r13
	movq	_UNINTERESTING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13,%r15)
	jne	LBB0_17
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r13,%r15), %ebx
	movl	%ebx, %edi
	callq	_strlen
	movl	%ebx, %edi
	movl	%eax, %esi
	leaq	-64(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	callq	_dwim_ref
	cmpl	$1, %eax
	jne	LBB0_17
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r15,%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_refspecs@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rsi
	movq	_refspecs@GOTPCREL(%rip), %rdi
	callq	_apply_refspecs
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movq	-48(%rbp), %rdi
	callq	_free
	movq	%rbx, -48(%rbp)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_get_commit
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movl	(%rax), %edi
	cmpl	$128, %edi
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$129, %edi
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_export_blob
	jmp	LBB0_17
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r13,%r15), %rax
	movslq	(%rax), %rax
	movq	_OBJ_TAG@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rsi
	movq	_extra_refs@GOTPCREL(%rip), %rdi
	callq	_string_list_append
	movq	%rbx, (%rax)
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_revision_sources@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_revision_sources_at
	cmpq	$0, (%rax)
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %r13
	movq	_revision_sources@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_revision_sources_at
	movq	%r13, (%rax)
	jmp	LBB0_17
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_type_name
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_warning
	jmp	LBB0_17
LBB0_18:
	movq	_extra_refs@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_string_list_sort
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_string_list_remove_duplicates
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UNINTERESTING,4,2              ## @UNINTERESTING
	.comm	_refspecs,8,3                   ## @refspecs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Unexpected object of type %s, skipping."

L_.str.1:                               ## @.str.1
	.asciz	"Tag points to object of unexpected type %s, skipping."

	.comm	_OBJ_TAG,8,3                    ## @OBJ_TAG
	.comm	_extra_refs,4,2                 ## @extra_refs
	.comm	_revision_sources,4,2           ## @revision_sources
	.no_dead_strip	_get_tags_and_duplicates
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_tags_and_duplicates
_get_tags_and_duplicates:               ; @get_tags_and_duplicates
	.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
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.1:
	mov	x19, x0
	mov	x27, #0
	mov	x28, #0
Lloh0:
	adrp	x23, _UNINTERESTING@GOTPAGE
Lloh1:
	ldr	x23, [x23, _UNINTERESTING@GOTPAGEOFF]
Lloh2:
	adrp	x20, _refspecs@GOTPAGE
Lloh3:
	ldr	x20, [x20, _refspecs@GOTPAGEOFF]
Lloh4:
	adrp	x21, l_.str@PAGE
Lloh5:
	add	x21, x21, l_.str@PAGEOFF
Lloh6:
	adrp	x22, _revision_sources@GOTPAGE
Lloh7:
	ldr	x22, [x22, _revision_sources@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w25, [x25, #16]
	add	x8, x24, x27
	ldr	x8, [x8, #8]
	ldr	w0, [x8]
	bl	_type_name
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x21
	mov	x1, x25
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_warning
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x28, x28, #1
	ldrsw	x8, [x19]
	add	x27, x27, #24
	cmp	x28, x8
	b.ge	LBB0_19
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x19, #8]
	add	x25, x24, x27
	ldr	w8, [x25]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w26, [x25, #16]
	mov	x0, x26
	bl	_strlen
	mov	x1, x0
	add	x2, sp, #24
	add	x3, sp, #16
	mov	x0, x26
	bl	_dwim_ref
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20]
	cbz	x8, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [sp, #16]
	mov	x0, x20
	bl	_apply_refspecs
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x26, x0
	ldr	x0, [sp, #16]
	bl	_free
	str	x26, [sp, #16]
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [sp, #16]
	mov	x0, x25
	bl	_get_commit
	cbz	x0, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x26, x0
	ldr	w0, [x0]
	cmp	w0, #128
	b.eq	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w0, #129
	b.ne	LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x0, x26, #4
	bl	_export_blob
	b	LBB0_4
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x24, x27
	ldr	x8, [x8, #8]
	ldrsw	x8, [x8]
Lloh8:
	adrp	x9, _OBJ_TAG@GOTPAGE
Lloh9:
	ldr	x9, [x9, _OBJ_TAG@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.eq	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [sp, #16]
Lloh11:
	adrp	x0, _extra_refs@GOTPAGE
Lloh12:
	ldr	x0, [x0, _extra_refs@GOTPAGEOFF]
	bl	_string_list_append
	str	x26, [x0]
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	mov	x1, x26
	bl	_revision_sources_at
	ldr	x8, [x0]
	cbnz	x8, LBB0_4
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x24, [sp, #16]
	mov	x0, x22
	mov	x1, x26
	bl	_revision_sources_at
	str	x24, [x0]
	b	LBB0_4
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_type_name
	mov	x1, x0
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_19:
Lloh15:
	adrp	x19, _extra_refs@GOTPAGE
Lloh16:
	ldr	x19, [x19, _extra_refs@GOTPAGEOFF]
	mov	x0, x19
	bl	_string_list_sort
	mov	x0, x19
	mov	w1, #0
	bl	_string_list_remove_duplicates
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_UNINTERESTING,4,2              ; @UNINTERESTING
	.comm	_refspecs,8,3                   ; @refspecs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Unexpected object of type %s, skipping."

l_.str.1:                               ; @.str.1
	.asciz	"Tag points to object of unexpected type %s, skipping."

	.comm	_OBJ_TAG,8,3                    ; @OBJ_TAG
	.comm	_extra_refs,4,2                 ; @extra_refs
	.comm	_revision_sources,4,2           ; @revision_sources
	.no_dead_strip	_get_tags_and_duplicates
.subsections_via_symbols
