	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_commit_buffer            ## -- Begin function parse_commit_buffer
	.p2align	4, 0x90
_parse_commit_buffer:                   ## @parse_commit_buffer
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	cmpl	$0, 4(%rsi)
	je	LBB0_1
LBB0_31:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rcx, %r13
	movq	%rdx, %r15
	movq	%rsi, %r14
	movl	%r8d, -76(%rbp)                 ## 4-byte Spill
	movq	_the_hash_algo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%rax), %r12
	movl	$1, 4(%rsi)
	addq	%rdx, %r13
	leaq	(%r12,%rdx), %rax
	addq	$6, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %r13
	jbe	LBB0_32
## %bb.2:
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	$5, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_32
## %bb.3:
	leaq	(%r12,%r15), %rax
	addq	$5, %rax
	cmpb	$10, (%rax)
	jne	LBB0_32
## %bb.4:
	leaq	5(%r15), %rdi
	leaq	-48(%rbp), %rsi
	callq	_get_oid_hex
	testq	%rax, %rax
	js	LBB0_5
## %bb.7:
	leaq	7(%r12), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_lookup_tree
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_set_commit_tree
	addq	%r12, %r15
	leaq	16(%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	8(%r14), %rsi
	movq	%rbx, %rdi
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	callq	_lookup_commit_graft
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%r15), %rax
	addq	$6, %rax
	cmpq	%r13, %rax
	jae	LBB0_8
## %bb.9:
	addl	$8, %r12d
	movslq	%r12d, %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_32:
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_oid_to_hex
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
LBB0_20:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%r15, %rcx
LBB0_21:                                ##   in Loop: Header=BB0_10 Depth=1
	leaq	(%r12,%rcx), %rax
	cmpq	%r13, %rax
	jae	LBB0_22
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %r15
	movq	%r12, %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	$7, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_22
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r15, %rax
	leaq	(%r12,%r15), %rax
	incq	%rax
	cmpq	%rax, %r13
	jbe	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	leaq	7(%r12), %rdi
	leaq	-48(%rbp), %rsi
	callq	_get_oid_hex
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r15, %rcx
	cmpb	$10, (%r12,%r15)
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	addq	-104(%rbp), %r12                ## 8-byte Folded Reload
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpq	$0, (%rax)
	js	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_grafts_replace_parents@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_21
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	leaq	-48(%rbp), %rsi
	callq	_lookup_commit
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rax, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_commit_list_insert
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_20
LBB0_5:
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_oid_to_hex
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_6
LBB0_8:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_22:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r12
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_28
## %bb.23:
	cmpq	$0, (%rax)
	jle	LBB0_28
