	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_graft_file
_read_graft_file:                       ## @read_graft_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	%rsi, %rax
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_fopen_or_warn
	movq	%rax, %r15
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	movq	_advice_graft_file_deprecated@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_advise
LBB0_4:
	leaq	-40(%rbp), %rdi
	movq	%r15, %rsi
	movl	$10, %edx
	callq	_strbuf_getwholeline
	testl	%eax, %eax
	je	LBB0_5
LBB0_10:
	movq	%r15, %rdi
	callq	_fclose
	leaq	-40(%rbp), %rdi
	callq	_strbuf_release
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_1:
	movl	$-1, %eax
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	-40(%rbp), %rbx
	leaq	L_.str.2(%rip), %r12
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$10, %edx
	callq	_strbuf_getwholeline
	testl	%eax, %eax
	jne	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_read_graft_line
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	$1, %edx
	callq	_register_commit_graft
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	-40(%rbp), %esi
	movq	%r12, %rdi
	callq	_error
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.comm	_advice_graft_file_deprecated,8,3 ## @advice_graft_file_deprecated
L_.str.1:                               ## @.str.1
	.asciz	"Support for <GIT_DIR>/info/grafts is deprecated\nand will be removed in a future Git version.\n\nPlease use \"git replace --convert-graft-file\"\nto convert the grafts into replace refs.\n\nTurn this message off by running\n\"git config advice.graftFileDeprecated false\""

L_.str.2:                               ## @.str.2
	.asciz	"duplicate graft data: %s"

	.no_dead_strip	_read_graft_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_graft_file
_read_graft_file:                       ; @read_graft_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	x8, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	bl	_fopen_or_warn
Lloh2:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
Lloh5:
	adrp	x8, _advice_graft_file_deprecated@GOTPAGE
Lloh6:
	ldr	x8, [x8, _advice_graft_file_deprecated@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	bl	_advise
LBB0_3:
	add	x0, sp, #8
	mov	x1, x20
	mov	w2, #10
	bl	_strbuf_getwholeline
	cbz	w0, LBB0_7
LBB0_4:
	mov	x0, x20
	bl	_fclose
	add	x0, sp, #8
	bl	_strbuf_release
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	mov	w0, #-1
LBB0_6:
	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
LBB0_7:
Lloh10:
	adrp	x21, l_.str.2@PAGE
Lloh11:
	add	x21, x21, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x0, sp, #8
	mov	x1, x20
	mov	w2, #10
	bl	_strbuf_getwholeline
	cbnz	w0, LBB0_4
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	bl	_read_graft_line
	cbz	x0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x1, x0
	mov	x0, x19
	mov	w2, #1
	bl	_register_commit_graft
	cbz	x0, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w1, [sp, #8]
	mov	x0, x21
	bl	_error
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.comm	_advice_graft_file_deprecated,8,3 ; @advice_graft_file_deprecated
l_.str.1:                               ; @.str.1
	.asciz	"Support for <GIT_DIR>/info/grafts is deprecated\nand will be removed in a future Git version.\n\nPlease use \"git replace --convert-graft-file\"\nto convert the grafts into replace refs.\n\nTurn this message off by running\n\"git config advice.graftFileDeprecated false\""

l_.str.2:                               ; @.str.2
	.asciz	"duplicate graft data: %s"

	.no_dead_strip	_read_graft_file
.subsections_via_symbols
