	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_remotes_file
_read_remotes_file:                     ## @read_remotes_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%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_12
## %bb.1:
	movq	%rax, %rbx
	movl	$1, (%r14)
	movq	_REMOTE_REMOTES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_strbuf_getline
	movq	_EOF@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_2
LBB0_11:
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
	movq	%rbx, %rdi
	callq	_fclose
LBB0_12:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	8(%r14), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	4(%r14), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %r13
	leaq	-56(%rbp), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi
	callq	_skip_spaces
	movl	%eax, %edi
	callq	_xstrdup
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_add_url_alias
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_strbuf_getline
	cmpq	(%r12), %rax
	je	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_strbuf_rtrim
	movl	-48(%rbp), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdx
	callq	_skip_prefix
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdx
	callq	_skip_prefix
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi
	callq	_skip_spaces
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdx
	callq	_skip_prefix
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi
	callq	_skip_spaces
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %esi
	callq	_refspec_append
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"remotes/%s"

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

	.comm	_REMOTE_REMOTES,4,2             ## @REMOTE_REMOTES
	.comm	_EOF,8,3                        ## @EOF
L_.str.2:                               ## @.str.2
	.asciz	"URL:"

L_.str.3:                               ## @.str.3
	.asciz	"Push:"

L_.str.4:                               ## @.str.4
	.asciz	"Pull:"

	.no_dead_strip	_read_remotes_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_remotes_file
_read_remotes_file:                     ; @read_remotes_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [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_3
; %bb.1:
	mov	x20, x0
	mov	w8, #1
	str	w8, [x19]
Lloh7:
	adrp	x8, _REMOTE_REMOTES@GOTPAGE
Lloh8:
	ldr	x8, [x8, _REMOTE_REMOTES@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	add	x0, sp, #8
	mov	x1, x20
	bl	_strbuf_getline
Lloh10:
	adrp	x26, _EOF@GOTPAGE
Lloh11:
	ldr	x26, [x26, _EOF@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_4
LBB0_2:
	add	x0, sp, #8
	bl	_strbuf_release
	mov	x0, x20
	bl	_fclose
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
	add	x21, x19, #8
	add	x22, x19, #4
Lloh12:
	adrp	x23, l_.str.2@PAGE
Lloh13:
	add	x23, x23, l_.str.2@PAGEOFF
Lloh14:
	adrp	x24, l_.str.3@PAGE
Lloh15:
	add	x24, x24, l_.str.3@PAGEOFF
Lloh16:
	adrp	x25, l_.str.4@PAGE
Lloh17:
	add	x25, x25, l_.str.4@PAGEOFF
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [sp]
	bl	_skip_spaces
	bl	_xstrdup
	mov	x1, x0
	mov	x0, x19
	bl	_add_url_alias
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x0, sp, #8
	mov	x1, x20
	bl	_strbuf_getline
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	bl	_strbuf_rtrim
	ldr	w0, [sp, #8]
	mov	x2, sp
	mov	x1, x23
	bl	_skip_prefix
	cbnz	x0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [sp, #8]
	mov	x2, sp
	mov	x1, x24
	bl	_skip_prefix
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [sp]
	bl	_skip_spaces
	mov	x1, x0
	mov	x0, x21
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [sp, #8]
	mov	x2, sp
	mov	x1, x25
	bl	_skip_prefix
	cbz	x0, LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [sp]
	bl	_skip_spaces
	mov	x1, x0
	mov	x0, x22
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_refspec_append
	b	LBB0_6
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"remotes/%s"

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

	.comm	_REMOTE_REMOTES,4,2             ; @REMOTE_REMOTES
	.comm	_EOF,8,3                        ; @EOF
l_.str.2:                               ; @.str.2
	.asciz	"URL:"

l_.str.3:                               ; @.str.3
	.asciz	"Push:"

l_.str.4:                               ; @.str.4
	.asciz	"Pull:"

	.no_dead_strip	_read_remotes_file
.subsections_via_symbols
