	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_remote_branches
_read_remote_branches:                  ## @read_remote_branches
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdi, %r15
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movl	4(%rcx), %edx
	leaq	L_.str(%rip), %rsi
	leaq	-32(%rbp), %rdi
	callq	_strbuf_addf
	movl	-32(%rbp), %esi
	movq	%r15, %rdi
	callq	_starts_with
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movl	(%rbx), %edi
	movq	%r15, %rsi
	callq	_string_list_append
	movq	%rax, %r14
	movq	_RESOLVE_REF_READING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	leaq	-36(%rbp), %rcx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_resolve_ref_unsafe
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_REF_ISSYMREF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, -36(%rbp)
	je	LBB0_3
## %bb.4:
	movq	%rax, %rdi
	callq	_xstrdup
	movq	%rax, %rbx
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, (%r14)
LBB0_6:
	leaq	-32(%rbp), %rdi
	callq	_strbuf_release
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"refs/remotes/%s/"

	.comm	_RESOLVE_REF_READING,4,2        ## @RESOLVE_REF_READING
	.comm	_REF_ISSYMREF,4,2               ## @REF_ISSYMREF
	.no_dead_strip	_read_remote_branches
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_remote_branches
_read_remote_branches:                  ; @read_remote_branches
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x3
	mov	x20, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	w2, [x3, #4]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_strbuf_addf
	ldr	w1, [sp, #8]
	mov	x0, x20
	bl	_starts_with
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w0, [x19]
	mov	x1, x20
	bl	_string_list_append
	mov	x19, x0
Lloh5:
	adrp	x8, _RESOLVE_REF_READING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RESOLVE_REF_READING@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x3, sp, #4
	mov	x0, x20
	mov	x2, #0
	bl	_resolve_ref_unsafe
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w8, [sp, #4]
Lloh8:
	adrp	x9, _REF_ISSYMREF@GOTPAGE
Lloh9:
	ldr	x9, [x9, _REF_ISSYMREF@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	bl	_xstrdup
	b	LBB0_5
LBB0_4:
	mov	x0, #0
LBB0_5:
	str	x0, [x19]
LBB0_6:
	add	x0, sp, #8
	bl	_strbuf_release
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"refs/remotes/%s/"

	.comm	_RESOLVE_REF_READING,4,2        ; @RESOLVE_REF_READING
	.comm	_REF_ISSYMREF,4,2               ; @REF_ISSYMREF
	.no_dead_strip	_read_remote_branches
.subsections_via_symbols
