	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_remote_ref_states
_get_remote_ref_states:                 ## @get_remote_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_remote_get
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	xorl	%eax, %eax
	callq	_read_branches
	testl	%r14d, %r14d
	je	LBB0_11
## %bb.2:
	movq	8(%r12), %rdi
	cmpq	$0, (%rdi)
	jle	LBB0_3
## %bb.4:
	movq	8(%rdi), %rax
	movq	(%rax), %rsi
	jmp	LBB0_5
LBB0_13:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
LBB0_11:
	movq	_append_ref_to_tracked_list@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_for_each_ref
	leaq	4(%r12), %rdi
	callq	_string_list_sort
	movq	%r12, %rdi
	callq	_get_push_ref_states_noquery
	jmp	LBB0_12
LBB0_3:
	xorl	%esi, %esi
LBB0_5:
	callq	_transport_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_transport_get_remote_refs
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_transport_disconnect
	movl	$1, (%r12)
	movq	_GET_REF_STATES@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_get_ref_states
LBB0_7:
	movq	_GET_HEAD_NAMES@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_get_head_names
LBB0_9:
	movq	_GET_PUSH_REF_STATES@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_12
## %bb.10:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_get_push_ref_states
LBB0_12:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No such remote: '%s'"

	.comm	_GET_REF_STATES,4,2             ## @GET_REF_STATES
	.comm	_GET_HEAD_NAMES,4,2             ## @GET_HEAD_NAMES
	.comm	_GET_PUSH_REF_STATES,4,2        ## @GET_PUSH_REF_STATES
	.comm	_append_ref_to_tracked_list,4,2 ## @append_ref_to_tracked_list
	.no_dead_strip	_get_remote_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_remote_ref_states
_get_remote_ref_states:                 ; @get_remote_ref_states
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	bl	_remote_get
	str	x0, [x19, #8]
	cbz	x0, LBB0_4
; %bb.1:
	bl	_read_branches
	cbz	w20, LBB0_5
; %bb.2:
	ldr	x0, [x19, #8]
	ldr	x8, [x0]
	cmp	x8, #1
	b.lt	LBB0_6
; %bb.3:
	ldr	x8, [x0, #8]
	ldr	x1, [x8]
	b	LBB0_7
LBB0_4:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_error
LBB0_5:
Lloh2:
	adrp	x8, _append_ref_to_tracked_list@GOTPAGE
Lloh3:
	ldr	x8, [x8, _append_ref_to_tracked_list@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_for_each_ref
	add	x0, x19, #4
	bl	_string_list_sort
	mov	x0, x19
	bl	_get_push_ref_states_noquery
	b	LBB0_13
LBB0_6:
	mov	x1, #0
LBB0_7:
	bl	_transport_get
	mov	x22, x0
	mov	x1, #0
	bl	_transport_get_remote_refs
	mov	x21, x0
	mov	x0, x22
	bl	_transport_disconnect
	mov	w8, #1
	str	w8, [x19]
Lloh5:
	adrp	x8, _GET_REF_STATES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GET_REF_STATES@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x21
	mov	x1, x19
	bl	_get_ref_states
LBB0_9:
Lloh8:
	adrp	x8, _GET_HEAD_NAMES@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GET_HEAD_NAMES@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_11
; %bb.10:
	mov	x0, x21
	mov	x1, x19
	bl	_get_head_names
LBB0_11:
Lloh11:
	adrp	x8, _GET_PUSH_REF_STATES@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GET_PUSH_REF_STATES@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_13
; %bb.12:
	mov	x0, x21
	mov	x1, x19
	bl	_get_push_ref_states
LBB0_13:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No such remote: '%s'"

	.comm	_GET_REF_STATES,4,2             ; @GET_REF_STATES
	.comm	_GET_HEAD_NAMES,4,2             ; @GET_HEAD_NAMES
	.comm	_GET_PUSH_REF_STATES,4,2        ; @GET_PUSH_REF_STATES
	.comm	_append_ref_to_tracked_list,4,2 ; @append_ref_to_tracked_list
	.no_dead_strip	_get_remote_ref_states
.subsections_via_symbols
