	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_ref
_check_ref:                             ## @check_ref
	.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, -32(%rbp)
	testl	%esi, %esi
	je	LBB0_7
## %bb.1:
	movl	%esi, %r14d
	leaq	L_.str(%rip), %rsi
	leaq	-32(%rbp), %rdx
	callq	_skip_prefix
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	movq	_REF_NORMAL@GOTPCREL(%rip), %r15
	testl	%r14d, (%r15)
	je	LBB0_4
## %bb.3:
	movq	-32(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_check_refname_format
	testq	%rax, %rax
	jne	LBB0_12
LBB0_4:
	movq	_REF_HEADS@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_9
## %bb.5:
	movq	-32(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_starts_with
	testq	%rax, %rax
	je	LBB0_9
LBB0_7:
	movl	$1, %ebx
	jmp	LBB0_12
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_9:
	movq	_REF_TAGS@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_11
## %bb.10:
	movq	-32(%rbp), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_starts_with
	movl	$1, %ebx
	testq	%rax, %rax
	jne	LBB0_12
LBB0_11:
	movl	(%r15), %eax
	notl	%eax
	xorl	%ebx, %ebx
	testl	%r14d, %eax
	sete	%bl
LBB0_12:
	movl	%ebx, %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/"

	.comm	_REF_NORMAL,4,2                 ## @REF_NORMAL
	.comm	_REF_HEADS,4,2                  ## @REF_HEADS
L_.str.1:                               ## @.str.1
	.asciz	"heads/"

	.comm	_REF_TAGS,4,2                   ## @REF_TAGS
L_.str.2:                               ## @.str.2
	.asciz	"tags/"

	.no_dead_strip	_check_ref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_ref
_check_ref:                             ; @check_ref
	.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
	str	x0, [sp, #8]
	cbz	w1, LBB0_8
; %bb.1:
	mov	x19, x1
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	bl	_skip_prefix
	cbz	w0, LBB0_9
; %bb.2:
Lloh2:
	adrp	x20, _REF_NORMAL@GOTPAGE
Lloh3:
	ldr	x20, [x20, _REF_NORMAL@GOTPAGEOFF]
	ldr	w8, [x20]
	tst	w8, w19
	b.eq	LBB0_4
; %bb.3:
	ldr	x0, [sp, #8]
	mov	w1, #0
	bl	_check_refname_format
	mov	x8, x0
	mov	w0, #0
	cbnz	x8, LBB0_9
LBB0_4:
Lloh4:
	adrp	x8, _REF_HEADS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _REF_HEADS@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_6
; %bb.5:
	ldr	x0, [sp, #8]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_starts_with
	cbnz	x0, LBB0_8
LBB0_6:
Lloh9:
	adrp	x8, _REF_TAGS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REF_TAGS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_10
; %bb.7:
	ldr	x0, [sp, #8]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_starts_with
	cbz	x0, LBB0_10
LBB0_8:
	mov	w0, #1
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_10:
	ldr	w8, [x20]
	bics	wzr, w19, w8
	cset	w0, eq
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"refs/"

	.comm	_REF_NORMAL,4,2                 ; @REF_NORMAL
	.comm	_REF_HEADS,4,2                  ; @REF_HEADS
l_.str.1:                               ; @.str.1
	.asciz	"heads/"

	.comm	_REF_TAGS,4,2                   ; @REF_TAGS
l_.str.2:                               ; @.str.2
	.asciz	"tags/"

	.no_dead_strip	_check_ref
.subsections_via_symbols
