	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_filter_refs                    ## -- Begin function filter_refs
	.p2align	4, 0x90
_filter_refs:                           ## @filter_refs
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, -40(%rbp)
	movq	%rsi, -48(%rbp)
	movq	_FILTER_REFS_INCLUDE_BROKEN@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	movl	(%rax), %eax
	andl	%edx, %eax
	setne	%bl
	movq	_FILTER_REFS_KIND_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	movl	%edx, (%rsi)
	leaq	-52(%rbp), %r14
	movq	%r14, %rdi
	callq	_init_contains_cache
	leaq	-56(%rbp), %rdi
	callq	_init_contains_cache
	movl	(%r12), %eax
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movb	%bl, %r15b
	movq	_FILTER_REFS_BRANCHES@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.3:
	movq	_ref_filter_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_die
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_5:
	movq	_FILTER_REFS_REMOTES@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.6:
	movq	_ref_filter_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_4
LBB0_7:
	movq	_FILTER_REFS_TAGS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.8:
	movq	_ref_filter_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdi
LBB0_4:
	leaq	-56(%rbp), %rdx
	movl	%r15d, %ecx
	callq	_for_each_fullref_in
LBB0_11:
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.12:
	movl	(%r12), %eax
LBB0_13:
	movq	_FILTER_REFS_DETACHED_HEAD@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.14:
	movq	_ref_filter_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-56(%rbp), %rsi
	callq	_head_ref
LBB0_15:
	movq	%r14, %rdi
	callq	_clear_contains_cache
	leaq	-56(%rbp), %rdi
	callq	_clear_contains_cache
	cmpq	$0, 8(%r12)
	je	LBB0_17
## %bb.16:
	leaq	-56(%rbp), %rdi
	callq	_do_merge_filter
LBB0_17:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_FILTER_REFS_ALL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.10:
	movq	_ref_filter_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movq	%r12, %rdi
	movl	%r15d, %ecx
	callq	_for_each_fullref_in_pattern
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_FILTER_REFS_INCLUDE_BROKEN,4,2 ## @FILTER_REFS_INCLUDE_BROKEN
	.comm	_FILTER_REFS_KIND_MASK,4,2      ## @FILTER_REFS_KIND_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"filter_refs: invalid type"

	.comm	_FILTER_REFS_BRANCHES,4,2       ## @FILTER_REFS_BRANCHES
L_.str.1:                               ## @.str.1
	.asciz	"refs/heads/"

	.comm	_ref_filter_handler,4,2         ## @ref_filter_handler
	.comm	_FILTER_REFS_REMOTES,4,2        ## @FILTER_REFS_REMOTES
L_.str.2:                               ## @.str.2
	.asciz	"refs/remotes/"

	.comm	_FILTER_REFS_TAGS,4,2           ## @FILTER_REFS_TAGS
L_.str.3:                               ## @.str.3
	.asciz	"refs/tags/"

	.comm	_FILTER_REFS_ALL,4,2            ## @FILTER_REFS_ALL
	.comm	_FILTER_REFS_DETACHED_HEAD,4,2  ## @FILTER_REFS_DETACHED_HEAD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_filter_refs                    ; -- Begin function filter_refs
	.p2align	2
_filter_refs:                           ; @filter_refs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	stp	x1, x0, [sp, #16]
Lloh0:
	adrp	x8, _FILTER_REFS_INCLUDE_BROKEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FILTER_REFS_INCLUDE_BROKEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w2
Lloh3:
	adrp	x8, _FILTER_REFS_KIND_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FILTER_REFS_KIND_MASK@GOTPAGEOFF]
	cset	w21, ne
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w2
	str	w8, [x1]
	add	x8, sp, #8
	orr	x20, x8, #0x4
	mov	x0, x20
	bl	_init_contains_cache
	add	x0, sp, #8
	bl	_init_contains_cache
	ldr	w8, [x19]
	cbz	w8, LBB0_3
; %bb.1:
Lloh6:
	adrp	x9, _FILTER_REFS_BRANCHES@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FILTER_REFS_BRANCHES@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.2:
Lloh9:
	adrp	x8, _ref_filter_handler@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ref_filter_handler@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_3:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die
	b	LBB0_12
LBB0_4:
Lloh16:
	adrp	x9, _FILTER_REFS_REMOTES@GOTPAGE
Lloh17:
	ldr	x9, [x9, _FILTER_REFS_REMOTES@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.5:
Lloh19:
	adrp	x8, _ref_filter_handler@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ref_filter_handler@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_6:
Lloh24:
	adrp	x9, _FILTER_REFS_TAGS@GOTPAGE
Lloh25:
	ldr	x9, [x9, _FILTER_REFS_TAGS@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_16
; %bb.7:
Lloh27:
	adrp	x8, _ref_filter_handler@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ref_filter_handler@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x0, l_.str.3@PAGE
Lloh31:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_8:
	add	x2, sp, #8
	mov	x3, x21
	bl	_for_each_fullref_in
	mov	x21, x0
	cbnz	w0, LBB0_13
LBB0_9:
	ldr	w8, [x19]
LBB0_10:
Lloh32:
	adrp	x9, _FILTER_REFS_DETACHED_HEAD@GOTPAGE
Lloh33:
	ldr	x9, [x9, _FILTER_REFS_DETACHED_HEAD@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
Lloh35:
	adrp	x8, _ref_filter_handler@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ref_filter_handler@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_head_ref
LBB0_12:
	mov	w21, #0
LBB0_13:
	mov	x0, x20
	bl	_clear_contains_cache
	add	x0, sp, #8
	bl	_clear_contains_cache
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_15
; %bb.14:
	add	x0, sp, #8
	bl	_do_merge_filter
LBB0_15:
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
LBB0_16:
Lloh38:
	adrp	x9, _FILTER_REFS_ALL@GOTPAGE
Lloh39:
	ldr	x9, [x9, _FILTER_REFS_ALL@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.17:
Lloh41:
	adrp	x8, _ref_filter_handler@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ref_filter_handler@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	mov	x3, x21
	bl	_for_each_fullref_in_pattern
	mov	x21, x0
	cbnz	w0, LBB0_13
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_FILTER_REFS_INCLUDE_BROKEN,4,2 ; @FILTER_REFS_INCLUDE_BROKEN
	.comm	_FILTER_REFS_KIND_MASK,4,2      ; @FILTER_REFS_KIND_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"filter_refs: invalid type"

	.comm	_FILTER_REFS_BRANCHES,4,2       ; @FILTER_REFS_BRANCHES
l_.str.1:                               ; @.str.1
	.asciz	"refs/heads/"

	.comm	_ref_filter_handler,4,2         ; @ref_filter_handler
	.comm	_FILTER_REFS_REMOTES,4,2        ; @FILTER_REFS_REMOTES
l_.str.2:                               ; @.str.2
	.asciz	"refs/remotes/"

	.comm	_FILTER_REFS_TAGS,4,2           ; @FILTER_REFS_TAGS
l_.str.3:                               ; @.str.3
	.asciz	"refs/tags/"

	.comm	_FILTER_REFS_ALL,4,2            ; @FILTER_REFS_ALL
	.comm	_FILTER_REFS_DETACHED_HEAD,4,2  ; @FILTER_REFS_DETACHED_HEAD
.subsections_via_symbols
