	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_count_refspec_match            ## -- Begin function count_refspec_match
	.p2align	4, 0x90
_count_refspec_match:                   ## @count_refspec_match
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	_strlen
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movl	%eax, %r13d
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r15d
	movq	%rbx, %rax
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %r14
	movq	%r14, %rdi
	callq	_strlen
	movl	%eax, %r12d
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_refname_match
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r13d, %r12d
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	addl	$-5, %r12d
	cmpl	%r12d, %r13d
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_starts_with
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_starts_with
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
LBB0_11:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	jne	LBB0_13
	jmp	LBB0_12
LBB0_1:
	xorl	%eax, %eax
	xorl	%edx, %edx
LBB0_12:
	movq	%rdx, %rcx
	movl	%eax, %r15d
LBB0_13:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%rcx, (%rax)
LBB0_15:
	movl	%r15d, %eax
	addq	$40, %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	"refs/heads/"

L_.str.1:                               ## @.str.1
	.asciz	"refs/tags/"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_count_refspec_match            ; -- Begin function count_refspec_match
	.p2align	2
_count_refspec_match:                   ; @count_refspec_match
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x24, x2
	mov	x21, x1
	mov	x22, x0
	bl	_strlen
	cbz	x21, LBB0_13
; %bb.1:
	mov	x23, x0
	str	x24, [sp, #8]                   ; 8-byte Folded Spill
	mov	w20, #0
	mov	w25, #0
	mov	x28, #0
	mov	x19, #0
Lloh0:
	adrp	x24, l_.str@PAGE
Lloh1:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w20, #1
	mov	x28, x21
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x21, [x21, #8]
	cbz	x21, LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x21]
	mov	x0, x26
	bl	_strlen
	mov	x27, x0
	mov	x0, x22
	mov	x1, x26
	bl	_refname_match
	cbz	w0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w27, #5
	cmp	w27, w23
	ccmp	w23, w8, #4, ne
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
	mov	x1, x24
	bl	_starts_with
	cbnz	w0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_starts_with
	cbnz	w0, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w25, w25, #1
	mov	x19, x21
	b	LBB0_3
LBB0_9:
	ldr	x24, [sp, #8]                   ; 8-byte Folded Reload
	cbz	x28, LBB0_14
; %bb.10:
	cbz	x24, LBB0_12
LBB0_11:
	str	x28, [x24]
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_13:
	mov	w25, #0
	mov	x19, #0
LBB0_14:
	mov	x28, x19
	mov	x20, x25
	cbnz	x24, LBB0_11
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"refs/heads/"

l_.str.1:                               ; @.str.1
	.asciz	"refs/tags/"

.subsections_via_symbols
