	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_refspec
_parse_refspec:                         ## @parse_refspec
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r15
	cmpb	$43, (%rsi)
	jne	LBB0_2
## %bb.1:
	movl	$1, (%r15)
	incq	%r12
LBB0_2:
	movq	%r12, %rdi
	movl	$58, %esi
	callq	_strrchr
	movq	%rax, %rbx
	testl	%r14d, %r14d
	jne	LBB0_6
## %bb.3:
	cmpq	%r12, %rbx
	jne	LBB0_6
## %bb.4:
	cmpb	$0, 1(%r12)
	jne	LBB0_7
## %bb.5:
	movl	$1, 4(%r15)
	jmp	LBB0_37
LBB0_6:
	testq	%rbx, %rbx
	je	LBB0_11
LBB0_7:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	incq	%rbx
	movq	%rbx, %rdi
	callq	_strlen
	movslq	%eax, %r13
	testl	%r13d, %r13d
	je	LBB0_8
## %bb.9:
	movq	%rbx, %rdi
	movl	$42, %esi
	callq	_strchr
	xorl	%r14d, %r14d
	testq	%rax, %rax
	setne	%r14b
	jmp	LBB0_10
LBB0_8:
	xorl	%r14d, %r14d
LBB0_10:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_xstrndup
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, 16(%r15)
	movq	%r12, %r13
	notq	%r13
	addq	%rbx, %r13
	movb	$1, %r15b
	testq	%r13, %r13
	jne	LBB0_13
	jmp	LBB0_16
LBB0_11:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	$0, 16(%r15)
	movq	%r12, %rdi
	callq	_strlen
	movslq	%eax, %r13
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	testq	%r13, %r13
	je	LBB0_16
LBB0_13:
	movq	%r12, %rdi
	movl	$42, %esi
	movq	%r13, %rdx
	callq	_memchr
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	setne	%al
	testq	%rbx, %rbx
	setne	%dl
	sete	%sil
	testl	%r14d, %r14d
	sete	%cl
	xorl	%ebx, %ebx
	testb	%cl, %dl
	jne	LBB0_38
## %bb.15:
	movl	$1, %r14d
	andb	%sil, %al
	je	LBB0_17
	jmp	LBB0_38
LBB0_16:
	testl	%r14d, %r14d
	setne	%al
	xorl	%ebx, %ebx
	testb	%al, %r15b
	jne	LBB0_38
LBB0_17:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%r14d, 8(%rbx)
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_xstrndup
	movq	%rax, 24(%rbx)
	movq	_REFNAME_ALLOW_ONELEVEL@GOTPCREL(%rip), %rcx
	movl	%r14d, %r12d
	testl	%r14d, %r14d
	je	LBB0_19
## %bb.18:
	movq	_REFNAME_REFSPEC_PATTERN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r12d
LBB0_19:
	orl	(%rcx), %r12d
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_29
## %bb.20:
	cmpl	$0, (%rax)
	je	LBB0_25
## %bb.21:
	movq	_the_hash_algo@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rcx), %r13
	jne	LBB0_24
## %bb.22:
	leaq	-64(%rbp), %rsi
	movq	%rax, %rdi
	callq	_get_oid_hex
	testl	%eax, %eax
	je	LBB0_39
## %bb.23:
	movq	24(%rbx), %rax
LBB0_24:
	movq	%rax, %rdi
	movl	%r12d, %esi
	callq	_check_refname_format
	testq	%rax, %rax
	jne	LBB0_28
	jmp	LBB0_25
LBB0_29:
	movq	%rbx, %r15
	cmpl	$0, (%rax)
	je	LBB0_32
## %bb.30:
	testl	%r14d, %r14d
	je	LBB0_32
