	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function is_head
_is_head:                               ## @is_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	%rdi, -16(%rbp)
	callq	_ref_type
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_3
## %bb.1:
	leaq	-16(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_parse_worktree_ref
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	-16(%rbp), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_BUG
LBB0_3:
	movq	-16(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"not a worktree ref: %s"

L_.str.1:                               ## @.str.1
	.asciz	"HEAD"

	.no_dead_strip	_is_head
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function is_head
_is_head:                               ; @is_head
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	str	x0, [sp, #8]
	bl	_ref_type
	and	w8, w0, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_3
; %bb.1:
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	bl	_parse_worktree_ref
	cbz	w0, LBB0_3
; %bb.2:
	ldr	x1, [sp, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BUG
LBB0_3:
	ldr	x0, [sp, #8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cmp	w0, #0
	cset	w0, eq
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"not a worktree ref: %s"

l_.str.1:                               ; @.str.1
	.asciz	"HEAD"

	.no_dead_strip	_is_head
.subsections_via_symbols
