	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_graph_chunk_data
_write_graph_chunk_data:                ## @write_graph_chunk_data
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -72(%rbp)                 ## 4-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movslq	16(%rdx), %rax
	testq	%rax, %rax
	jle	LBB0_28
## %bb.1:
	movq	%rdx, %r12
	movq	%rdi, %r13
	movq	24(%rdx), %r14
	leaq	(%r14,%rax,8), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_27:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rbx
	movl	4(%rbx), %edi
	shll	$2, %edi
	callq	_htonl
	movl	%eax, -56(%rbp)
	movl	(%rbx), %edi
	callq	_htonl
	movl	%eax, -52(%rbp)
	movq	%r13, %rdi
	leaq	-56(%rbp), %rsi
	movl	$8, %edx
	callq	_hashwrite
	addq	$8, %r14
	cmpq	-96(%rbp), %r14                 ## 8-byte Folded Reload
	jae	LBB0_28
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_26 Depth 2
	movl	32(%r12), %esi
	movl	36(%r12), %edi
	incl	%esi
	movl	%esi, 32(%r12)
	callq	_display_progress
	movq	(%r14), %rdi
	callq	_parse_commit_no_graph
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %ebx
	movq	(%r14), %rdi
	addq	$8, %rdi
	callq	_oid_to_hex
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_die
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rdi
	callq	_get_commit_tree_oid
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %r12d
	movq	(%r14), %rdi
	addq	$8, %rdi
	callq	_oid_to_hex
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_die
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rsi
	movq	%r13, %rdi
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	callq	_hashwrite
	movq	(%r14), %rax
	movq	16(%rax), %r12
	testq	%r12, %r12
	je	LBB0_30
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	24(%rbx), %rsi
	movl	16(%rbx), %edx
	movq	_commit_to_sha1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_sha1_pos
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rbx), %eax
	addl	%eax, %r14d
	testl	%r14d, %r14d
	jns	LBB0_13
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_GRAPH_PARENT_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_hashwrite_be32
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rdi
	movl	(%rbx), %esi
	leaq	-56(%rbp), %rdx
	callq	_find_commit_in_graph
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	-56(%rbp), %r14d
	testl	%r14d, %r14d
	jns	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rdi
	callq	_oid_to_hex
	movl	%eax, %r13d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	addq	$8, %rdi
	callq	_oid_to_hex
	leaq	L_.str.2(%rip), %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_BUG
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_hashwrite_be32
	movq	(%r12), %rbx
	testq	%rbx, %rbx
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, (%rbx)
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_GRAPH_EXTRA_EDGES_NEEDED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	orl	%r15d, %r12d
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_GRAPH_PARENT_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%ebx, %ebx
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_hashwrite_be32
	movq	_GRAPH_EXTRA_EDGES_NEEDED@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_26:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incl	%r15d
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_26
	jmp	LBB0_27
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	24(%r12), %rsi
	movl	16(%r12), %edx
	movq	_commit_to_sha1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_sha1_pos
	movq	%r12, %rcx
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rcx), %eax
	addl	%eax, %r12d
	testl	%r12d, %r12d
	jns	LBB0_23
	jmp	LBB0_22
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rdi
	movl	(%rcx), %esi
	leaq	-56(%rbp), %rdx
	callq	_find_commit_in_graph
	testq	%rax, %rax
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	-56(%rbp), %r12d
	testl	%r12d, %r12d
	jns	LBB0_23
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rdi
	callq	_oid_to_hex
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	(%r14), %rdi
	addq	$8, %rdi
	callq	_oid_to_hex
	leaq	L_.str.2(%rip), %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_BUG
	jmp	LBB0_23
LBB0_28:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_31
## %bb.29:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to parse commit %s"

L_.str.1:                               ## @.str.1
	.asciz	"unable to get tree for %s"

	.comm	_GRAPH_PARENT_NONE,4,2          ## @GRAPH_PARENT_NONE
	.comm	_commit_to_sha1,4,2             ## @commit_to_sha1
L_.str.2:                               ## @.str.2
	.asciz	"missing parent %s for commit %s"

	.comm	_GRAPH_EXTRA_EDGES_NEEDED,4,2   ## @GRAPH_EXTRA_EDGES_NEEDED
	.no_dead_strip	_write_graph_chunk_data
