	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_and_refresh_cache
_read_and_refresh_cache:                ## @read_and_refresh_cache
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	_LOCK_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	leaq	-40(%rbp), %rsi
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	callq	_repo_hold_locked_index
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_repo_read_index
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movl	(%rbx), %edi
	movq	_REFRESH_QUIET@GOTPCREL(%rip), %rax
	movq	_REFRESH_UNMERGED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_refresh_index
	testl	%r12d, %r12d
	js	LBB0_6
## %bb.3:
	movl	(%rbx), %edi
	movq	_COMMIT_LOCK@GOTPCREL(%rip), %rax
	movq	_SKIP_IF_UNCHANGED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	leaq	-40(%rbp), %rsi
	callq	_write_locked_index
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_5
LBB0_1:
	leaq	-40(%rbp), %rdi
	callq	_rollback_lock_file
	leaq	L_.str(%rip), %rdi
LBB0_5:
	callq	__
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_action_name
	movq	%rax, %rdi
	callq	__
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_error
	movl	%eax, %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOCK_INIT,4,2                  ## @LOCK_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"git %s: failed to read the index"

	.comm	_REFRESH_QUIET,4,2              ## @REFRESH_QUIET
	.comm	_REFRESH_UNMERGED,4,2           ## @REFRESH_UNMERGED
	.comm	_COMMIT_LOCK,4,2                ## @COMMIT_LOCK
	.comm	_SKIP_IF_UNCHANGED,4,2          ## @SKIP_IF_UNCHANGED
L_.str.1:                               ## @.str.1
	.asciz	"git %s: failed to refresh the index"

	.no_dead_strip	_read_and_refresh_cache
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_and_refresh_cache
_read_and_refresh_cache:                ; @read_and_refresh_cache
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _LOCK_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOCK_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	add	x1, sp, #8
	mov	w2, #0
	bl	_repo_hold_locked_index
	mov	x21, x0
	mov	x0, x20
	bl	_repo_read_index
	tbnz	x0, #63, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _REFRESH_QUIET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REFRESH_QUIET@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _REFRESH_UNMERGED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _REFRESH_UNMERGED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_refresh_index
	tbnz	w21, #31, LBB0_6
; %bb.2:
Lloh9:
	adrp	x8, _COMMIT_LOCK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _COMMIT_LOCK@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _SKIP_IF_UNCHANGED@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SKIP_IF_UNCHANGED@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w2, w9, w8
	add	x1, sp, #8
	bl	_write_locked_index
	cbz	x0, LBB0_7
; %bb.3:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
	add	x0, sp, #8
	bl	_rollback_lock_file
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
LBB0_5:
	bl	__
	mov	x20, x0
	mov	x0, x19
	bl	_action_name
	bl	__
	mov	x1, x0
	mov	x0, x20
	bl	_error
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_LOCK_INIT,4,2                  ; @LOCK_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"git %s: failed to read the index"

	.comm	_REFRESH_QUIET,4,2              ; @REFRESH_QUIET
	.comm	_REFRESH_UNMERGED,4,2           ; @REFRESH_UNMERGED
	.comm	_COMMIT_LOCK,4,2                ; @COMMIT_LOCK
	.comm	_SKIP_IF_UNCHANGED,4,2          ; @SKIP_IF_UNCHANGED
l_.str.1:                               ; @.str.1
	.asciz	"git %s: failed to refresh the index"

	.no_dead_strip	_read_and_refresh_cache
.subsections_via_symbols
