	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_head_info
_add_head_info:                         ## @add_head_info
	.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
	callq	_get_worktree_ref_store
	leaq	8(%rbx), %rcx
	leaq	L_.str(%rip), %rsi
	leaq	-12(%rbp), %r8
	movl	%eax, %edi
	xorl	%edx, %edx
	callq	_refs_resolve_ref_unsafe
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_REF_ISSYMREF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, -12(%rbp)
	je	LBB0_3
## %bb.2:
	movq	%rax, %rdi
	callq	_xstrdup
	movl	%eax, 4(%rbx)
	jmp	LBB0_4
LBB0_3:
	movl	$1, (%rbx)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HEAD"

	.comm	_REF_ISSYMREF,4,2               ## @REF_ISSYMREF
	.no_dead_strip	_add_head_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_head_info
_add_head_info:                         ; @add_head_info
	.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
	bl	_get_worktree_ref_store
	add	x3, x19, #8
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x4, sp, #12
	mov	w2, #0
	bl	_refs_resolve_ref_unsafe
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [sp, #12]
Lloh2:
	adrp	x9, _REF_ISSYMREF@GOTPAGE
Lloh3:
	ldr	x9, [x9, _REF_ISSYMREF@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	bl	_xstrdup
	str	w0, [x19, #4]
	b	LBB0_4
LBB0_3:
	mov	w8, #1
	str	w8, [x19]
LBB0_4:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HEAD"

	.comm	_REF_ISSYMREF,4,2               ; @REF_ISSYMREF
	.no_dead_strip	_add_head_info
.subsections_via_symbols
