	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_reduce_heads                   ## -- Begin function reduce_heads
	.p2align	4, 0x90
_reduce_heads:                          ## @reduce_heads
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -40(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	_STALE@GOTPCREL(%rip), %r12
	movq	%rdi, %rax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %ecx
	notl	%ecx
	movq	(%rax), %rdx
	andl	%ecx, (%rdx)
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	xorl	%r14d, %r14d
	movq	%rbx, %rax
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rcx
	movl	(%rcx), %edx
	movl	(%r12), %esi
	testl	%edx, %esi
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	orl	%edx, %esi
	movl	%esi, (%rcx)
	incl	%r14d
	jmp	LBB0_7
LBB0_8:
	movl	%r14d, %edi
	movl	$8, %esi
	callq	_xcalloc
	movq	%rax, %r15
	xorl	%eax, %eax
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdx
	movl	(%r12), %ecx
	testl	%ecx, (%rdx)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movslq	%eax, %rsi
	incl	%eax
	movq	%rdx, (%r15,%rsi,8)
	notl	%ecx
	movq	(%rbx), %rdx
	andl	%ecx, (%rdx)
	jmp	LBB0_11
LBB0_12:
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_remove_redundant
	testl	%eax, %eax
	jle	LBB0_15
## %bb.13:
	movl	%eax, %r14d
	leaq	-40(%rbp), %rax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%rbx,8), %rdi
	movq	%rax, %rsi
	callq	_commit_list_insert
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_14
LBB0_15:
	movq	%r15, %rdi
	callq	_free
	movq	-40(%rbp), %rax
	jmp	LBB0_16
LBB0_1:
	xorl	%eax, %eax
LBB0_16:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STALE,4,2                      ## @STALE
	.comm	_the_repository,4,2             ## @the_repository
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_reduce_heads                   ; -- Begin function reduce_heads
	.p2align	2
_reduce_heads:                          ; @reduce_heads
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	str	xzr, [sp, #8]
	cbz	x0, LBB0_15
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x22, _STALE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _STALE@GOTPAGEOFF]
	mov	x8, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x22]
	ldr	x10, [x8]
	ldr	w11, [x10]
	bic	w9, w11, w9
	str	w9, [x10]
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_2
; %bb.3:
	mov	w21, #0
	mov	x8, x19
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8]
	ldr	w10, [x9]
	ldr	w11, [x22]
	tst	w11, w10
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	orr	w10, w11, w10
	str	w10, [x9]
	add	w21, w21, #1
	b	LBB0_4
LBB0_7:
	mov	x0, x21
	mov	w1, #8
	bl	_xcalloc
	mov	x20, x0
	mov	w8, #0
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x19, [x19, #8]
	cbz	x19, LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19]
	ldr	w11, [x10]
	ldr	w9, [x22]
	tst	w9, w11
	b.eq	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	str	x10, [x20, w8, sxtw #3]
	add	w8, w8, #1
	ldr	x10, [x19]
	ldr	w11, [x10]
	bic	w9, w11, w9
	str	w9, [x10]
	b	LBB0_8
LBB0_11:
Lloh2:
	adrp	x8, _the_repository@GOTPAGE
Lloh3:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x20
	mov	x2, x21
	bl	_remove_redundant
	cmp	w0, #1
	b.lt	LBB0_14
; %bb.12:
	mov	w19, w0
	add	x1, sp, #8
	mov	x21, x20
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21], #8
	bl	_commit_list_insert
	mov	x1, x0
	subs	x19, x19, #1
	b.ne	LBB0_13
LBB0_14:
	mov	x0, x20
	bl	_free
	ldr	x0, [sp, #8]
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_STALE,4,2                      ; @STALE
	.comm	_the_repository,4,2             ; @the_repository
.subsections_via_symbols
