	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_graph_chunk_extra_edges
_write_graph_chunk_extra_edges:         ## @write_graph_chunk_extra_edges
	.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
	movslq	16(%rsi), %rax
	testq	%rax, %rax
	jle	LBB0_18
## %bb.1:
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	24(%rsi), %rbx
	leaq	(%rbx,%rax,8), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_commit_to_sha1@GOTPCREL(%rip), %r15
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	addq	$8, %rbx
	cmpq	-64(%rbp), %rbx                 ## 8-byte Folded Reload
	jae	LBB0_18
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movl	32(%r13), %esi
	movl	36(%r13), %edi
	incl	%esi
	movl	%esi, 32(%r13)
	callq	_display_progress
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, (%rcx)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movb	$1, %cl
	testb	%cl, %cl
	jne	LBB0_17
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rax), %r14
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	8(%r14), %rdi
	callq	_oid_to_hex
	movq	%r15, %r13
	movq	%r12, %r15
	movl	%eax, %r12d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	callq	_oid_to_hex
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movq	%r15, %r12
	movq	%r13, %r15
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_BUG
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_hashwrite_be32
	movq	(%r14), %r14
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%r14, %r14
	je	LBB0_17
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movq	24(%r13), %rsi
	movl	16(%r13), %edx
	movl	(%r15), %ecx
	callq	_sha1_pos
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	movl	8(%r13), %eax
	addl	%eax, %ebx
	testl	%ebx, %ebx
	jns	LBB0_14
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	8(%r14), %rdi
	movl	(%r13), %esi
	leaq	-44(%rbp), %rdx
	callq	_find_commit_in_graph
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=2
	movl	-44(%rbp), %ebx
	testl	%ebx, %ebx
	js	LBB0_13
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=2
	cmpq	$0, (%r14)
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	_GRAPH_LAST_EDGE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	jmp	LBB0_16
LBB0_18:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_commit_to_sha1,4,2             ## @commit_to_sha1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"missing parent %s for commit %s"

	.comm	_GRAPH_LAST_EDGE,4,2            ## @GRAPH_LAST_EDGE
	.no_dead_strip	_write_graph_chunk_extra_edges
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_graph_chunk_extra_edges
_write_graph_chunk_extra_edges:         ; @write_graph_chunk_extra_edges
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldrsw	x8, [x1, #16]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x24, [x1, #24]
	add	x25, x24, x8, lsl #3
Lloh0:
	adrp	x27, _commit_to_sha1@GOTPAGE
Lloh1:
	ldr	x27, [x27, _commit_to_sha1@GOTPAGEOFF]
Lloh2:
	adrp	x28, _GRAPH_LAST_EDGE@GOTPAGE
Lloh3:
	ldr	x28, [x28, _GRAPH_LAST_EDGE@GOTPAGEOFF]
Lloh4:
	adrp	x21, l_.str@PAGE
Lloh5:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #8
	cmp	x24, x25
	b.hs	LBB0_15
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldp	w8, w0, [x19, #32]
	add	w1, w8, #1
	str	w1, [x19, #32]
	bl	_display_progress
	ldr	x8, [x24]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x8]
	cbz	x9, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x9]
	cmp	x9, #0
	mov	w9, #1
	ccmp	w9, #0, #4, eq
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x26, [x8]
	cbnz	x26, LBB0_9
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=2
	ldr	x0, [x26, #8]
	bl	_oid_to_hex
	mov	x23, x0
	ldr	x0, [x24]
	bl	_oid_to_hex
	mov	x2, x0
	mov	x0, x21
	mov	x1, x23
	bl	_BUG
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x20
	mov	x1, x22
	bl	_hashwrite_be32
	ldr	x26, [x26]
	cbz	x26, LBB0_2
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x26, #8]
	ldr	w0, [x8]
	ldr	x1, [x19, #24]
	ldr	w2, [x19, #16]
	ldr	w3, [x27]
	bl	_sha1_pos
	mov	x22, x0
	tbnz	w0, #31, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w8, [x19, #8]
	add	w22, w22, w8
	tbz	w22, #31, LBB0_13
	b	LBB0_7
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=2
	ldr	x0, [x26, #8]
	ldr	w1, [x19]
	add	x2, sp, #12
	bl	_find_commit_in_graph
	cbz	x0, LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w22, [sp, #12]
	tbnz	w22, #31, LBB0_7
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [x26]
	cbnz	x8, LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w8, [x28]
	orr	w22, w8, w22
	b	LBB0_8
LBB0_15:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_commit_to_sha1,4,2             ; @commit_to_sha1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"missing parent %s for commit %s"

	.comm	_GRAPH_LAST_EDGE,4,2            ; @GRAPH_LAST_EDGE
	.no_dead_strip	_write_graph_chunk_extra_edges
.subsections_via_symbols
