	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_branches_file
_read_branches_file:                    ## @read_branches_file
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	16(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	callq	_git_path
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	callq	_fopen_or_warn
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	leaq	-40(%rbp), %r14
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_strbuf_getline_lf
	movq	%rbx, %rdi
	callq	_fclose
	movq	%r14, %rdi
	callq	_strbuf_trim
	cmpl	$0, -36(%rbp)
	je	LBB0_6
## %bb.2:
	movl	$1, (%r12)
	movq	_REMOTE_BRANCHES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
	movl	-40(%rbp), %edi
	movl	$35, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	incq	%r14
	movb	$0, (%rax)
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.2(%rip), %r14
LBB0_5:
	leaq	-40(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_strbuf_detach
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_add_url_alias
	movl	16(%r12), %ecx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_strbuf_addf
	leaq	12(%r12), %rdi
	movl	-40(%rbp), %esi
	callq	_refspec_append
	movq	%r15, %rdi
	callq	_strbuf_reset
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_strbuf_addf
	leaq	8(%r12), %rdi
	movl	-40(%rbp), %esi
	callq	_refspec_append
	movl	$1, 4(%r12)
LBB0_6:
	leaq	-40(%rbp), %rdi
	callq	_strbuf_release
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,8,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"branches/%s"

L_.str.1:                               ## @.str.1
	.asciz	"r"

	.comm	_REMOTE_BRANCHES,4,2            ## @REMOTE_BRANCHES
L_.str.2:                               ## @.str.2
	.asciz	"master"

L_.str.3:                               ## @.str.3
	.asciz	"refs/heads/%s:refs/heads/%s"

L_.str.4:                               ## @.str.4
	.asciz	"HEAD:refs/heads/%s"

	.no_dead_strip	_read_branches_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_branches_file
_read_branches_file:                    ; @read_branches_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	ldr	w1, [x0, #16]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_git_path
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen_or_warn
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	add	x0, sp, #8
	mov	x1, x20
	bl	_strbuf_getline_lf
	mov	x0, x20
	bl	_fclose
	add	x0, sp, #8
	bl	_strbuf_trim
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_6
; %bb.2:
	mov	w21, #1
	str	w21, [x19]
Lloh7:
	adrp	x8, _REMOTE_BRANCHES@GOTPAGE
Lloh8:
	ldr	x8, [x8, _REMOTE_BRANCHES@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x19, #20]
	ldr	w0, [sp, #8]
	mov	w1, #35
	bl	_strchr
	cbz	x0, LBB0_4
; %bb.3:
	mov	x20, x0
	strb	wzr, [x20], #1
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x20, l_.str.2@PAGE
Lloh11:
	add	x20, x20, l_.str.2@PAGEOFF
LBB0_5:
	add	x0, sp, #8
	mov	x1, #0
	bl	_strbuf_detach
	mov	x1, x0
	mov	x0, x19
	bl	_add_url_alias
	ldr	w8, [x19, #16]
	str	x8, [sp]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #8
	mov	x2, x20
	bl	_strbuf_addf
	add	x0, x19, #12
	ldr	w1, [sp, #8]
	bl	_refspec_append
	add	x0, sp, #8
	bl	_strbuf_reset
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x0, sp, #8
	mov	x2, x20
	bl	_strbuf_addf
	add	x0, x19, #8
	ldr	w1, [sp, #8]
	bl	_refspec_append
	str	w21, [x19, #4]
LBB0_6:
	add	x0, sp, #8
	bl	_strbuf_release
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,8,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"branches/%s"

l_.str.1:                               ; @.str.1
	.asciz	"r"

	.comm	_REMOTE_BRANCHES,4,2            ; @REMOTE_BRANCHES
l_.str.2:                               ; @.str.2
	.asciz	"master"

l_.str.3:                               ; @.str.3
	.asciz	"refs/heads/%s:refs/heads/%s"

l_.str.4:                               ; @.str.4
	.asciz	"HEAD:refs/heads/%s"

	.no_dead_strip	_read_branches_file
.subsections_via_symbols
