	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function print_current_branch_name
_print_current_branch_name:             ## @print_current_branch_name
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	leaq	L_.str(%rip), %rdi
	leaq	-12(%rbp), %rcx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_resolve_ref_unsafe
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_REF_ISSYMREF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -12(%rbp)
	je	LBB0_6
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_skip_prefix
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	-24(%rbp), %rdi
	callq	_puts
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_die
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	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 resolve HEAD"

	.comm	_REF_ISSYMREF,4,2               ## @REF_ISSYMREF
L_.str.2:                               ## @.str.2
	.asciz	"refs/heads/"

L_.str.3:                               ## @.str.3
	.asciz	"HEAD (%s) points outside of refs/heads/"

	.no_dead_strip	_print_current_branch_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function print_current_branch_name
_print_current_branch_name:             ; @print_current_branch_name
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	sub	x3, x29, #20
	mov	w1, #0
	mov	x2, #0
	bl	_resolve_ref_unsafe
	cbz	x0, LBB0_4
; %bb.1:
	ldur	w8, [x29, #-20]
Lloh2:
	adrp	x9, _REF_ISSYMREF@GOTPAGE
Lloh3:
	ldr	x9, [x9, _REF_ISSYMREF@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.2:
	mov	x19, x0
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #16
	bl	_skip_prefix
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x0, [sp, #16]
	bl	_puts
	b	LBB0_7
LBB0_4:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	str	x19, [sp]
LBB0_6:
	bl	_die
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HEAD"

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

	.comm	_REF_ISSYMREF,4,2               ; @REF_ISSYMREF
l_.str.2:                               ; @.str.2
	.asciz	"refs/heads/"

l_.str.3:                               ; @.str.3
	.asciz	"HEAD (%s) points outside of refs/heads/"

	.no_dead_strip	_print_current_branch_name
.subsections_via_symbols
