	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function filter_refs
_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movq	$0, -96(%rbp)
	movq	_OIDSET_INIT@GOTPCREL(%rip), %rax
	movq	_ALLOW_TIP_SHA1@GOTPCREL(%rip), %rcx
	movq	_ALLOW_REACHABLE_SHA1@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	(%rax), %eax
	movq	_allow_unadvertised_object_request@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edx
	movl	%edx, -76(%rbp)                 ## 4-byte Spill
	movl	%eax, -64(%rbp)
	movq	(%rsi), %r15
	testq	%r15, %r15
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movslq	%r12d, %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	leaq	-96(%rbp), %r13
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -128(%rbp)                ## 8-byte Spill
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, (%r13)
	leaq	8(%r15), %r13
	xorl	%eax, %eax
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 8(%r15)
LBB0_22:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rcx, %r15
	testq	%rcx, %rcx
	je	LBB0_23
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	8(%r15), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	20(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_starts_with
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	20(%r15), %edi
	xorl	%esi, %esi
	callq	_check_refname_format
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_free_one_ref
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpl	%r12d, %eax
	jge	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, -136(%rbp)                ## 8-byte Spill
	cltq
	leaq	(%r14,%rax,8), %rbx
	movq	-112(%rbp), %r12                ## 8-byte Reload
	subq	%rax, %r12
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=2
	incq	%r13
	cmpq	%r13, %r12
	je	LBB0_12
LBB0_8:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	20(%r15), %edi
	movq	(%rbx,%r13,8), %rax
	movl	20(%rax), %esi
	callq	_strcmp
	testl	%eax, %eax
	js	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	_REF_MATCHED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx,%r13,8), %rcx
	movq	%rax, (%rcx)
	movl	$1, %r14d
	jmp	LBB0_11
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addl	%r13d, %eax
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_14
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %eax
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%r14d, %r14d
	movq	-128(%rbp), %r14                ## 8-byte Reload
	movq	-136(%rbp), %r13                ## 8-byte Reload
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	jne	LBB0_20
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 8(%rbx)
	je	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, (%rbx)
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	20(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	callq	_starts_with
	testq	%rax, %rax
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	jne	LBB0_19
	jmp	LBB0_20
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, %rcx
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_21
LBB0_1:
	leaq	-96(%rbp), %r13
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_23:
	movl	%r12d, %r12d
	cmpl	$0, -76(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_29
## %bb.24:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_29
## %bb.25:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%rbx,8), %rdi
	callq	_is_unmatched_ref
	testl	%eax, %eax
	jne	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_27 Depth=1
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_27
LBB0_29:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jg	LBB0_30
	jmp	LBB0_37
LBB0_28:
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_add_refs_to_oidset
	movq	-96(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_add_refs_to_oidset
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_37
LBB0_30:
	xorl	%r15d, %r15d
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_31 Depth=1
	movq	_REF_MATCHED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_copy_ref
	movq	%rax, (%r13)
	addq	$8, %rax
	movq	%rax, %r13
LBB0_36:                                ##   in Loop: Header=BB0_31 Depth=1
	incq	%r15
	cmpq	%r15, %r12
	je	LBB0_37
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%r15,8), %rbx
	movq	%rbx, %rdi
	callq	_is_unmatched_ref
	testl	%eax, %eax
	je	LBB0_36
## %bb.32:                              ##   in Loop: Header=BB0_31 Depth=1
	cmpl	$0, -76(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_31 Depth=1
	leaq	16(%rbx), %rsi
	leaq	-64(%rbp), %rdi
	callq	_oidset_contains
	testq	%rax, %rax
	jne	LBB0_34
## %bb.35:                              ##   in Loop: Header=BB0_31 Depth=1
	movq	_REF_UNADVERTISED_NOT_ALLOWED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_36
LBB0_37:
	leaq	-64(%rbp), %rdi
	callq	_oidset_clear
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_free_refs
	movq	-96(%rbp), %rax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, (%rcx)
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OIDSET_INIT,4,2                ## @OIDSET_INIT
	.comm	_allow_unadvertised_object_request,4,2 ## @allow_unadvertised_object_request
	.comm	_ALLOW_TIP_SHA1,4,2             ## @ALLOW_TIP_SHA1
	.comm	_ALLOW_REACHABLE_SHA1,4,2       ## @ALLOW_REACHABLE_SHA1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"refs/"

	.comm	_REF_MATCHED,8,3                ## @REF_MATCHED
L_.str.1:                               ## @.str.1
	.asciz	"refs/tags/"

	.comm	_REF_UNADVERTISED_NOT_ALLOWED,8,3 ## @REF_UNADVERTISED_NOT_ALLOWED
	.no_dead_strip	_filter_refs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function filter_refs
_filter_refs:                           ; @filter_refs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x22, x3
	mov	x20, x2
	str	xzr, [sp, #56]
Lloh0:
	adrp	x8, _OIDSET_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OIDSET_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #48]
Lloh3:
	adrp	x8, _allow_unadvertised_object_request@GOTPAGE
Lloh4:
	ldr	x8, [x8, _allow_unadvertised_object_request@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _ALLOW_TIP_SHA1@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ALLOW_TIP_SHA1@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _ALLOW_REACHABLE_SHA1@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ALLOW_REACHABLE_SHA1@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w10, w9
	and	w8, w9, w8
	ldr	x26, [x1]
	str	x1, [sp, #16]                   ; 8-byte Folded Spill
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	cbz	x26, LBB0_20
; %bb.1:
	mov	x23, x0
	str	xzr, [sp, #40]                  ; 8-byte Folded Spill
	mov	w25, #0
	sxtw	x8, w22
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	add	x27, sp, #56
Lloh12:
	adrp	x28, l_.str@PAGE
Lloh13:
	add	x28, x28, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, #0
	str	x26, [x27]
	mov	x27, x19
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x8, [x26, #8]
	mov	x26, x21
	cbz	x21, LBB0_21
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	mov	x19, x26
	ldr	x21, [x19, #8]!
	ldr	w0, [x19, #12]
	mov	x1, x28
	bl	_starts_with
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x26, #20]
	mov	w1, #0
	bl	_check_refname_format
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
	bl	_free_one_ref
	mov	x26, x21
	cbnz	x21, LBB0_4
	b	LBB0_21
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w25, w22
	b.ge	LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x27, [sp, #32]                  ; 8-byte Folded Spill
	mov	x27, x23
	mov	x28, x22
	mov	w24, #0
	add	x23, x20, w25, sxtw #3
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	sub	x22, x8, w25, sxtw
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	w25, w25, #1
	add	x23, x23, #8
	subs	x22, x22, #1
	b.eq	LBB0_14
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x26, #20]
	ldr	x8, [x23]
	ldr	w1, [x8, #20]
	bl	_strcmp
	tbnz	w0, #31, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	cbnz	w0, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
Lloh14:
	adrp	x8, _REF_MATCHED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _REF_MATCHED@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	x9, [x23]
	str	x8, [x9]
	mov	w24, #1
	b	LBB0_9
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x28
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x28
	mov	x25, x22
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x27
	ldr	x27, [sp, #32]                  ; 8-byte Folded Reload
Lloh17:
	adrp	x28, l_.str@PAGE
Lloh18:
	add	x28, x28, l_.str@PAGEOFF
	cbnz	w24, LBB0_2
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23]
	cbz	w8, LBB0_2
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x26, #20]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_starts_with
	cbz	x0, LBB0_2
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	str	x26, [sp, #40]                  ; 8-byte Folded Spill
	b	LBB0_3
LBB0_20:
	str	xzr, [sp, #40]                  ; 8-byte Folded Spill
	add	x27, sp, #56
LBB0_21:
	ldr	w23, [sp, #12]                  ; 4-byte Folded Reload
	cmp	w23, #0
	ccmp	w22, #1, #8, eq
	ldr	x24, [sp, #40]                  ; 8-byte Folded Reload
	b.lt	LBB0_25
; %bb.22:
	mov	w19, w22
	mov	x21, x20
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	bl	_is_unmatched_ref
	cbnz	w0, LBB0_26
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	add	x21, x21, #8
	subs	x19, x19, #1
	b.ne	LBB0_23
LBB0_25:
	cmp	w22, #1
	b.ge	LBB0_27
	b	LBB0_34
LBB0_26:
	add	x0, sp, #48
	mov	x1, x24
	bl	_add_refs_to_oidset
	ldr	x1, [sp, #56]
	add	x0, sp, #48
	bl	_add_refs_to_oidset
	cmp	w22, #1
	b.lt	LBB0_34
LBB0_27:
	mov	w19, w22
Lloh21:
	adrp	x21, _REF_UNADVERTISED_NOT_ALLOWED@GOTPAGE
Lloh22:
	ldr	x21, [x21, _REF_UNADVERTISED_NOT_ALLOWED@GOTPAGEOFF]
	b	LBB0_30
LBB0_28:                                ;   in Loop: Header=BB0_30 Depth=1
Lloh23:
	adrp	x8, _REF_MATCHED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _REF_MATCHED@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	str	x8, [x22]
	mov	x0, x22
	bl	_copy_ref
	str	x0, [x27]
	add	x27, x0, #8
LBB0_29:                                ;   in Loop: Header=BB0_30 Depth=1
	add	x20, x20, #8
	subs	x19, x19, #1
	b.eq	LBB0_34
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x20]
	mov	x0, x22
	bl	_is_unmatched_ref
	cbz	w0, LBB0_29
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=1
	cbnz	w23, LBB0_28
; %bb.32:                               ;   in Loop: Header=BB0_30 Depth=1
	add	x1, x22, #16
	add	x0, sp, #48
	bl	_oidset_contains
	cbnz	x0, LBB0_28
; %bb.33:                               ;   in Loop: Header=BB0_30 Depth=1
	ldr	x8, [x21]
	str	x8, [x22]
	b	LBB0_29
LBB0_34:
	add	x0, sp, #48
	bl	_oidset_clear
	mov	x0, x24
	bl	_free_refs
	ldr	x8, [sp, #56]
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	str	x8, [x9]
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_OIDSET_INIT,4,2                ; @OIDSET_INIT
	.comm	_allow_unadvertised_object_request,4,2 ; @allow_unadvertised_object_request
	.comm	_ALLOW_TIP_SHA1,4,2             ; @ALLOW_TIP_SHA1
	.comm	_ALLOW_REACHABLE_SHA1,4,2       ; @ALLOW_REACHABLE_SHA1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"refs/"

	.comm	_REF_MATCHED,8,3                ; @REF_MATCHED
l_.str.1:                               ; @.str.1
	.asciz	"refs/tags/"

	.comm	_REF_UNADVERTISED_NOT_ALLOWED,8,3 ; @REF_UNADVERTISED_NOT_ALLOWED
	.no_dead_strip	_filter_refs
.subsections_via_symbols
