	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function checkout_file
_checkout_file:                         ## @checkout_file
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_strlen
	movl	%eax, %r13d
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_cache_name_pos
	movl	%eax, %ecx
	sarl	$31, %ecx
	xorl	%eax, %ecx
	movq	_active_nr@GOTPCREL(%rip), %rax
	movb	$1, %r14b
	cmpl	(%rax), %ecx
	jge	LBB0_19
## %bb.1:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movslq	%ecx, %r12
	movq	_active_cache@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r12,8), %rbx
	movq	%rbx, %rdi
	callq	_ce_namelen
	cmpl	%r13d, %eax
	jne	LBB0_2
## %bb.3:
	incq	%r12
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movb	$1, %r14b
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_ce_stage
	movq	_checkout_stage@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_CHECKOUT_ALL@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	jne	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_ce_stage
	testq	%rax, %rax
	je	LBB0_13
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_to_tempfile@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_topath@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%rbx, %rdi
	callq	_ce_stage
	movq	(%r14,%rax,8), %rdx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%edx, %edx
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	movq	_state@GOTPCREL(%rip), %rsi
	xorl	%ecx, %ecx
	callq	_checkout_entry
	shrq	$63, %rax
	addl	%eax, -44(%rbp)                 ## 4-byte Folded Spill
	movl	$1, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_active_nr@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r12
	jge	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_active_cache@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r12,8), %rbx
	movq	%rbx, %rdi
	callq	_ce_namelen
	incq	%r12
	xorl	%r14d, %r14d
	cmpl	%r13d, %eax
	je	LBB0_5
	jmp	LBB0_15
LBB0_2:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movb	$1, %r14b
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_15
LBB0_14:
	xorl	%r14d, %r14d
LBB0_15:
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_19
## %bb.16:
	movq	_to_tempfile@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_18
## %bb.17:
	movq	%r15, %rdi
	callq	_write_tempfile_record
LBB0_18:
	xorl	%ebx, %ebx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	setg	%bl
	negl	%ebx
	jmp	LBB0_27
LBB0_19:
	movq	_state@GOTPCREL(%rip), %rax
	movl	$-1, %ebx
	cmpl	$0, (%rax)
	jne	LBB0_27
## %bb.20:
	movq	_stderr@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	testb	$1, %r14b
	je	LBB0_22
## %bb.21:
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_25
LBB0_22:
	movq	_checkout_stage@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %edi
	testl	%edx, %edx
	je	LBB0_24
## %bb.23:
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_26
LBB0_24:
	leaq	L_.str.3(%rip), %rsi
LBB0_25:
	xorl	%eax, %eax
	callq	_fprintf
LBB0_26:
	movl	(%r12), %esi
	movl	$10, %edi
	callq	_fputc
LBB0_27:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_active_nr,4,2                  ## @active_nr
	.comm	_active_cache,8,3               ## @active_cache
	.comm	_checkout_stage,4,2             ## @checkout_stage
	.comm	_CHECKOUT_ALL,4,2               ## @CHECKOUT_ALL
	.comm	_state,4,2                      ## @state
	.comm	_to_tempfile,8,3                ## @to_tempfile
	.comm	_topath,8,3                     ## @topath
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"git checkout-index: %s "

L_.str.1:                               ## @.str.1
	.asciz	"is not in the cache"

L_.str.2:                               ## @.str.2
	.asciz	"does not exist at stage %d"

L_.str.3:                               ## @.str.3
	.asciz	"is unmerged"

	.no_dead_strip	_checkout_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function checkout_file
_checkout_file:                         ; @checkout_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	bl	_strlen
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_cache_name_pos
	eor	w22, w0, w0, asr #31
Lloh0:
	adrp	x26, _active_nr@GOTPAGE
