	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setup_rerere                   ## -- Begin function setup_rerere
	.p2align	4, 0x90
_setup_rerere:                          ## @setup_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_git_rerere_config
	xorl	%eax, %eax
	callq	_is_rerere_enabled
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_RERERE_AUTOUPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_RERERE_NOAUTOUPDATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%eax, %ecx
	testl	%r12d, %ecx
	je	LBB0_4
## %bb.3:
	xorl	%ecx, %ecx
	testl	%r12d, %eax
	setne	%cl
	movq	_rerere_autoupdate@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
LBB0_4:
	movq	_RERERE_READONLY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	testl	%r12d, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_git_path_merge_rr
	movq	_LOCK_DIE_ON_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_write_lock@GOTPCREL(%rip), %rdi
	movl	%eax, %esi
	callq	_hold_lock_file_for_update
	movl	%eax, %ebx
LBB0_6:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_read_rr
	jmp	LBB0_7
LBB0_1:
	movl	$-1, %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RERERE_AUTOUPDATE,4,2          ## @RERERE_AUTOUPDATE
	.comm	_RERERE_NOAUTOUPDATE,4,2        ## @RERERE_NOAUTOUPDATE
	.comm	_rerere_autoupdate,4,2          ## @rerere_autoupdate
	.comm	_RERERE_READONLY,4,2            ## @RERERE_READONLY
	.comm	_write_lock,4,2                 ## @write_lock
	.comm	_LOCK_DIE_ON_ERROR,4,2          ## @LOCK_DIE_ON_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setup_rerere                   ; -- Begin function setup_rerere
	.p2align	2
_setup_rerere:                          ; @setup_rerere
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_git_rerere_config
	bl	_is_rerere_enabled
	cbz	w0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _RERERE_AUTOUPDATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RERERE_AUTOUPDATE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _RERERE_NOAUTOUPDATE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RERERE_NOAUTOUPDATE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w9, w9, w8
	tst	w9, w21
	b.eq	LBB0_3
; %bb.2:
	tst	w8, w21
	cset	w8, ne
Lloh6:
	adrp	x9, _rerere_autoupdate@GOTPAGE
Lloh7:
	ldr	x9, [x9, _rerere_autoupdate@GOTPAGEOFF]
Lloh8:
	str	w8, [x9]
LBB0_3:
Lloh9:
	adrp	x8, _RERERE_READONLY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RERERE_READONLY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.4:
	mov	w21, #0
	b	LBB0_7
LBB0_5:
	mov	w21, #-1
	b	LBB0_8
LBB0_6:
	mov	x0, x20
	bl	_git_path_merge_rr
	mov	x1, x0
Lloh12:
	adrp	x8, _LOCK_DIE_ON_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LOCK_DIE_ON_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x0, _write_lock@GOTPAGE
Lloh16:
	ldr	x0, [x0, _write_lock@GOTPAGEOFF]
	bl	_hold_lock_file_for_update
	mov	x21, x0
LBB0_7:
	mov	x0, x20
	mov	x1, x19
	bl	_read_rr
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_RERERE_AUTOUPDATE,4,2          ; @RERERE_AUTOUPDATE
	.comm	_RERERE_NOAUTOUPDATE,4,2        ; @RERERE_NOAUTOUPDATE
	.comm	_rerere_autoupdate,4,2          ; @rerere_autoupdate
	.comm	_RERERE_READONLY,4,2            ; @RERERE_READONLY
	.comm	_write_lock,4,2                 ; @write_lock
	.comm	_LOCK_DIE_ON_ERROR,4,2          ; @LOCK_DIE_ON_ERROR
.subsections_via_symbols
