	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_removed
_check_removed:                         ## @check_removed
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_lstat
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movl	(%r14), %ebx
	movq	%r14, %rdi
	callq	_ce_namelen
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_has_symlink_leading_path
	movl	$1, %ebx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:
	movl	(%r15), %edi
	callq	_S_ISDIR
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movl	4(%r14), %edi
	callq	_S_ISGITLINK
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-32(%rbp), %rdx
	callq	_resolve_gitlink_ref
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	$1, %ebx
	jmp	LBB0_7
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_is_missing_file_error
	xorl	%ebx, %ebx
	cmpl	$1, %eax
	sbbl	%ebx, %ebx
	orl	$1, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HEAD"

	.no_dead_strip	_check_removed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_removed
_check_removed:                         ; @check_removed
	.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	x20, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_lstat
	tbnz	x0, #63, LBB0_3
; %bb.1:
	ldr	w21, [x19]
	mov	x0, x19
	bl	_ce_namelen
	mov	x1, x0
	mov	x0, x21
	bl	_has_symlink_leading_path
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #1
	b	LBB0_8
LBB0_3:
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_is_missing_file_error
	cmp	w0, #0
	mov	w8, #-1
	cneg	w0, w8, ne
	b	LBB0_8
LBB0_4:
	ldr	w0, [x20]
	bl	_S_ISDIR
	cbz	x0, LBB0_8
; %bb.5:
	ldr	w0, [x19, #4]
	bl	_S_ISGITLINK
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	w0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	bl	_resolve_gitlink_ref
	cbnz	x0, LBB0_2
LBB0_7:
	mov	w0, #0
LBB0_8:
	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	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HEAD"

	.no_dead_strip	_check_removed
.subsections_via_symbols
