	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_ancestry
_read_ancestry:                         ## @read_ancestry
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_.str(%rip), %rsi
	callq	_fopen_or_warn
	movq	%rax, %rbx
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	leaq	-32(%rbp), %rdi
	movq	%rbx, %rsi
	movl	$10, %edx
	callq	_strbuf_getwholeline
	testl	%eax, %eax
	je	LBB0_3
LBB0_7:
	movq	%rbx, %rdi
	callq	_fclose
	leaq	-32(%rbp), %rdi
	callq	_strbuf_release
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_1:
	movl	$-1, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	-32(%rbp), %r14
	movq	_the_repository@GOTPCREL(%rip), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$10, %edx
	callq	_strbuf_getwholeline
	testl	%eax, %eax
	jne	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_read_graft_line
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r15), %edi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_register_commit_graft
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.comm	_the_repository,4,2             ## @the_repository
	.no_dead_strip	_read_ancestry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_ancestry
_read_ancestry:                         ; @read_ancestry
	.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
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	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_3
; %bb.1:
	mov	x19, x0
	add	x0, sp, #8
	mov	x1, x19
	mov	w2, #10
	bl	_strbuf_getwholeline
	cbz	w0, LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_fclose
	add	x0, sp, #8
	bl	_strbuf_release
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	mov	w0, #-1
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
Lloh5:
	adrp	x20, _the_repository@GOTPAGE
Lloh6:
	ldr	x20, [x20, _the_repository@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x0, sp, #8
	mov	x1, x19
	mov	w2, #10
	bl	_strbuf_getwholeline
	cbnz	w0, LBB0_2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	bl	_read_graft_line
	cbz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x1, x0
	ldr	w0, [x20]
	mov	w2, #0
	bl	_register_commit_graft
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.comm	_the_repository,4,2             ; @the_repository
	.no_dead_strip	_read_ancestry
.subsections_via_symbols
