	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function append_matching_ref
_append_matching_ref:                   ## @append_matching_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	%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	%rcx, %r14
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r13
	callq	_count_slashes
	movb	(%r13), %cl
	testb	%cl, %cl
	je	LBB0_1
## %bb.7:
	movq	_match_ref_slash@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	%r13, %rsi
	cmpl	%eax, %edx
	jge	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	cmpb	$47, %cl
	movzbl	1(%rsi), %ecx
	leaq	1(%rsi), %rsi
	sete	%bl
	testb	%cl, %cl
	je	LBB0_2
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movb	%bl, %dil
	subl	%edi, %eax
	cmpl	%eax, %edx
	jl	LBB0_9
LBB0_2:
	testb	%cl, %cl
	je	LBB0_11
LBB0_3:
	movq	_match_ref_pattern@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%edx, %edx
	callq	_wildmatch
	testq	%rax, %rax
	je	LBB0_4
LBB0_11:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r13, %rsi
	testb	%cl, %cl
	jne	LBB0_3
	jmp	LBB0_11
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_starts_with
	testq	%rax, %rax
	je	LBB0_5
## %bb.12:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	movq	%r14, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_append_head_ref                ## TAILCALL
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_starts_with
	movq	%r13, %rdi
	movq	%r12, %rsi
	testq	%rax, %rax
	je	LBB0_6
## %bb.13:
	movl	%r15d, %edx
	movq	%r14, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_append_tag_ref                 ## TAILCALL
LBB0_6:
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_append_ref                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_match_ref_slash,4,2            ## @match_ref_slash
	.comm	_match_ref_pattern,4,2          ## @match_ref_pattern
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"refs/heads/"

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

	.no_dead_strip	_append_matching_ref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function append_matching_ref
_append_matching_ref:                   ; @append_matching_ref
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	bl	_count_slashes
Lloh0:
	adrp	x8, _match_ref_slash@GOTPAGE
Lloh1:
	ldr	x8, [x8, _match_ref_slash@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldrb	w9, [x22]
	cmp	w9, #0
	mov	x1, x22
	ccmp	w8, w0, #0, ne
	b.lt	LBB0_2
; %bb.1:
	mov	x10, x9
	b	LBB0_3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x1, #1]!
	cmp	w9, #47
	cset	w9, eq
	sub	w0, w0, w9
	cmp	w10, #0
	ccmp	w8, w0, #0, ne
	mov	x9, x10
	b.lt	LBB0_2
LBB0_3:
	cbz	w10, LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _match_ref_pattern@GOTPAGE
Lloh4:
	ldr	x8, [x8, _match_ref_pattern@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	w2, #0
	bl	_wildmatch
	cbz	x0, LBB0_6
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_starts_with
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	mov	x3, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_append_head_ref
LBB0_8:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_starts_with
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	mov	x3, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_append_tag_ref
LBB0_10:
	mov	x0, x22
	mov	x1, x20
	mov	w2, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_append_ref
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_match_ref_slash,4,2            ; @match_ref_slash
	.comm	_match_ref_pattern,4,2          ; @match_ref_pattern
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"refs/heads/"

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

	.no_dead_strip	_append_matching_ref
.subsections_via_symbols
