	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_refname_is_safe                ## -- Begin function refname_is_safe
	.p2align	4, 0x90
_refname_is_safe:                       ## @refname_is_safe
	.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	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	leaq	-32(%rbp), %rdx
	callq	_skip_prefix
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:
	cmpb	$47, (%rbx)
	je	LBB0_13
## %bb.7:
	cmpb	$47, -1(%rax,%rbx)
	je	LBB0_13
## %bb.8:
	movq	%rax, %rdi
	callq	_xmallocz
	movq	%rax, %r14
	movq	-32(%rbp), %rsi
	movq	%rax, %rdi
	callq	_normalize_path_copy
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	xorl	%r15d, %r15d
	testl	%eax, %eax
	sete	%r15b
LBB0_10:
	movq	%r14, %rdi
	callq	_free
	jmp	LBB0_13
LBB0_1:
	movb	(%rbx), %al
	incq	%rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movzbl	(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	je	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %edi
	callq	_isupper
	testl	%eax, %eax
	jne	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$95, -1(%rbx)
	je	LBB0_11
## %bb.4:
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_12:
	movl	$1, %r15d
LBB0_13:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"refs/"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_refname_is_safe                ; -- Begin function refname_is_safe
	.p2align	2
_refname_is_safe:                       ; @refname_is_safe
	.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
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	bl	_skip_prefix
	cbz	x0, LBB0_6
; %bb.1:
	ldr	x19, [sp, #8]
	mov	x0, x19
	bl	_strlen
	cbz	x0, LBB0_10
; %bb.2:
	ldrb	w8, [x19]
	cmp	w8, #47
	b.eq	LBB0_10
; %bb.3:
	add	x8, x0, x19
	ldurb	w8, [x8, #-1]
	cmp	w8, #47
	b.eq	LBB0_10
; %bb.4:
	bl	_xmallocz
	mov	x19, x0
	ldr	x1, [sp, #8]
	bl	_normalize_path_copy
	cbz	w0, LBB0_12
; %bb.5:
	mov	w20, #0
	b	LBB0_13
LBB0_6:
	ldrb	w8, [x19], #1
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldrb	w8, [x19], #1
	cbz	w8, LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w0, w8
	bl	_isupper
	cbnz	w0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldurb	w8, [x19, #-1]
	cmp	w8, #95
	b.eq	LBB0_7
LBB0_10:
	mov	w20, #0
	b	LBB0_14
LBB0_11:
	mov	w20, #1
	b	LBB0_14
LBB0_12:
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_strcmp
	cmp	w0, #0
	cset	w20, eq
LBB0_13:
	mov	x0, x19
	bl	_free
LBB0_14:
	mov	x0, x20
	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
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"refs/"

.subsections_via_symbols
