	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_ref_states
_get_ref_states:                        ## @get_ref_states
	.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	%rsi, %r13
	movq	%rdi, %r14
	movq	$0, -48(%rbp)
	leaq	-48(%rbp), %rax
	movq	%rax, -64(%rbp)
	movq	16(%rsi), %rdi
	cmpl	$0, (%rdi)
	jle	LBB0_12
## %bb.1:
	xorl	%ebx, %ebx
	leaq	-64(%rbp), %r15
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	movq	16(%r13), %rdi
	movslq	(%rdi), %rax
	addq	$4, %rbx
	cmpq	%rax, %r12
	jge	LBB0_5
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rdi), %rsi
	addq	%rbx, %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	movl	$1, %ecx
	callq	_get_fetch_map
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	16(%r13), %rcx
	movq	8(%rcx), %rcx
	movl	(%rcx,%rbx), %esi
	movl	%eax, %edi
	callq	_die
	jmp	LBB0_2
LBB0_5:
	movq	-48(%rbp), %rbx
	leaq	8(%r13), %r15
	movl	$1, 8(%r13)
	leaq	4(%r13), %r14
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%r13)
	testq	%rbx, %rbx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_8
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	movl	(%rbx), %edi
	callq	_abbrev_branch
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_string_list_append
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rax
	movq	%r15, %r12
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	(%rax), %edi
	callq	_ref_exists
	movq	%r15, %r12
	testl	%eax, %eax
	je	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %r12
	jmp	LBB0_7
LBB0_11:
	movq	16(%r13), %rdi
	movq	-48(%rbp), %rsi
	jmp	LBB0_14
LBB0_12:
	leaq	8(%r13), %r15
	movl	$1, 8(%r13)
	leaq	4(%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%r13)
LBB0_13:
	xorl	%esi, %esi
LBB0_14:
	callq	_get_stale_heads
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	movq	%r14, %r12
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	callq	_abbrev_branch
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_string_list_append
	movq	%rax, %rbx
	movl	(%r12), %edi
	callq	_xstrdup
	movl	%eax, (%rbx)
	movq	8(%r12), %r12
	testq	%r12, %r12
	jne	LBB0_16
LBB0_17:
	movq	%r14, %rdi
	callq	_free_refs
	movq	-48(%rbp), %rdi
	callq	_free_refs
	movq	%r15, %rdi
	callq	_string_list_sort
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_string_list_sort
	movq	%r13, %rdi
	callq	_string_list_sort
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not get fetch map for refspec %s"

	.no_dead_strip	_get_ref_states
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_ref_states
_get_ref_states:                        ; @get_ref_states
	.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	x19, x1
	mov	x20, x0
	add	x8, sp, #8
	stp	x8, xzr, [sp]
	ldr	x0, [x1, #16]
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x22, #0
	mov	x23, #0
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	ldr	x0, [x19, #16]
	ldrsw	x8, [x0]
	add	x22, x22, #4
	cmp	x23, x8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x0, #16]
	add	x1, x8, x22
	mov	x2, sp
	mov	x0, x20
	mov	w3, #1
	bl	_get_fetch_map
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	__
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	ldr	w1, [x8, x22]
	bl	_die
	b	LBB0_2
LBB0_5:
	ldr	x23, [sp, #8]
	mov	w8, #1
	mov	x20, x19
	str	w8, [x20, #8]!
	movi.2s	v0, #1
	mov	x21, x19
	str	d0, [x21], #4
	cbnz	x23, LBB0_8
; %bb.6:
	mov	x1, #0
	b	LBB0_12
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x23]
	bl	_abbrev_branch
	mov	x1, x0
	mov	x0, x22
	bl	_string_list_append
	ldr	x23, [x23, #8]
	cbz	x23, LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #16]
	mov	x22, x20
	cbz	x8, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x8]
	bl	_ref_exists
	cmp	w0, #0
	csel	x22, x20, x21, eq
	b	LBB0_7
LBB0_10:
	ldr	x0, [x19, #16]
	ldr	x1, [sp, #8]
	b	LBB0_12
LBB0_11:
	mov	x1, #0
	mov	w8, #1
	mov	x20, x19
	str	w8, [x20, #8]!
	movi.2s	v0, #1
	mov	x21, x19
	str	d0, [x21], #4
LBB0_12:
	bl	_get_stale_heads
	mov	x22, x0
	cbz	x0, LBB0_15
; %bb.13:
	mov	x24, x22
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	bl	_abbrev_branch
	mov	x1, x0
	mov	x0, x19
	bl	_string_list_append
	mov	x23, x0
	ldr	w0, [x24]
	bl	_xstrdup
	str	w0, [x23]
	ldr	x24, [x24, #8]
	cbnz	x24, LBB0_14
LBB0_15:
	mov	x0, x22
	bl	_free_refs
	ldr	x0, [sp, #8]
	bl	_free_refs
	mov	x0, x20
	bl	_string_list_sort
	mov	x0, x21
	bl	_string_list_sort
	mov	x0, x19
	bl	_string_list_sort
	mov	w0, #0
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not get fetch map for refspec %s"

	.no_dead_strip	_get_ref_states
.subsections_via_symbols