## %bb.31:
	movq	%rax, %rdi
	movl	%r12d, %esi
	callq	_check_refname_format
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_38
LBB0_32:
	movq	16(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_33
## %bb.34:
	xorl	%ebx, %ebx
	cmpl	$0, (%rdi)
	je	LBB0_38
## %bb.35:
	movl	%r12d, %esi
	callq	_check_refname_format
	testq	%rax, %rax
	jne	LBB0_38
	jmp	LBB0_37
LBB0_33:
	movq	24(%r15), %rdi
	movl	%r12d, %esi
	callq	_check_refname_format
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_38
	jmp	LBB0_37
LBB0_39:
	movl	$1, 12(%rbx)
LBB0_25:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_37
## %bb.26:
	cmpl	$0, (%rdi)
	je	LBB0_37
## %bb.27:
	movl	%r12d, %esi
	callq	_check_refname_format
	testq	%rax, %rax
	je	LBB0_37
LBB0_28:
	xorl	%ebx, %ebx
	jmp	LBB0_38
LBB0_37:
	movl	$1, %ebx
LBB0_38:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REFNAME_ALLOW_ONELEVEL,4,2     ## @REFNAME_ALLOW_ONELEVEL
	.comm	_REFNAME_REFSPEC_PATTERN,4,2    ## @REFNAME_REFSPEC_PATTERN
	.comm	_the_hash_algo,8,3              ## @the_hash_algo
	.no_dead_strip	_parse_refspec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_refspec
_parse_refspec:                         ; @parse_refspec
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldrb	w8, [x1]
	cmp	w8, #43
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #1
	str	w8, [x19]
	add	x21, x21, #1
LBB0_2:
	mov	x0, x21
	mov	w1, #58
	bl	_strrchr
	cbnz	w20, LBB0_6
; %bb.3:
	cmp	x0, x21
	b.ne	LBB0_6
; %bb.4:
	ldrb	w8, [x21, #1]
	cbnz	w8, LBB0_7
; %bb.5:
	mov	w0, #1
	str	w0, [x19, #4]
	b	LBB0_35
LBB0_6:
	cbz	x0, LBB0_11
LBB0_7:
	add	x23, x0, #1
	mov	x0, x23
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x22, w0
	cbz	w0, LBB0_9
; %bb.8:
	mov	x0, x23
	mov	w1, #42
	bl	_strchr
	cmp	x0, #0
	cset	w24, ne
	b	LBB0_10
LBB0_9:
	mov	w24, #0
LBB0_10:
	mov	x0, x23
	mov	x1, x22
	bl	_xstrndup
	str	x0, [x19, #16]
	mvn	x8, x21
	add	x22, x23, x8
	mov	w25, #1
	cbnz	x22, LBB0_12
	b	LBB0_16
LBB0_11:
	str	xzr, [x19, #16]
	mov	x0, x21
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	mov	w25, #0
	mov	w24, #0
	mov	x23, #0
	sxtw	x22, w0
	cbz	x22, LBB0_16
LBB0_12:
	mov	x0, x21
	mov	w1, #42
	mov	x2, x22
	bl	_memchr
	cbz	x0, LBB0_16
; %bb.13:
	mov	w0, #0
	cmp	w20, #0
	ccmp	x23, #0, #0, ne
	cset	w8, eq
	cmp	w24, #0
	ccmp	x23, #0, #4, eq
	b.ne	LBB0_35
; %bb.14:
	tbnz	w8, #0, LBB0_35
; %bb.15:
	mov	w24, #1
	b	LBB0_17
LBB0_16:
	cmp	w24, #0
	cset	w8, ne
	and	w8, w25, w8
	tbnz	w8, #0, LBB0_32
LBB0_17:
	str	w24, [x19, #8]
	mov	x0, x21
	mov	x1, x22
	bl	_xstrndup
	str	x0, [x19, #24]
Lloh0:
	adrp	x8, _REFNAME_ALLOW_ONELEVEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REFNAME_ALLOW_ONELEVEL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _REFNAME_REFSPEC_PATTERN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _REFNAME_REFSPEC_PATTERN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w24, #0
	csel	w9, w9, wzr, ne
	orr	w21, w9, w8
	cbz	w20, LBB0_25
; %bb.18:
	ldr	w8, [x0]
	cbz	w8, LBB0_23
; %bb.19:
Lloh6:
	adrp	x8, _the_hash_algo@GOTPAGE
Lloh7:
	ldr	x8, [x8, _the_hash_algo@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cmp	x22, x8
	b.ne	LBB0_22
; %bb.20:
	add	x1, sp, #8
	bl	_get_oid_hex
	cbz	w0, LBB0_33
; %bb.21:
	ldr	x0, [x19, #24]
LBB0_22:
	mov	x1, x21
	bl	_check_refname_format
	cbnz	x0, LBB0_32
LBB0_23:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_34
LBB0_24:
	ldr	w8, [x0]
	cbnz	w8, LBB0_31
	b	LBB0_34
LBB0_25:
	ldr	w8, [x0]
	cbz	w8, LBB0_28
; %bb.26:
	cbz	w24, LBB0_28
; %bb.27:
	mov	x1, x21
	bl	_check_refname_format
	cbnz	x0, LBB0_32
LBB0_28:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_30
; %bb.29:
	ldr	w8, [x0]
	cbnz	w8, LBB0_31
	b	LBB0_32
LBB0_30:
	ldr	x0, [x19, #24]
LBB0_31:
	mov	x1, x21
	bl	_check_refname_format
	cbz	x0, LBB0_34
LBB0_32:
	mov	w0, #0
	b	LBB0_35
LBB0_33:
	mov	w8, #1
	str	w8, [x19, #12]
	ldr	x0, [x19, #16]
	cbnz	x0, LBB0_24
LBB0_34:
	mov	w0, #1
LBB0_35:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_REFNAME_ALLOW_ONELEVEL,4,2     ; @REFNAME_ALLOW_ONELEVEL
	.comm	_REFNAME_REFSPEC_PATTERN,4,2    ; @REFNAME_REFSPEC_PATTERN
	.comm	_the_hash_algo,8,3              ; @the_hash_algo
	.no_dead_strip	_parse_refspec
.subsections_via_symbols
