	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_check_ref_format           ## -- Begin function cmd_check_ref_format
	.p2align	4, 0x90
_cmd_check_ref_format:                  ## @cmd_check_ref_format
	.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	%rsi, %r13
	movl	%edi, %ebx
	cmpl	$3, %edi
	je	LBB0_4
## %bb.1:
	cmpl	$2, %ebx
	jne	LBB0_6
## %bb.2:
	movq	8(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	_builtin_check_ref_format_usage@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_usage
	jmp	LBB0_7
LBB0_4:
	movq	8(%r13), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movq	16(%r13), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_check_ref_format_branch        ## TAILCALL
LBB0_6:
	jl	LBB0_24
LBB0_7:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %r12d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$1, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_10 Depth=1
	movl	$1, %ebx
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	incq	%r15
	cmpq	%r15, %r12
	je	LBB0_23
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%r15,8), %r14
	cmpb	$45, (%r14)
	jne	LBB0_22
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_8
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_8
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_builtin_check_ref_format_usage@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_usage
	jmp	LBB0_9
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	_REFNAME_ALLOW_ONELEVEL@GOTPCREL(%rip), %rcx
	jmp	LBB0_21
LBB0_19:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	_REFNAME_ALLOW_ONELEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, -44(%rbp)                 ## 4-byte Folded Spill
	jmp	LBB0_9
