	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rerere_gc                      ## -- Begin function rerere_gc
	.p2align	4, 0x90
_rerere_gc:                             ## @rerere_gc
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_STRING_LIST_INIT_DUP@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -64(%rbp)
	xorl	%edi, %edi
	callq	_time
	movq	%rax, %rbx
	addq	$-1296000, %rax                 ## imm = 0xFFEC3980
	movq	%rax, -96(%rbp)
	leaq	-5184000(%rbx), %rax
	movq	%rax, -88(%rbp)
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_setup_rerere
	testq	%rax, %rax
	js	LBB0_17
## %bb.1:
	leaq	L_.str(%rip), %rdi
	leaq	-88(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_git_config_get_expiry_in_days
	leaq	L_.str.1(%rip), %rdi
	leaq	-96(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_git_config_get_expiry_in_days
	movq	_git_default_config@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_git_config
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_git_path
	movl	%eax, %edi
	callq	_opendir
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_die_errno
LBB0_3:
	movq	%r15, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:
	movq	%rax, %rbx
	leaq	-80(%rbp), %r12
	xorl	%r13d, %r13d
	jmp	LBB0_5
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rbx), %esi
	leaq	-64(%rbp), %rdi
	callq	_string_list_append
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	callq	_readdir
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_13
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movl	(%rbx), %edi
	callq	_is_dot_or_dotdot
	testq	%rax, %rax
	jne	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rbx), %edi
	callq	_find_rerere_dir
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	$0, -80(%rbp)
	movq	%rax, -72(%rbp)
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-88(%rbp), %rsi
	movq	-96(%rbp), %rdx
	movq	%r12, %rdi
	callq	_prune_one
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rcx
	movq	8(%rcx), %rdx
	cmpq	$0, (%rdx,%rax,8)
	cmovnel	%r13d, %r14d
	incq	%rax
	movq	%rax, -80(%rbp)
	cmpq	(%rcx), %rax
	jb	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	testl	%r14d, %r14d
	jne	LBB0_11
	jmp	LBB0_12
LBB0_13:
	movq	%r15, %rdi
	callq	_closedir
	cmpl	$0, -64(%rbp)
	jle	LBB0_16
## %bb.14:
	leaq	L_.str.4(%rip), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_git_path
	movl	%eax, %edi
	callq	_rmdir
	incq	%rbx
	movslq	-64(%rbp), %rax
	cmpq	%rax, %rbx
	jl	LBB0_15
LBB0_16:
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	callq	_string_list_clear
	movq	_write_lock@GOTPCREL(%rip), %rdi
	callq	_rollback_lock_file
LBB0_17:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRING_LIST_INIT_DUP,16,3      ## @STRING_LIST_INIT_DUP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gc.rerereresolved"

L_.str.1:                               ## @.str.1
	.asciz	"gc.rerereunresolved"

	.comm	_git_default_config,4,2         ## @git_default_config
L_.str.2:                               ## @.str.2
	.asciz	"rr-cache"

L_.str.3:                               ## @.str.3
	.asciz	"unable to open rr-cache directory"

L_.str.4:                               ## @.str.4
	.asciz	"rr-cache/%s"

	.comm	_write_lock,4,2                 ## @write_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rerere_gc                      ; -- Begin function rerere_gc
	.p2align	2
_rerere_gc:                             ; @rerere_gc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _STRING_LIST_INIT_DUP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRING_LIST_INIT_DUP@GOTPAGEOFF]
Lloh2:
	ldr	q0, [x8]
	str	q0, [sp, #48]
	mov	x0, #0
	bl	_time
	mov	x19, x0
	sub	x8, x0, #316, lsl #12           ; =1294336
	sub	x9, x8, #1664
	sub	x8, x0, #1265, lsl #12          ; =5181440
	sub	x8, x8, #2560
	stp	x8, x9, [sp, #32]
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	bl	_setup_rerere
	tbnz	x0, #63, LBB0_17
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #32
	mov	x2, x19
	bl	_git_config_get_expiry_in_days
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x1, sp, #40
	mov	x2, x19
	bl	_git_config_get_expiry_in_days
Lloh7:
	adrp	x8, _git_default_config@GOTPAGE
Lloh8:
	ldr	x8, [x8, _git_default_config@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_git_config
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_git_path
	bl	_opendir
	mov	x19, x0
	cbnz	x0, LBB0_3
; %bb.2:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	bl	_die_errno
LBB0_3:
	mov	x0, x19
	bl	_readdir
	cbz	x0, LBB0_13
; %bb.4:
	mov	x20, x0
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x20]
	add	x0, sp, #48
	bl	_string_list_append
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	bl	_readdir
	mov	x20, x0
	cbz	x0, LBB0_13
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	w0, [x20]
	bl	_is_dot_or_dotdot
	cbnz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x20]
	bl	_find_rerere_dir
	cbz	x0, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	stp	xzr, x0, [sp, #16]
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w21, #1
LBB0_11:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x1, x2, [sp, #32]
	add	x0, sp, #16
	bl	_prune_one
	ldp	x9, x8, [sp, #16]
	ldr	x10, [x8, #8]
	ldr	x10, [x10, x9, lsl #3]
	cmp	x10, #0
	csel	w21, w21, wzr, eq
	add	x9, x9, #1
	str	x9, [sp, #16]
	ldr	x8, [x8]
	cmp	x9, x8
	b.lo	LBB0_11
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	cbnz	w21, LBB0_5
	b	LBB0_6
LBB0_13:
	mov	x0, x19
	bl	_closedir
	ldr	w8, [sp, #48]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.14:
	mov	x20, #0
Lloh14:
	adrp	x19, l_.str.4@PAGE
Lloh15:
	add	x19, x19, l_.str.4@PAGEOFF
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #56]
	ldr	w8, [x8, x20, lsl #2]
	str	x8, [sp]
	mov	x0, x19
	bl	_git_path
	bl	_rmdir
	add	x20, x20, #1
	ldrsw	x8, [sp, #48]
	cmp	x20, x8
	b.lt	LBB0_15
LBB0_16:
	add	x0, sp, #48
	mov	w1, #0
	bl	_string_list_clear
Lloh16:
	adrp	x0, _write_lock@GOTPAGE
Lloh17:
	ldr	x0, [x0, _write_lock@GOTPAGEOFF]
	bl	_rollback_lock_file
LBB0_17:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_STRING_LIST_INIT_DUP,16,3      ; @STRING_LIST_INIT_DUP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gc.rerereresolved"

l_.str.1:                               ; @.str.1
	.asciz	"gc.rerereunresolved"

	.comm	_git_default_config,4,2         ; @git_default_config
l_.str.2:                               ; @.str.2
	.asciz	"rr-cache"

l_.str.3:                               ; @.str.3
	.asciz	"unable to open rr-cache directory"

l_.str.4:                               ; @.str.4
	.asciz	"rr-cache/%s"

	.comm	_write_lock,4,2                 ; @write_lock
.subsections_via_symbols