## %bb.24:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_25
LBB0_27:                                ##   in Loop: Header=BB0_25 Depth=1
	incq	%rbx
	addq	$4, %r15
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rbx, (%rax)
	jle	LBB0_28
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rsi
	addq	%r15, %rsi
	movq	%r12, %rdi
	callq	_lookup_commit
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	%rax, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_commit_list_insert
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_27
LBB0_28:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_parse_commit_date
	movl	%eax, (%r14)
	cmpl	$0, -76(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_30
## %bb.29:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_load_commit_graph_info
LBB0_30:
	xorl	%eax, %eax
	jmp	LBB0_31
LBB0_14:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_oid_to_hex
	leaq	L_.str.4(%rip), %rdi
LBB0_6:
	movl	%eax, %esi
	callq	_error
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_the_hash_algo,8,3              ## @the_hash_algo
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tree "

L_.str.1:                               ## @.str.1
	.asciz	"bogus commit object %s"

L_.str.2:                               ## @.str.2
	.asciz	"bad tree pointer in commit %s"

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

L_.str.4:                               ## @.str.4
	.asciz	"bad parents in commit %s"

	.comm	_grafts_replace_parents,8,3     ## @grafts_replace_parents
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_commit_buffer            ; -- Begin function parse_commit_buffer
	.p2align	2
_parse_commit_buffer:                   ; @parse_commit_buffer
	.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
	ldr	w8, [x1, #4]
	cbz	w8, LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	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_3:
	mov	x23, x2
	mov	x19, x1
Lloh0:
	adrp	x8, _the_hash_algo@GOTPAGE
Lloh1:
	ldr	x8, [x8, _the_hash_algo@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldrsw	x26, [x8]
	add	x24, x26, x2
	mov	w8, #1
	str	w8, [x1, #4]
	add	x8, x24, #6
	add	x22, x2, x3
	cmp	x22, x8
	b.ls	LBB0_9
; %bb.4:
	mov	x20, x4
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	w2, #5
	bl	_memcmp
	cbnz	x0, LBB0_9
; %bb.5:
	add	x8, x24, #5
	ldrb	w8, [x8]
	cmp	w8, #10
	b.ne	LBB0_9
; %bb.6:
	add	x0, x23, #5
	add	x1, sp, #8
	bl	_get_oid_hex
	tbnz	x0, #63, LBB0_28
; %bb.7:
	add	x28, x26, #7
	add	x1, sp, #8
	mov	x0, x21
	bl	_lookup_tree
	mov	x1, x0
	mov	x0, x19
	bl	_set_commit_tree
	add	x8, x26, x23
	add	x23, x8, #6
	add	x24, x19, #16
	add	x27, x19, #8
	mov	x0, x21
	mov	x1, x27
	bl	_lookup_commit_graft
	mov	x25, x0
	add	x8, x23, x28
	cmp	x8, x22
	b.hs	LBB0_20
; %bb.8:
	str	x27, [sp]                       ; 8-byte Folded Spill
	add	w8, w26, #8
	sxtw	x26, w8
Lloh5:
	adrp	x27, l_.str.3@PAGE
Lloh6:
	add	x27, x27, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_9:
	add	x0, x19, #8
	bl	_oid_to_hex
	mov	x1, x0
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	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
	b	_error
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x23, x23, x26
	add	x8, x23, x28
	cmp	x8, x22
	b.hs	LBB0_20
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x27
	mov	w2, #7
	bl	_memcmp
	cbnz	x0, LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x8, x23, x28
	add	x8, x8, #1
	cmp	x22, x8
	b.ls	LBB0_29
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x0, x23, #7
	add	x1, sp, #8
	bl	_get_oid_hex
	cbnz	x0, LBB0_29
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	ldrb	w8, [x23, x28]
	cmp	w8, #10
	b.ne	LBB0_29
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	cbz	x25, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x25]
	tbnz	x8, #63, LBB0_10
; %bb.17:                               ;   in Loop: Header=BB0_11 Depth=1
Lloh9:
	adrp	x8, _grafts_replace_parents@GOTPAGE
Lloh10:
	ldr	x8, [x8, _grafts_replace_parents@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbnz	x8, LBB0_10
LBB0_18:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x1, sp, #8
	mov	x0, x21
	bl	_lookup_commit
	cbz	x0, LBB0_10
; %bb.19:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x1, x24
	bl	_commit_list_insert
	mov	x24, x0
	b	LBB0_10
LBB0_20:
	cbz	x25, LBB0_26
; %bb.21:
	ldr	x8, [x25]
	cmp	x8, #1
	b.lt	LBB0_26
; %bb.22:
	mov	x26, #0
	mov	x27, #0
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=1
	add	x27, x27, #1
	ldr	x8, [x25]
	add	x26, x26, #4
	cmp	x8, x27
	b.le	LBB0_26
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25, #8]
	add	x1, x8, x26
	mov	x0, x21
	bl	_lookup_commit
	cbz	x0, LBB0_23
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	x1, x24
	bl	_commit_list_insert
	mov	x24, x0
	b	LBB0_23
LBB0_26:
	mov	x0, x23
	mov	x1, x22
	bl	_parse_commit_date
	str	w0, [x19]
	cbz	w20, LBB0_1
; %bb.27:
	mov	x0, x21
	mov	x1, x19
	bl	_load_commit_graph_info
	b	LBB0_1
LBB0_28:
	add	x0, x19, #8
	bl	_oid_to_hex
	mov	x1, x0
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_error
	b	LBB0_2
LBB0_29:
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_oid_to_hex
	mov	x1, x0
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_error
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_the_hash_algo,8,3              ; @the_hash_algo
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tree "

l_.str.1:                               ; @.str.1
	.asciz	"bogus commit object %s"

l_.str.2:                               ; @.str.2
	.asciz	"bad tree pointer in commit %s"

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

l_.str.4:                               ; @.str.4
	.asciz	"bad parents in commit %s"

	.comm	_grafts_replace_parents,8,3     ; @grafts_replace_parents
.subsections_via_symbols
