	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function show_ref
_show_ref:                              ## @show_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_show_head@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_16
LBB0_2:
	movq	_tags_only@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	_heads_only@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	je	LBB0_8
## %bb.3:
	xorl	%ebx, %ebx
	movl	$0, %r14d
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_starts_with
	xorl	%r14d, %r14d
	testq	%rax, %rax
	setne	%r14b
	movq	(%r15), %rax
LBB0_5:
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_starts_with
	xorl	%ebx, %ebx
	testq	%rax, %rax
	setne	%bl
LBB0_7:
	orl	%r14d, %ebx
	je	LBB0_17
LBB0_8:
	movq	_pattern@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_16
## %bb.9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_strlen
	movq	(%rbx), %r14
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.10:
	movl	%eax, %r12d
	movslq	%eax, %r15
	addq	-48(%rbp), %r15                 ## 8-byte Folded Reload
	addq	$8, %r14
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	(%r14), %rbx
	addq	$8, %r14
	testq	%rbx, %rbx
	je	LBB0_17
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	cmpl	%eax, %r12d
	jl	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%eax, %r13d
	cltq
	movq	%r15, %rsi
	subq	%rax, %rsi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	%r13d, %r12d
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	notl	%r13d
	addl	%r12d, %r13d
	movslq	%r13d, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpb	$47, (%rcx,%rax)
	jne	LBB0_15
LBB0_16:
	movq	_found_match@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_show_one
LBB0_17:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_show_head,8,3                  ## @show_head
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HEAD"

	.comm	_tags_only,8,3                  ## @tags_only
	.comm	_heads_only,8,3                 ## @heads_only
L_.str.1:                               ## @.str.1
	.asciz	"refs/heads/"

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

	.comm	_pattern,8,3                    ## @pattern
	.comm	_found_match,4,2                ## @found_match
	.no_dead_strip	_show_ref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function show_ref
_show_ref:                              ; @show_ref
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _show_head@GOTPAGE
Lloh1:
	ldr	x8, [x8, _show_head@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_15
LBB0_2:
Lloh5:
	adrp	x22, _tags_only@GOTPAGE
Lloh6:
	ldr	x22, [x22, _tags_only@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh7:
	adrp	x9, _heads_only@GOTPAGE
Lloh8:
	ldr	x9, [x9, _heads_only@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	orr	x10, x8, x9
	cbz	x10, LBB0_7
; %bb.3:
	cbz	x9, LBB0_17
; %bb.4:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_starts_with
	cmp	x0, #0
	cset	w21, ne
	ldr	x8, [x22]
	cbz	x8, LBB0_6
LBB0_5:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_starts_with
	cmp	x0, #0
	cset	w8, ne
LBB0_6:
	orr	w8, w8, w21
	cbz	w8, LBB0_16
LBB0_7:
Lloh14:
	adrp	x22, _pattern@GOTPAGE
Lloh15:
	ldr	x22, [x22, _pattern@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_15
; %bb.8:
	mov	x0, x20
	bl	_strlen
	ldr	x8, [x22]
	ldr	x22, [x8]
	cbz	x22, LBB0_16
; %bb.9:
	mov	x21, x0
	add	x24, x20, w0, sxtw
	add	x25, x8, #8
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x22, [x25], #8
	cbz	x22, LBB0_16
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_strlen
	cmp	w21, w0
	b.lt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x23, x0
	sub	x1, x24, w0, sxtw
	mov	x0, x22
	mov	x2, x23
	bl	_memcmp
	cbnz	x0, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w21, w23
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	mvn	w8, w23
	add	w8, w21, w8
	ldrb	w8, [x20, w8, sxtw]
	cmp	w8, #47
	b.ne	LBB0_10
LBB0_15:
Lloh16:
	adrp	x8, _found_match@GOTPAGE
Lloh17:
	ldr	x8, [x8, _found_match@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_show_one
LBB0_16:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_17:
	mov	w21, #0
	cbnz	x8, LBB0_5
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_show_head,8,3                  ; @show_head
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HEAD"

	.comm	_tags_only,8,3                  ; @tags_only
	.comm	_heads_only,8,3                 ; @heads_only
l_.str.1:                               ; @.str.1
	.asciz	"refs/heads/"

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

	.comm	_pattern,8,3                    ; @pattern
	.comm	_found_match,4,2                ; @found_match
	.no_dead_strip	_show_ref
.subsections_via_symbols
