	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_merge_filter
_do_merge_filter:                       ## @do_merge_filter
	.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	8(%rdi), %r13
	movl	(%r14), %esi
	movl	$8, %edi
	callq	_xcalloc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	xorl	%edx, %edx
	callq	_repo_init_revisions
	cmpl	$0, (%r14)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	(%rax,%rbx,8), %r15
	movq	(%r15), %rdx
	movq	8(%r15), %rsi
	movq	%r12, %rdi
	callq	_add_pending_object
	movq	8(%r15), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	_UNINTERESTING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r13, %rbx
	movq	8(%r13), %rsi
	orl	%eax, (%rsi)
	leaq	L_.str(%rip), %rdx
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	callq	_add_pending_object
	movl	$1, -48(%rbp)
	movq	%r12, %rdi
	callq	_prepare_revision_walk
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_die
LBB0_5:
	movl	(%r14), %r12d
	movl	$0, (%r14)
	testl	%r12d, %r12d
	jle	LBB0_11
## %bb.6:
	xorl	%r13d, %r13d
	movq	_REF_FILTER_MERGED_INCLUDE@GOTPCREL(%rip), %r15
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	callq	_free_array_item
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r13
	cmpq	%r13, %r12
	je	LBB0_11
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	(%rax,%r13,8), %rdi
	movq	8(%rdi), %rcx
	movq	_UNINTERESTING@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	sete	%cl
	movq	(%rbx), %rdx
	cmpq	(%r15), %rdx
	sete	%dl
	cmpb	%dl, %cl
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movslq	(%r14), %rcx
	leal	1(%rcx), %edx
	movl	%edx, (%r14)
	movq	%rdi, (%rax,%rcx,8)
	jmp	LBB0_10
LBB0_11:
	movq	_ALL_REV_FLAGS@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movl	%r12d, %edi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_clear_commit_marks_many
	movq	8(%rbx), %rdi
	movl	(%r14), %esi
	callq	_clear_commit_marks
	movq	%r15, %rdi
	callq	_free
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_the_repository,4,2             ## @the_repository
	.comm	_UNINTERESTING,4,2              ## @UNINTERESTING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

L_.str.1:                               ## @.str.1
	.asciz	"revision walk setup failed"

	.comm	_REF_FILTER_MERGED_INCLUDE,8,3  ## @REF_FILTER_MERGED_INCLUDE
	.comm	_ALL_REV_FLAGS,4,2              ## @ALL_REV_FLAGS
	.no_dead_strip	_do_merge_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_merge_filter
_do_merge_filter:                       ; @do_merge_filter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldp	x22, x21, [x0]
	ldr	w1, [x22]
	mov	w0, #8
	bl	_xcalloc
	mov	x19, x0
Lloh0:
	adrp	x8, _the_repository@GOTPAGE
Lloh1:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	x2, #0
	bl	_repo_init_revisions
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	lsl	x23, x20, #3
	ldr	x24, [x8, x23]
	ldp	x2, x1, [x24]
	add	x0, sp, #8
	bl	_add_pending_object
	ldr	x8, [x24, #8]
	str	x8, [x19, x23]
	add	x20, x20, #1
	ldrsw	x8, [x22]
	cmp	x20, x8
	b.lt	LBB0_2
LBB0_3:
Lloh3:
	adrp	x23, _UNINTERESTING@GOTPAGE
Lloh4:
	ldr	x23, [x23, _UNINTERESTING@GOTPAGEOFF]
	ldr	w8, [x23]
	ldr	x1, [x21, #8]
	ldr	w9, [x1]
	orr	w8, w9, w8
	str	w8, [x1]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_add_pending_object
	mov	w8, #1
	str	w8, [sp, #8]
	add	x0, sp, #8
	bl	_prepare_revision_walk
	cbz	x0, LBB0_5
; %bb.4:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	bl	_die
LBB0_5:
	ldr	w20, [x22]
	str	wzr, [x22]
	cmp	w20, #1
	b.lt	LBB0_11
; %bb.6:
	mov	x24, #0
	lsl	x25, x20, #3
Lloh9:
	adrp	x26, _REF_FILTER_MERGED_INCLUDE@GOTPAGE
Lloh10:
	ldr	x26, [x26, _REF_FILTER_MERGED_INCLUDE@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	bl	_free_array_item
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x24, x24, #8
	cmp	x25, x24
	b.eq	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	ldr	x0, [x8, x24]
	ldr	x9, [x0, #8]
	ldr	w9, [x9]
	ldr	w10, [x23]
	tst	w10, w9
	cset	w9, eq
	ldr	x10, [x21]
	ldr	x11, [x26]
	cmp	x10, x11
	cset	w10, eq
	cmp	w9, w10
	b.eq	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldrsw	x9, [x22]
	add	w10, w9, #1
	str	w10, [x22]
	str	x0, [x8, x9, lsl #3]
	b	LBB0_8
LBB0_11:
Lloh11:
	adrp	x22, _ALL_REV_FLAGS@GOTPAGE
Lloh12:
	ldr	x22, [x22, _ALL_REV_FLAGS@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_clear_commit_marks_many
	ldr	x0, [x21, #8]
	ldr	w1, [x22]
	bl	_clear_commit_marks
	mov	x0, x19
	bl	_free
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_the_repository,4,2             ; @the_repository
	.comm	_UNINTERESTING,4,2              ; @UNINTERESTING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

l_.str.1:                               ; @.str.1
	.asciz	"revision walk setup failed"

	.comm	_REF_FILTER_MERGED_INCLUDE,8,3  ; @REF_FILTER_MERGED_INCLUDE
	.comm	_ALL_REV_FLAGS,4,2              ; @ALL_REV_FLAGS
	.no_dead_strip	_do_merge_filter
.subsections_via_symbols
