	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_repo_parse_commit_internal     ## -- Begin function repo_parse_commit_internal
	.p2align	4, 0x90
_repo_parse_commit_internal:            ## @repo_parse_commit_internal
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %ebx
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.1:
	movq	%rsi, %r15
	xorl	%ebx, %ebx
	cmpq	$0, 8(%rsi)
	je	LBB0_2
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%edx, %r12d
	movq	%rdi, %r14
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_parse_commit_in_graph
	testq	%rax, %rax
	jne	LBB0_14
LBB0_4:
	leaq	-44(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_repo_read_object_file
	testq	%rax, %rax
	je	LBB0_5
## %bb.8:
	movq	%rax, %r13
	movl	-44(%rbp), %eax
	movq	_OBJ_COMMIT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.10:
	movq	-56(%rbp), %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	xorl	%r8d, %r8d
	callq	_parse_commit_buffer
	movl	%eax, %ebx
	movq	_save_commit_buffer@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.11:
	testl	%ebx, %ebx
	jne	LBB0_13
## %bb.12:
	movq	-56(%rbp), %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_set_commit_buffer
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_5:
	movl	$-1, %ebx
	testl	%r12d, %r12d
	jne	LBB0_14
## %bb.6:
	movq	%r15, %rdi
	callq	_oid_to_hex
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_7
LBB0_9:
	movq	%r13, %rdi
	callq	_free
	movq	%r15, %rdi
	callq	_oid_to_hex
	leaq	L_.str.1(%rip), %rdi
LBB0_7:
	movl	%eax, %esi
	callq	_error
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_13:
	movq	%r13, %rdi
	callq	_free
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not read %s"

	.comm	_OBJ_COMMIT,4,2                 ## @OBJ_COMMIT
L_.str.1:                               ## @.str.1
	.asciz	"Object %s not a commit"

	.comm	_save_commit_buffer,8,3         ## @save_commit_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_repo_parse_commit_internal     ; -- Begin function repo_parse_commit_internal
	.p2align	2
_repo_parse_commit_internal:            ; @repo_parse_commit_internal
	.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
	cbz	x1, LBB0_10
; %bb.1:
	mov	x19, x1
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_3
LBB0_2:
	mov	w22, #0
	b	LBB0_11
LBB0_3:
	mov	x22, x2
	mov	x20, x0
	cbz	w3, LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	bl	_parse_commit_in_graph
	cbnz	x0, LBB0_2
LBB0_5:
	add	x2, sp, #12
	mov	x3, sp
	mov	x0, x20
	mov	x1, x19
	bl	_repo_read_object_file
	cbz	x0, LBB0_9
; %bb.6:
	mov	x21, x0
	ldr	w8, [sp, #12]
Lloh0:
	adrp	x9, _OBJ_COMMIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OBJ_COMMIT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.7:
	ldr	x3, [sp]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	w4, #0
	bl	_parse_commit_buffer
Lloh3:
	adrp	x8, _save_commit_buffer@GOTPAGE
Lloh4:
	ldr	x8, [x8, _save_commit_buffer@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, #0
	ccmp	w0, #0, #0, ne
	b.eq	LBB0_13
; %bb.8:
	mov	x22, x0
	mov	x0, x21
	bl	_free
	b	LBB0_11
LBB0_9:
	cbz	w22, LBB0_14
LBB0_10:
	mov	w22, #-1
LBB0_11:
	mov	x0, x22
	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_12:
	mov	x0, x21
	bl	_free
	mov	x0, x19
	bl	_oid_to_hex
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_13:
	ldr	x3, [sp]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_set_commit_buffer
	mov	w22, #0
	b	LBB0_11
LBB0_14:
	mov	x0, x19
	bl	_oid_to_hex
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
LBB0_15:
	bl	_error
	mov	x22, x0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not read %s"

	.comm	_OBJ_COMMIT,4,2                 ; @OBJ_COMMIT
l_.str.1:                               ; @.str.1
	.asciz	"Object %s not a commit"

	.comm	_save_commit_buffer,8,3         ; @save_commit_buffer
.subsections_via_symbols