Lloh1:
	ldr	x26, [x26, _active_nr@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w22, w8
	b.ge	LBB0_13
; %bb.1:
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
Lloh2:
	adrp	x27, _active_cache@GOTPAGE
Lloh3:
	ldr	x27, [x27, _active_cache@GOTPAGEOFF]
	ldr	x8, [x27]
	ldr	x23, [x8, w22, sxtw #3]
	mov	x0, x23
	bl	_ce_namelen
	cmp	w0, w21
	b.ne	LBB0_14
; %bb.2:
	mov	w20, #0
	mov	w24, #0
	sxtw	x8, w22
	add	x28, x8, #1
	mov	w22, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	mov	x1, x19
	mov	x2, x21
	bl	_memcmp
	cbnz	x0, LBB0_15
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_ce_stage
Lloh4:
	adrp	x8, _checkout_stage@GOTPAGE
Lloh5:
	ldr	x8, [x8, _checkout_stage@GOTPAGEOFF]
Lloh6:
	ldrsw	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh7:
	adrp	x9, _CHECKOUT_ALL@GOTPAGE
Lloh8:
	ldr	x9, [x9, _CHECKOUT_ALL@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w9, w8
	b.ne	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_ce_stage
	cbz	x0, LBB0_11
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh10:
	adrp	x8, _to_tempfile@GOTPAGE
Lloh11:
	ldr	x8, [x8, _to_tempfile@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh13:
	adrp	x8, _topath@GOTPAGE
Lloh14:
	ldr	x8, [x8, _topath@GOTPAGEOFF]
Lloh15:
	ldr	x20, [x8]
	mov	x0, x23
	bl	_ce_stage
	ldr	x2, [x20, x0, lsl #3]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x2, #0
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
Lloh16:
	adrp	x1, _state@GOTPAGE
Lloh17:
	ldr	x1, [x1, _state@GOTPAGEOFF]
	mov	x3, #0
	bl	_checkout_entry
	lsr	x8, x0, #63
	add	w24, w24, w8
	mov	w20, #1
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x8, [x26]
	cmp	x28, x8
	b.ge	LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x27]
	ldr	x23, [x8, x28, lsl #3]
	mov	x0, x23
	bl	_ce_namelen
	mov	w22, #0
	mov	w25, #0
	add	x28, x28, #1
	cmp	w0, w21
	b.eq	LBB0_3
	b	LBB0_16
LBB0_13:
	mov	w25, #1
	b	LBB0_21
LBB0_14:
	mov	w20, #0
	mov	w24, #0
	mov	w25, #1
	cbnz	w20, LBB0_17
	b	LBB0_21
LBB0_15:
	mov	x25, x22
LBB0_16:
	cbz	w20, LBB0_21
LBB0_17:
Lloh18:
	adrp	x8, _to_tempfile@GOTPAGE
Lloh19:
	ldr	x8, [x8, _to_tempfile@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cbz	x8, LBB0_19
; %bb.18:
	mov	x0, x19
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	bl	_write_tempfile_record
LBB0_19:
	cmp	w24, #0
	csetm	w0, gt
	b	LBB0_29
LBB0_20:
	mov	w25, #0
	cbnz	w20, LBB0_17
LBB0_21:
Lloh21:
	adrp	x8, _state@GOTPAGE
Lloh22:
	ldr	x8, [x8, _state@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cbnz	w8, LBB0_28
; %bb.22:
Lloh24:
	adrp	x20, _stderr@GOTPAGE
Lloh25:
	ldr	x20, [x20, _stderr@GOTPAGEOFF]
	ldr	w0, [x20]
	str	x19, [sp]
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	tbz	w25, #0, LBB0_24
; %bb.23:
	ldr	w0, [x20]
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_27
LBB0_24:
Lloh30:
	adrp	x8, _checkout_stage@GOTPAGE
Lloh31:
	ldr	x8, [x8, _checkout_stage@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	ldr	w0, [x20]
	cbz	w8, LBB0_26
; %bb.25:
	str	x8, [sp]
Lloh33:
	adrp	x1, l_.str.2@PAGE
Lloh34:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_27
LBB0_26:
Lloh35:
	adrp	x1, l_.str.3@PAGE
Lloh36:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_27:
	bl	_fprintf
	ldr	w1, [x20]
	mov	w0, #10
	bl	_fputc
LBB0_28:
	mov	w0, #-1
LBB0_29:
	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
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_active_nr,4,2                  ; @active_nr
	.comm	_active_cache,8,3               ; @active_cache
	.comm	_checkout_stage,4,2             ; @checkout_stage
	.comm	_CHECKOUT_ALL,4,2               ; @CHECKOUT_ALL
	.comm	_state,4,2                      ; @state
	.comm	_to_tempfile,8,3                ; @to_tempfile
	.comm	_topath,8,3                     ; @topath
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"git checkout-index: %s "

l_.str.1:                               ; @.str.1
	.asciz	"is not in the cache"

l_.str.2:                               ; @.str.2
	.asciz	"does not exist at stage %d"

l_.str.3:                               ; @.str.3
	.asciz	"is unmerged"

	.no_dead_strip	_checkout_file
.subsections_via_symbols