.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_data
_write_graph_chunk_data:                ; @write_graph_chunk_data
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	ldrsw	x8, [x2, #16]
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	w27, #0
	ldr	x28, [x2, #24]
	add	x23, x28, x8, lsl #3
Lloh3:
	adrp	x24, _GRAPH_EXTRA_EDGES_NEEDED@GOTPAGE
Lloh4:
	ldr	x24, [x24, _GRAPH_EXTRA_EDGES_NEEDED@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x22, [x28], #8
	ldr	w8, [x22, #4]
	lsl	w0, w8, #2
	bl	_htonl
	str	w0, [sp]
	ldr	w0, [x22]
	bl	_htonl
	str	w0, [sp, #4]
	mov	x1, sp
	mov	x0, x21
	mov	w2, #8
	bl	_hashwrite
	cmp	x28, x23
	b.hs	LBB0_25
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
	ldp	w8, w0, [x19, #32]
	add	w1, w8, #1
	str	w1, [x19, #32]
	bl	_display_progress
	ldr	x0, [x28]
	bl	_parse_commit_no_graph
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x25, x0
	ldr	x8, [x28]
	add	x0, x8, #8
	bl	_oid_to_hex
	mov	x1, x0
	mov	x0, x25
	bl	_die
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x28]
	bl	_get_commit_tree_oid
	mov	x25, x0
	cbnz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x26, x0
	ldr	x8, [x28]
	add	x0, x8, #8
	bl	_oid_to_hex
	mov	x1, x0
	mov	x0, x26
	bl	_die
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x25]
	mov	x0, x21
	mov	x2, x20
	bl	_hashwrite
	ldr	x8, [x28]
	ldr	x22, [x8, #16]
	cbz	x22, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22, #8]
	ldr	w0, [x8]
	ldr	x1, [x19, #24]
	ldr	w2, [x19, #16]
Lloh9:
	adrp	x8, _commit_to_sha1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _commit_to_sha1@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	bl	_sha1_pos
	mov	x25, x0
	tbnz	w0, #31, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #8]
	add	w25, w25, w8
	tbz	w25, #31, LBB0_14
	b	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh12:
	adrp	x8, _GRAPH_PARENT_NONE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GRAPH_PARENT_NONE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_hashwrite_be32
	b	LBB0_17
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x22, #8]
	ldr	w1, [x19]
	mov	x2, sp
	bl	_find_commit_in_graph
	cbz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w25, [sp]
	tbz	w25, #31, LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x22, #8]
	bl	_oid_to_hex
	mov	x26, x0
	ldr	x8, [x28]
	add	x0, x8, #8
	bl	_oid_to_hex
	mov	x2, x0
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x26
	bl	_BUG
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x25
	bl	_hashwrite_be32
	ldr	x22, [x22]
	cbz	x22, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22]
	cbz	x8, LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x24]
	orr	w25, w8, w27
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, #0
Lloh17:
	adrp	x8, _GRAPH_PARENT_NONE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GRAPH_PARENT_NONE@GOTPAGEOFF]
Lloh19:
	ldr	w25, [x8]
LBB0_18:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x25
	bl	_hashwrite_be32
	ldr	w8, [x24]
	tst	w8, w25
	b.eq	LBB0_2
LBB0_19:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w27, w27, #1
	ldr	x22, [x22]
	cbnz	x22, LBB0_19
	b	LBB0_2
LBB0_20:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22, #8]
	ldr	w0, [x8]
	ldr	x1, [x19, #24]
	ldr	w2, [x19, #16]
Lloh20:
	adrp	x8, _commit_to_sha1@GOTPAGE
Lloh21:
	ldr	x8, [x8, _commit_to_sha1@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	bl	_sha1_pos
	mov	x25, x0
	tbnz	w0, #31, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #8]
	add	w25, w25, w8
	tbz	w25, #31, LBB0_18
	b	LBB0_24
LBB0_22:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x22, #8]
	ldr	w1, [x19]
	mov	x2, sp
	bl	_find_commit_in_graph
	cbz	x0, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w25, [sp]
	tbz	w25, #31, LBB0_18
LBB0_24:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x22, #8]
	bl	_oid_to_hex
	mov	x26, x0
	ldr	x8, [x28]
	add	x0, x8, #8
	bl	_oid_to_hex
	mov	x2, x0
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x26
	bl	_BUG
	b	LBB0_18
LBB0_25:
	ldr	x8, [sp, #8]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.26:
	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
LBB0_27:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to parse commit %s"

l_.str.1:                               ; @.str.1
	.asciz	"unable to get tree for %s"

	.comm	_GRAPH_PARENT_NONE,4,2          ; @GRAPH_PARENT_NONE
	.comm	_commit_to_sha1,4,2             ; @commit_to_sha1
l_.str.2:                               ; @.str.2
	.asciz	"missing parent %s for commit %s"

	.comm	_GRAPH_EXTRA_EDGES_NEEDED,4,2   ; @GRAPH_EXTRA_EDGES_NEEDED
	.no_dead_strip	_write_graph_chunk_data
.subsections_via_symbols
