	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_plain_rerere
_do_plain_rerere:                       ## @do_plain_rerere
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_STRING_LIST_INIT_DUP@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	leaq	-80(%rbp), %rsi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_find_conflict
	cmpl	$0, -80(%rbp)
	jle	LBB0_8
## %bb.1:
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-104(%rbp), %rsp                ## 8-byte Reload
	incq	%r15
	movslq	-80(%rbp), %rax
	cmpq	%rax, %r15
	jge	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsp, -104(%rbp)                ## 8-byte Spill
	movq	_GIT_MAX_RAWSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	-72(%rbp), %rax
	movq	(%rax,%r15,8), %rbx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	callq	_handle_file
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r14d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_string_list_has_string
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_string_list_lookup
	movl	(%rax), %edi
	callq	_remove_variant
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_string_list_remove
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%r14d, %r14d
	jle	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_new_rerere_id
	movq	%rax, %r14
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_string_list_insert
	movq	%r14, (%rax)
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_rerere_path
	movl	%eax, %edi
	callq	_mkdir_in_gitdir
	jmp	LBB0_7
LBB0_8:
	cmpl	$0, (%r12)
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jle	LBB0_11
## %bb.9:
	xorl	%r15d, %r15d
	leaq	-96(%rbp), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movq	8(%r12), %rsi
	addq	%r15, %rsi
	movq	%r14, %rdx
	callq	_do_rerere_one_path
	incq	%rbx
	movslq	(%r12), %rax
	addq	$8, %r15
	cmpq	%rax, %rbx
	jl	LBB0_10
LBB0_11:
	cmpl	$0, -96(%rbp)
	je	LBB0_13
## %bb.12:
	leaq	-96(%rbp), %rsi
	movq	%r13, %rdi
	callq	_update_paths
LBB0_13:
	movq	%r12, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_write_rr
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_15
## %bb.14:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_STRING_LIST_INIT_DUP,16,3      ## @STRING_LIST_INIT_DUP
	.comm	_GIT_MAX_RAWSZ,4,2              ## @GIT_MAX_RAWSZ
	.no_dead_strip	_do_plain_rerere
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_plain_rerere
_do_plain_rerere:                       ; @do_plain_rerere
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #48
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _STRING_LIST_INIT_DUP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STRING_LIST_INIT_DUP@GOTPAGEOFF]
Lloh5:
	ldr	q0, [x8]
	stp	q0, q0, [x29, #-128]
	sub	x1, x29, #112
	bl	_find_conflict
	ldur	w8, [x29, #-112]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x25, #0
Lloh6:
	adrp	x26, _GIT_MAX_RAWSZ@GOTPAGE
Lloh7:
	ldr	x26, [x26, _GIT_MAX_RAWSZ@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	sp, x27
	add	x25, x25, #1
	ldursw	x8, [x29, #-112]
	cmp	x25, x8
	b.ge	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x27, sp
	ldr	w8, [x26]
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	ldur	x8, [x29, #-104]
	ldr	x22, [x8, x25, lsl #3]
	ldr	w0, [x21]
	mov	x1, x22
	mov	x2, x23
	mov	x3, #0
	bl	_handle_file
	cbz	w0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, x0
	mov	x0, x20
	mov	x1, x22
	bl	_string_list_has_string
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_string_list_lookup
	ldr	w0, [x0]
	bl	_remove_variant
	mov	x0, x20
	mov	x1, x22
	mov	w2, #1
	bl	_string_list_remove
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w24, #1
	b.lt	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_new_rerere_id
	mov	x23, x0
	mov	x0, x20
	mov	x1, x22
	bl	_string_list_insert
	str	x23, [x0]
	mov	x0, x23
	mov	x1, #0
	bl	_rerere_path
	bl	_mkdir_in_gitdir
	b	LBB0_2
LBB0_8:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x22, #0
	mov	x23, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	ldr	x8, [x20, #8]
	add	x1, x8, x22
	sub	x2, x29, #128
	bl	_do_rerere_one_path
	add	x23, x23, #1
	ldrsw	x8, [x20]
	add	x22, x22, #8
	cmp	x23, x8
	b.lt	LBB0_10
LBB0_11:
	ldur	w8, [x29, #-128]
	cbz	w8, LBB0_13
; %bb.12:
	sub	x1, x29, #128
	mov	x0, x21
	bl	_update_paths
LBB0_13:
	mov	x0, x20
	mov	x1, x19
	bl	_write_rr
	ldur	x8, [x29, #-88]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_STRING_LIST_INIT_DUP,16,3      ; @STRING_LIST_INIT_DUP
	.comm	_GIT_MAX_RAWSZ,4,2              ; @GIT_MAX_RAWSZ
	.no_dead_strip	_do_plain_rerere
.subsections_via_symbols
