	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_head
_parse_head:                            ## @parse_head
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	leaq	-40(%rbp), %rsi
	callq	_get_oid
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
LBB0_2:
	movq	%rbx, (%r14)
	jmp	LBB0_3
LBB0_4:
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_lookup_commit_reference
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	%rax, %rbx
	leaq	-40(%rbp), %rdi
	movq	%rax, %rsi
	callq	_oideq
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	%eax, %r12d
	leaq	-40(%rbp), %rdi
	callq	_oid_to_hex
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_warning
LBB0_9:
	movq	%rbx, %rdi
	callq	_parse_commit
	testq	%rax, %rax
	je	LBB0_2
## %bb.10:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
LBB0_6:
	callq	__
	movl	%eax, %edi
	callq	_error
	movl	%eax, %r15d
LBB0_3:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HEAD"

L_.str.1:                               ## @.str.1
	.asciz	"could not parse HEAD"

L_.str.2:                               ## @.str.2
	.asciz	"HEAD %s is not a commit!"

L_.str.3:                               ## @.str.3
	.asciz	"could not parse HEAD commit"

	.no_dead_strip	_parse_head
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_head
_parse_head:                            ; @parse_head
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #8
	bl	_get_oid
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, #0
LBB0_2:
	mov	w0, #0
	str	x20, [x19]
	b	LBB0_10
LBB0_3:
	add	x1, sp, #8
	mov	x0, x20
	bl	_lookup_commit_reference
	cbz	x0, LBB0_8
; %bb.4:
	mov	x20, x0
	add	x0, sp, #8
	mov	x1, x20
	bl	_oideq
	cbnz	w0, LBB0_6
; %bb.5:
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	mov	x21, x0
	add	x0, sp, #8
	bl	_oid_to_hex
	mov	x1, x0
	mov	x0, x21
	bl	_warning
LBB0_6:
	mov	x0, x20
	bl	_parse_commit
	cbz	x0, LBB0_2
; %bb.7:
Lloh4:
	adrp	x0, l_.str.3@PAGE
Lloh5:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_9:
	bl	__
	bl	_error
LBB0_10:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HEAD"

l_.str.1:                               ; @.str.1
	.asciz	"could not parse HEAD"

l_.str.2:                               ; @.str.2
	.asciz	"HEAD %s is not a commit!"

l_.str.3:                               ; @.str.3
	.asciz	"could not parse HEAD commit"

	.no_dead_strip	_parse_head
.subsections_via_symbols
