	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsck_head_link
_fsck_head_link:                        ## @fsck_head_link
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_fprintf_ln
LBB0_2:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_resolve_ref_unsafe
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_starts_with
	testl	%eax, %eax
	je	LBB0_7
## %bb.10:
	movq	%r12, %rdi
	callq	_is_null_oid
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.5(%rip), %rdi
	callq	__
	movq	(%r14), %rcx
	addq	$11, %rcx
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_fprintf_ln
	jmp	LBB0_12
LBB0_3:
	movq	_ERROR_REFS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errors_found@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_4
LBB0_8:
	movq	%r12, %rdi
	callq	_is_null_oid
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	_ERROR_REFS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errors_found@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
	leaq	L_.str.4(%rip), %rdi
LBB0_4:
	callq	__
	movl	%eax, %edi
	movq	%r15, %rsi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
LBB0_12:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_ERROR_REFS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errors_found@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movq	(%r14), %rdx
	movl	%eax, %edi
	movq	%r15, %rsi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_verbose,8,3                    ## @verbose
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Checking %s link"

	.comm	_ERROR_REFS,4,2                 ## @ERROR_REFS
	.comm	_errors_found,4,2               ## @errors_found
L_.str.1:                               ## @.str.1
	.asciz	"invalid %s"

L_.str.2:                               ## @.str.2
	.asciz	"refs/heads/"

L_.str.3:                               ## @.str.3
	.asciz	"%s points to something strange (%s)"

L_.str.4:                               ## @.str.4
	.asciz	"%s: detached HEAD points at nothing"

L_.str.5:                               ## @.str.5
	.asciz	"notice: %s points to an unborn branch (%s)"

	.no_dead_strip	_fsck_head_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsck_head_link
_fsck_head_link:                        ; @fsck_head_link
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _verbose@GOTPAGE
Lloh1:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _stderr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x22
	mov	x2, x19
	bl	_fprintf_ln
LBB0_2:
	mov	x0, x19
	mov	w1, #0
	mov	x2, x21
	mov	x3, #0
	bl	_resolve_ref_unsafe
	str	x0, [x20]
	cbz	x0, LBB0_7
; %bb.3:
	mov	x22, x0
	mov	x1, x19
	bl	_strcmp
	cbz	w0, LBB0_8
; %bb.4:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_starts_with
	cbz	w0, LBB0_12
; %bb.5:
	mov	x0, x21
	bl	_is_null_oid
	cbz	x0, LBB0_11
; %bb.6:
Lloh10:
	adrp	x8, _stderr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh12:
	ldr	w21, [x8]
Lloh13:
	adrp	x0, l_.str.5@PAGE
Lloh14:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	__
	mov	x1, x0
	ldr	x8, [x20]
	add	x8, x8, #11
	str	x8, [sp]
	mov	x0, x21
	mov	x2, x19
	bl	_fprintf_ln
	b	LBB0_11
LBB0_7:
Lloh15:
	adrp	x8, _ERROR_REFS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERROR_REFS@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _errors_found@GOTPAGE
Lloh19:
	ldr	x9, [x9, _errors_found@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_8:
	mov	x0, x21
	bl	_is_null_oid
	cbz	x0, LBB0_11
; %bb.9:
Lloh22:
	adrp	x8, _ERROR_REFS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ERROR_REFS@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _errors_found@GOTPAGE
Lloh26:
	ldr	x9, [x9, _errors_found@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
Lloh27:
	adrp	x0, l_.str.4@PAGE
Lloh28:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_10:
	bl	__
	mov	x1, x19
	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
	b	_error
LBB0_11:
	mov	w0, #0
	b	LBB0_13
LBB0_12:
Lloh29:
	adrp	x8, _ERROR_REFS@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ERROR_REFS@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _errors_found@GOTPAGE
Lloh33:
	ldr	x9, [x9, _errors_found@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
Lloh34:
	adrp	x0, l_.str.3@PAGE
Lloh35:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	ldr	x8, [x20]
	str	x8, [sp]
	mov	x1, x19
	bl	_error
LBB0_13:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_verbose,8,3                    ; @verbose
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Checking %s link"

	.comm	_ERROR_REFS,4,2                 ; @ERROR_REFS
	.comm	_errors_found,4,2               ; @errors_found
l_.str.1:                               ; @.str.1
	.asciz	"invalid %s"

l_.str.2:                               ; @.str.2
	.asciz	"refs/heads/"

l_.str.3:                               ; @.str.3
	.asciz	"%s points to something strange (%s)"

l_.str.4:                               ; @.str.4
	.asciz	"%s: detached HEAD points at nothing"

l_.str.5:                               ; @.str.5
	.asciz	"notice: %s points to an unborn branch (%s)"

	.no_dead_strip	_fsck_head_link
.subsections_via_symbols
