	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_or_sanitize_refname
_check_or_sanitize_refname:             ## @check_or_sanitize_refname
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movl	%esi, -44(%rbp)
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	testq	%r14, %r14
	je	LBB0_2
## %bb.3:
	movq	%r14, %rdi
	movl	$45, %esi
	callq	_strbuf_addch
LBB0_4:
	testq	%r14, %r14
	sete	%r13b
	xorl	%r12d, %r12d
	leaq	-44(%rbp), %r15
	testq	%r14, %r14
	je	LBB0_8
	.p2align	4, 0x90
LBB0_6:
	cmpq	$0, (%r14)
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	movl	$47, %esi
	callq	_strbuf_complete
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_check_refname_component
	movl	%eax, %ecx
	testl	%eax, %eax
	setne	%dl
	orb	%r13b, %dl
	movl	$-1, %eax
	cmpb	$1, %dl
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	testl	%ecx, %ecx
	jle	LBB0_15
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%ecx, %edx
	cmpb	$0, (%rbx,%rdx)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	addq	%rdx, %rbx
	incq	%rbx
	decl	%r12d
	testq	%r14, %r14
	jne	LBB0_6
	jmp	LBB0_8
LBB0_12:
	testq	%r14, %r14
	jne	LBB0_14
## %bb.13:
	movslq	%ecx, %rcx
	cmpb	$46, -1(%rcx,%rbx)
	je	LBB0_15
LBB0_14:
	movq	_REFNAME_ALLOW_ONELEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	andl	-44(%rbp), %ecx
	xorl	%eax, %eax
	orl	%r12d, %ecx
	sete	%al
	negl	%eax
	jmp	LBB0_15
LBB0_2:
	movl	$-1, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"@"

	.comm	_REFNAME_ALLOW_ONELEVEL,4,2     ## @REFNAME_ALLOW_ONELEVEL
	.no_dead_strip	_check_or_sanitize_refname
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_or_sanitize_refname
_check_or_sanitize_refname:             ; @check_or_sanitize_refname
	.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, x2
	mov	x19, x0
	str	w1, [sp, #12]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbnz	w0, LBB0_3
; %bb.1:
	cbz	x20, LBB0_11
; %bb.2:
	mov	x0, x20
	mov	w1, #45
	bl	_strbuf_addch
LBB0_3:
	mov	w21, #0
	cmp	x20, #0
	cset	w22, eq
	cbz	x20, LBB0_6
LBB0_4:
	ldr	x8, [x20]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x20
	mov	w1, #47
	bl	_strbuf_complete
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	mov	x0, x19
	mov	x2, x20
	bl	_check_refname_component
	cmp	w0, #0
	cset	w8, ne
	orr	w8, w22, w8
	cmp	w8, #1
	ccmp	w0, #1, #0, eq
	b.lt	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [x19, w0, uxtw]
	cbz	w8, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w8, w0, #1
	add	x19, x19, x8
	sub	w21, w21, #1
	cbnz	x20, LBB0_4
	b	LBB0_6
LBB0_9:
	cbnz	x20, LBB0_12
; %bb.10:
	add	x8, x19, w0, sxtw
	ldurb	w8, [x8, #-1]
	cmp	w8, #46
	b.ne	LBB0_12
LBB0_11:
	mov	w0, #-1
	b	LBB0_13
LBB0_12:
Lloh2:
	adrp	x8, _REFNAME_ALLOW_ONELEVEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REFNAME_ALLOW_ONELEVEL@GOTPAGEOFF]
	ldr	w9, [sp, #12]
Lloh4:
	ldr	w8, [x8]
	and	w8, w8, w9
	orr	w8, w8, w21
	cmp	w8, #0
	csetm	w0, eq
LBB0_13:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"@"

	.comm	_REFNAME_ALLOW_ONELEVEL,4,2     ; @REFNAME_ALLOW_ONELEVEL
	.no_dead_strip	_check_or_sanitize_refname
.subsections_via_symbols