LBB0_20:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	_REFNAME_REFSPEC_PATTERN@GOTPCREL(%rip), %rcx
LBB0_21:                                ##   in Loop: Header=BB0_10 Depth=1
	orl	(%rcx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_9
LBB0_22:
	movl	%ebx, %r14d
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_25
LBB0_23:
	movl	%ebx, %r14d
	movl	%r12d, %r15d
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_26
LBB0_24:
	xorl	%r14d, %r14d
	movl	$1, %r15d
	xorl	%r12d, %r12d
LBB0_25:
	decl	%ebx
	cmpl	%ebx, %r15d
	je	LBB0_27
LBB0_26:
	movq	_builtin_check_ref_format_usage@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_usage
LBB0_27:
	movl	%r15d, %eax
	movq	(%r13,%rax,8), %rbx
	testl	%r14d, %r14d
	je	LBB0_29
## %bb.28:
	movq	%rbx, %rdi
	callq	_collapse_slashes
	movq	%rax, %rbx
LBB0_29:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_check_refname_format
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	setne	%al
	jne	LBB0_32
## %bb.30:
	testl	%r14d, %r14d
	je	LBB0_32
## %bb.31:
	leaq	L_.str.7(%rip), %rdi
	movq	%rbx, %rsi
	callq	_printf
	xorl	%eax, %eax
LBB0_32:
	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	"-h"

	.comm	_builtin_check_ref_format_usage,4,2 ## @builtin_check_ref_format_usage
L_.str.1:                               ## @.str.1
	.asciz	"--branch"

L_.str.2:                               ## @.str.2
	.asciz	"--normalize"

L_.str.3:                               ## @.str.3
	.asciz	"--print"

L_.str.4:                               ## @.str.4
	.asciz	"--allow-onelevel"

	.comm	_REFNAME_ALLOW_ONELEVEL,4,2     ## @REFNAME_ALLOW_ONELEVEL
L_.str.5:                               ## @.str.5
	.asciz	"--no-allow-onelevel"

L_.str.6:                               ## @.str.6
	.asciz	"--refspec-pattern"

	.comm	_REFNAME_REFSPEC_PATTERN,4,2    ## @REFNAME_REFSPEC_PATTERN
L_.str.7:                               ## @.str.7
	.asciz	"%s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_check_ref_format           ; -- Begin function cmd_check_ref_format
	.p2align	2
_cmd_check_ref_format:                  ; @cmd_check_ref_format
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x21, x0
	cmp	w0, #3
	b.eq	LBB0_4
; %bb.1:
	cmp	w21, #2
	b.ne	LBB0_6
; %bb.2:
	ldr	x0, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbnz	w0, LBB0_7
; %bb.3:
Lloh2:
	adrp	x8, _builtin_check_ref_format_usage@GOTPAGE
Lloh3:
	ldr	x8, [x8, _builtin_check_ref_format_usage@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_usage
	b	LBB0_7
LBB0_4:
	ldr	x0, [x19, #8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbnz	w0, LBB0_7
; %bb.5:
	ldr	x0, [x19, #16]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_check_ref_format_branch
LBB0_6:
	cmp	w21, #2
	b.lt	LBB0_22
LBB0_7:
	mov	w20, #0
	mov	w28, #0
	mov	w25, w21
	mov	w26, #1
Lloh7:
	adrp	x22, l_.str.2@PAGE
Lloh8:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh9:
	adrp	x23, l_.str.3@PAGE
Lloh10:
	add	x23, x23, l_.str.3@PAGEOFF
Lloh11:
	adrp	x24, l_.str.4@PAGE
Lloh12:
	add	x24, x24, l_.str.4@PAGEOFF
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	w28, #1
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x26, x26, #1
	cmp	x25, x26
	b.eq	LBB0_21
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x19, x26, lsl #3]
	ldrb	w8, [x27]
	cmp	w8, #45
	b.ne	LBB0_23
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x27
	mov	x1, x22
	bl	_strcmp
	cbz	w0, LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x27
	mov	x1, x23
	bl	_strcmp
	cbz	w0, LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x27
	mov	x1, x24
	bl	_strcmp
	cbz	w0, LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x27
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x27
Lloh15:
	adrp	x1, l_.str.6@PAGE
Lloh16:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=1
Lloh17:
	adrp	x8, _builtin_check_ref_format_usage@GOTPAGE
Lloh18:
	ldr	x8, [x8, _builtin_check_ref_format_usage@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_usage
	b	LBB0_9
LBB0_17:                                ;   in Loop: Header=BB0_10 Depth=1
Lloh20:
	adrp	x8, _REFNAME_ALLOW_ONELEVEL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _REFNAME_ALLOW_ONELEVEL@GOTPAGEOFF]
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_10 Depth=1
Lloh22:
	adrp	x8, _REFNAME_ALLOW_ONELEVEL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _REFNAME_ALLOW_ONELEVEL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	bic	w20, w20, w8
	b	LBB0_9
LBB0_19:                                ;   in Loop: Header=BB0_10 Depth=1
Lloh25:
	adrp	x8, _REFNAME_REFSPEC_PATTERN@GOTPAGE
Lloh26:
	ldr	x8, [x8, _REFNAME_REFSPEC_PATTERN@GOTPAGEOFF]
LBB0_20:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x8]
	orr	w20, w8, w20
	b	LBB0_9
LBB0_21:
	mov	x26, x25
	b	LBB0_24
LBB0_22:
	mov	w28, #0
	mov	w20, #0
	mov	w26, #1
LBB0_23:
	sub	w8, w21, #1
	cmp	w26, w8
	b.eq	LBB0_25
LBB0_24:
Lloh27:
	adrp	x8, _builtin_check_ref_format_usage@GOTPAGE
Lloh28:
	ldr	x8, [x8, _builtin_check_ref_format_usage@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_usage
LBB0_25:
	ldr	x19, [x19, w26, uxtw #3]
	cbz	w28, LBB0_27
; %bb.26:
	mov	x0, x19
	bl	_collapse_slashes
	mov	x19, x0
LBB0_27:
	mov	x0, x19
	mov	x1, x20
	bl	_check_refname_format
	cmp	x0, #0
	cset	w0, ne
	ccmp	w28, #0, #4, eq
	b.eq	LBB0_29
; %bb.28:
Lloh30:
	adrp	x0, l_.str.7@PAGE
Lloh31:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x1, x19
	bl	_printf
	mov	w0, #0
LBB0_29:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-h"

	.comm	_builtin_check_ref_format_usage,4,2 ; @builtin_check_ref_format_usage
l_.str.1:                               ; @.str.1
	.asciz	"--branch"

l_.str.2:                               ; @.str.2
	.asciz	"--normalize"

l_.str.3:                               ; @.str.3
	.asciz	"--print"

l_.str.4:                               ; @.str.4
	.asciz	"--allow-onelevel"

	.comm	_REFNAME_ALLOW_ONELEVEL,4,2     ; @REFNAME_ALLOW_ONELEVEL
l_.str.5:                               ; @.str.5
	.asciz	"--no-allow-onelevel"

l_.str.6:                               ; @.str.6
	.asciz	"--refspec-pattern"

	.comm	_REFNAME_REFSPEC_PATTERN,4,2    ; @REFNAME_REFSPEC_PATTERN
l_.str.7:                               ; @.str.7
	.asciz	"%s\n"

.subsections_via_symbols
