	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ref_filter_handler
_ref_filter_handler:                    ## @ref_filter_handler
	.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	%rdi, %r14
	movq	_REF_BAD_NAME@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_3:
	movl	%edx, %ebx
	movq	_REF_ISBROKEN@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	callq	__
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_warning
LBB0_20:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rcx, %r12
	movq	%rsi, %r15
	movq	16(%rcx), %r13
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_filter_ref_kind
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, (%r13)
	je	LBB0_20
## %bb.6:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_filter_pattern_match
	testl	%eax, %eax
	je	LBB0_20
## %bb.7:
	cmpq	$0, 40(%r13)
	je	LBB0_9
## %bb.8:
	leaq	40(%r13), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_match_points_at
	testl	%eax, %eax
	je	LBB0_20
LBB0_9:
	cmpq	$0, 32(%r13)
	jne	LBB0_14
## %bb.10:
	cmpq	$0, 16(%r13)
	jne	LBB0_14
## %bb.11:
	cmpq	$0, 8(%r13)
	jne	LBB0_14
## %bb.12:
	cmpq	$0, 24(%r13)
	je	LBB0_13
LBB0_14:
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_lookup_commit_reference_gently
	testq	%rax, %rax
	je	LBB0_20
## %bb.15:
	movq	16(%r13), %rdx
	testq	%rdx, %rdx
	je	LBB0_17
## %bb.16:
	leaq	8(%r12), %rcx
	movq	%r13, %rdi
	movq	%rax, %rsi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	callq	_commit_contains
	testq	%rax, %rax
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_20
LBB0_17:
	movq	8(%r13), %rdx
	testq	%rdx, %rdx
	je	LBB0_19
## %bb.18:
	leaq	4(%r12), %rcx
	movq	%r13, %rdi
	movq	%rax, %rsi
	movq	%rax, %r13
	callq	_commit_contains
	testq	%rax, %rax
	movq	%r13, %rax
	jne	LBB0_20
LBB0_19:
	movl	(%r12), %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movq	%rax, %r14
	callq	_ref_array_push
	movq	%r14, 8(%rax)
	movl	%ebx, (%rax)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 4(%rax)
	jmp	LBB0_20
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_REF_BAD_NAME,4,2               ## @REF_BAD_NAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ignoring ref with broken name %s"

	.comm	_REF_ISBROKEN,4,2               ## @REF_ISBROKEN
L_.str.1:                               ## @.str.1
	.asciz	"ignoring broken ref %s"

	.comm	_the_repository,4,2             ## @the_repository
	.no_dead_strip	_ref_filter_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ref_filter_handler
_ref_filter_handler:                    ; @ref_filter_handler
	.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, x0
Lloh0:
	adrp	x8, _REF_BAD_NAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REF_BAD_NAME@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	mov	x20, x2
Lloh5:
	adrp	x8, _REF_ISBROKEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REF_ISBROKEN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_6
; %bb.3:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_4:
	bl	__
	mov	x1, x19
	bl	_warning
LBB0_5:
	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_6:
	mov	x22, x3
	mov	x21, x1
	ldr	x24, [x3, #16]
	mov	x0, x24
	mov	x1, x19
	bl	_filter_ref_kind
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.7:
	mov	x23, x0
	mov	x0, x24
	mov	x1, x19
	bl	_filter_pattern_match
	cbz	w0, LBB0_5
; %bb.8:
	mov	x0, x24
	ldr	x8, [x0, #40]!
	cbz	x8, LBB0_10
; %bb.9:
	mov	x1, x21
	mov	x2, x19
	bl	_match_points_at
	cbz	w0, LBB0_5
LBB0_10:
	ldr	x8, [x24, #32]
	cbnz	x8, LBB0_14
; %bb.11:
	ldr	x8, [x24, #16]
	cbnz	x8, LBB0_14
; %bb.12:
	ldr	x8, [x24, #8]
	cbnz	x8, LBB0_14
; %bb.13:
	ldr	x8, [x24, #24]
	cbz	x8, LBB0_20
LBB0_14:
Lloh10:
	adrp	x8, _the_repository@GOTPAGE
Lloh11:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x21
	mov	w2, #1
	bl	_lookup_commit_reference_gently
	cbz	x0, LBB0_5
; %bb.15:
	mov	x25, x0
	ldr	x2, [x24, #16]
	cbz	x2, LBB0_17
; %bb.16:
	add	x3, x22, #8
	mov	x0, x24
	mov	x1, x25
	bl	_commit_contains
	cbz	x0, LBB0_5
LBB0_17:
	ldr	x2, [x24, #8]
	cbz	x2, LBB0_19
; %bb.18:
	add	x3, x22, #4
	mov	x0, x24
	mov	x1, x25
	bl	_commit_contains
	cbnz	x0, LBB0_5
LBB0_19:
	ldr	w0, [x22]
	mov	x1, x19
	mov	x2, x21
	bl	_ref_array_push
	str	x25, [x0, #8]
	stp	w20, w23, [x0]
	b	LBB0_5
LBB0_20:
	mov	x25, #0
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_REF_BAD_NAME,4,2               ; @REF_BAD_NAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ignoring ref with broken name %s"

	.comm	_REF_ISBROKEN,4,2               ; @REF_ISBROKEN
l_.str.1:                               ; @.str.1
	.asciz	"ignoring broken ref %s"

	.comm	_the_repository,4,2             ; @the_repository
	.no_dead_strip	_ref_filter_handler
.subsections_via_symbols
