	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function builtin_diff_index
_builtin_diff_index:                    ## @builtin_diff_index
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	cmpl	$2, %esi
	jl	LBB0_6
## %bb.1:
	movq	%rdx, %r12
	movl	%esi, %ebx
	addq	$8, %r12
	incl	%ebx
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$8, %r12
	decl	%ebx
	movl	%r13d, %r15d
	cmpl	$2, %ebx
	jle	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %r14
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	movl	$1, %r13d
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_builtin_diff_usage@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_usage
	movl	%r15d, %r13d
	jmp	LBB0_5
LBB0_6:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	cmpl	$1, 16(%rbx)
	jne	LBB0_10
## %bb.7:
	cmpl	$-1, (%rbx)
	jne	LBB0_10
## %bb.8:
	cmpl	$-1, 4(%rbx)
	jne	LBB0_10
## %bb.9:
	cmpl	$-1, 8(%rbx)
	je	LBB0_11
LBB0_10:
	movq	_builtin_diff_usage@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_usage
LBB0_11:
	xorl	%eax, %eax
	testl	%r13d, %r13d
	je	LBB0_12
## %bb.14:
	callq	_read_cache
	testq	%rax, %rax
	jns	LBB0_17
## %bb.15:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_16
LBB0_12:
	callq	_setup_work_tree
	leaq	12(%rbx), %rdi
	callq	_read_cache_preload
	testq	%rax, %rax
	js	LBB0_13
LBB0_17:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_run_diff_index                 ## TAILCALL
LBB0_13:
	leaq	L_.str.2(%rip), %rdi
LBB0_16:
	callq	_perror
	movl	$-1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"--cached"

L_.str.1:                               ## @.str.1
	.asciz	"--staged"

	.comm	_builtin_diff_usage,4,2         ## @builtin_diff_usage
L_.str.2:                               ## @.str.2
	.asciz	"read_cache_preload"

L_.str.3:                               ## @.str.3
	.asciz	"read_cache"

	.no_dead_strip	_builtin_diff_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function builtin_diff_index
_builtin_diff_index:                    ; @builtin_diff_index
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x24, _builtin_diff_usage@GOTPAGE
Lloh1:
	ldr	x24, [x24, _builtin_diff_usage@GOTPAGEOFF]
	cmp	w1, #2
	b.lt	LBB0_7
; %bb.1:
	mov	w20, #0
	add	x25, x2, #8
	add	w26, w1, #1
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
Lloh4:
	adrp	x22, l_.str.1@PAGE
Lloh5:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w20, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #8
	sub	w26, w26, #1
	cmp	w26, #2
	b.le	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x25]
	mov	x0, x23
	mov	x1, x21
	bl	_strcmp
	cbz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	x1, x22
	bl	_strcmp
	cbz	w0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x24]
	bl	_usage
	b	LBB0_3
LBB0_7:
	mov	w20, #0
LBB0_8:
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.ne	LBB0_12
; %bb.9:
	ldr	w8, [x19]
	cmn	w8, #1
	b.ne	LBB0_12
; %bb.10:
	ldr	w8, [x19, #4]
	cmn	w8, #1
	b.ne	LBB0_12
; %bb.11:
	ldr	w8, [x19, #8]
	cmn	w8, #1
	b.eq	LBB0_13
LBB0_12:
	ldr	w0, [x24]
	bl	_usage
LBB0_13:
	cbz	w20, LBB0_16
; %bb.14:
	bl	_read_cache
	tbz	x0, #63, LBB0_17
; %bb.15:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_19
LBB0_16:
	bl	_setup_work_tree
	add	x0, x19, #12
	bl	_read_cache_preload
	tbnz	x0, #63, LBB0_18
LBB0_17:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_run_diff_index
LBB0_18:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_19:
	bl	_perror
	mov	w0, #-1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"--cached"

l_.str.1:                               ; @.str.1
	.asciz	"--staged"

	.comm	_builtin_diff_usage,4,2         ; @builtin_diff_usage
l_.str.2:                               ; @.str.2
	.asciz	"read_cache_preload"

l_.str.3:                               ; @.str.3
	.asciz	"read_cache"

	.no_dead_strip	_builtin_diff_index
.subsections_via_symbols
