	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_diff_populate_filespec         ## -- Begin function diff_populate_filespec
	.p2align	4, 0x90
_diff_populate_filespec:                ## @diff_populate_filespec
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_CHECK_SIZE_ONLY@GOTPCREL(%rip), %rax
	movq	_global_conv_flags_eol@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	movq	_CONV_EOL_RNDTRP_DIE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r13d, %ecx
	je	LBB0_2
## %bb.1:
	movq	_CONV_EOL_RNDTRP_WARN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
LBB0_2:
	movl	(%rax), %r14d
	andl	%ebx, %r14d
	movq	%r12, %rdi
	callq	_DIFF_FILE_VALID
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_die
LBB0_4:
	movl	40(%r12), %edi
	callq	_S_ISDIR
	movl	$-1, %r15d
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	xorl	%r15d, %r15d
	cmpq	$0, (%r12)
	je	LBB0_7
LBB0_6:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.8:
	cmpq	$0, 8(%r12)
	jg	LBB0_6
LBB0_9:
	movl	40(%r12), %edi
	callq	_S_ISGITLINK
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%r12, %rdi
	movl	%r14d, %esi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_diff_populate_gitlink          ## TAILCALL
LBB0_11:
	cmpl	$0, 36(%r12)
	je	LBB0_13
## %bb.12:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	32(%r12), %esi
	leaq	28(%r12), %r15
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_reuse_worktree_file
	testq	%rax, %rax
	je	LBB0_18
LBB0_13:
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movl	32(%r12), %edi
	leaq	-72(%rbp), %rsi
	callq	_lstat
	movl	$-1, %r15d
	testq	%rax, %rax
	js	LBB0_21
## %bb.14:
	movl	-68(%rbp), %edi
	callq	_xsize_t
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_20
## %bb.15:
	movl	-72(%rbp), %edi
	callq	_S_ISLNK
	testq	%rax, %rax
	je	LBB0_22
## %bb.16:
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	32(%r12), %esi
	movq	8(%r12), %rdx
	leaq	-48(%rbp), %rdi
	callq	_strbuf_readlink
	testq	%rax, %rax
	jne	LBB0_21
## %bb.17:
	movq	-48(%rbp), %rax
	movq	%rax, 8(%r12)
	xorl	%r15d, %r15d
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_strbuf_detach
	movq	%rax, (%r12)
	movl	$1, 16(%r12)
	jmp	LBB0_6
LBB0_18:
	testl	%r14d, %r14d
	je	LBB0_30
## %bb.19:
	addq	$8, %r12
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_oid_object_info
	jmp	LBB0_36
LBB0_20:
	xorl	%r15d, %r15d
LBB0_21:
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%r12)
	movq	$0, 8(%r12)
	jmp	LBB0_6
LBB0_22:
	testl	%r14d, %r14d
	je	LBB0_24
## %bb.23:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	32(%r12), %esi
	callq	_would_convert_to_git
	testl	%eax, %eax
	je	LBB0_36
LBB0_24:
	movq	_CHECK_BINARY@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_27
## %bb.25:
	movq	8(%r12), %rax
	movq	_big_file_threshold@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_27
## %bb.26:
	cmpl	$-1, 20(%r12)
	je	LBB0_38
LBB0_27:
	movl	32(%r12), %edi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	testl	%eax, %eax
	js	LBB0_21
## %bb.28:
	movl	%eax, %ebx
	movq	8(%r12), %rsi
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MAP_PRIVATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	movl	%ebx, %r8d
	xorl	%r9d, %r9d
	callq	_xmmap
	movq	%rax, (%r12)
	movl	%ebx, %edi
	callq	_close
	movl	$1, 24(%r12)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	32(%r12), %esi
	movq	(%r12), %rdx
	movq	8(%r12), %rcx
	leaq	-64(%rbp), %r8
	movl	%r13d, %r9d
	callq	_convert_to_git
	testq	%rax, %rax
	je	LBB0_6
## %bb.29:
	movq	$0, -48(%rbp)
	movq	(%r12), %rdi
	movq	8(%r12), %rsi
	callq	_munmap
	movl	$0, 24(%r12)
	leaq	-64(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_strbuf_detach
	movq	%rax, (%r12)
	movq	-48(%rbp), %rax
	movq	%rax, 8(%r12)
	movl	$1, 16(%r12)
	jmp	LBB0_6
LBB0_30:
	movq	_CHECK_BINARY@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_33
## %bb.31:
	leaq	8(%r12), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_oid_object_info
	movl	%eax, -64(%rbp)
	movq	8(%r12), %rax
	movq	_big_file_threshold@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_33
## %bb.32:
	cmpl	$-1, 20(%r12)
	je	LBB0_38
LBB0_33:
	leaq	8(%r12), %rdx
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	callq	_read_object_file
	movq	%rax, (%r12)
	testq	%rax, %rax
	jne	LBB0_35
## %bb.34:
	movq	%r15, %rdi
	callq	_oid_to_hex
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_die
LBB0_35:
	movl	$1, 16(%r12)
	jmp	LBB0_36
LBB0_38:
	movl	$1, 20(%r12)
LBB0_36:
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_CHECK_SIZE_ONLY,4,2            ## @CHECK_SIZE_ONLY
	.comm	_global_conv_flags_eol,4,2      ## @global_conv_flags_eol
	.comm	_CONV_EOL_RNDTRP_DIE,4,2        ## @CONV_EOL_RNDTRP_DIE
	.comm	_CONV_EOL_RNDTRP_WARN,4,2       ## @CONV_EOL_RNDTRP_WARN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"internal error: asking to populate invalid file."

	.comm	_STRBUF_INIT,8,3                ## @STRBUF_INIT
L_.str.1:                               ## @.str.1
	.space	1

	.comm	_CHECK_BINARY,4,2               ## @CHECK_BINARY
	.comm	_big_file_threshold,8,3         ## @big_file_threshold
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_MAP_PRIVATE,4,2                ## @MAP_PRIVATE
L_.str.2:                               ## @.str.2
	.asciz	"unable to read %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_diff_populate_filespec         ; -- Begin function diff_populate_filespec
	.p2align	2
_diff_populate_filespec:                ; @diff_populate_filespec
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _CHECK_SIZE_ONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHECK_SIZE_ONLY@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x8, _global_conv_flags_eol@GOTPAGE
Lloh4:
	ldr	x8, [x8, _global_conv_flags_eol@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _CONV_EOL_RNDTRP_DIE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CONV_EOL_RNDTRP_DIE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _CONV_EOL_RNDTRP_WARN@GOTPAGE
Lloh10:
	ldr	x10, [x10, _CONV_EOL_RNDTRP_WARN@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w21, w8, w10, eq
	mov	x0, x1
	bl	_DIFF_FILE_VALID
	cbnz	w0, LBB0_2
; %bb.1:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die
LBB0_2:
	ldr	w0, [x19, #40]
	bl	_S_ISDIR
	cbz	x0, LBB0_4
; %bb.3:
	mov	w0, #-1
	b	LBB0_6
LBB0_4:
	ldr	x8, [x19]
	cbz	x8, LBB0_7
LBB0_5:
	mov	w0, #0
LBB0_6:
	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
	add	sp, sp, #96
	ret
LBB0_7:
	and	w23, w23, w22
	cbz	w23, LBB0_9
; %bb.8:
	ldr	x8, [x19, #8]
	cmp	x8, #0
	b.gt	LBB0_5
LBB0_9:
	ldr	w0, [x19, #40]
	bl	_S_ISGITLINK
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x19
	mov	x1, x23
	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
	add	sp, sp, #96
	b	_diff_populate_gitlink
LBB0_11:
	ldr	w8, [x19, #36]
	cbz	w8, LBB0_13
; %bb.12:
	ldr	w0, [x20]
	ldr	w1, [x19, #32]
	add	x24, x19, #28
	mov	x2, x24
	mov	w3, #0
	bl	_reuse_worktree_file
	cbz	x0, LBB0_19
LBB0_13:
Lloh14:
	adrp	x24, _STRBUF_INIT@GOTPAGE
Lloh15:
	ldr	x24, [x24, _STRBUF_INIT@GOTPAGEOFF]
	ldr	x8, [x24]
	str	x8, [sp, #24]
	ldr	w0, [x19, #32]
	add	x1, sp, #16
	bl	_lstat
	tbnz	x0, #63, LBB0_17
; %bb.14:
	ldr	w0, [sp, #20]
	bl	_xsize_t
	str	x0, [x19, #8]
	cbz	x0, LBB0_18
; %bb.15:
	ldr	w0, [sp, #16]
	bl	_S_ISLNK
	cbz	x0, LBB0_21
; %bb.16:
	ldr	x8, [x24]
	str	x8, [sp, #8]
	ldr	w1, [x19, #32]
	ldr	x2, [x19, #8]
	add	x0, sp, #8
	bl	_strbuf_readlink
	cbz	x0, LBB0_35
LBB0_17:
	mov	w0, #-1
LBB0_18:
Lloh16:
	adrp	x8, l_.str.1@PAGE
Lloh17:
	add	x8, x8, l_.str.1@PAGEOFF
	stp	x8, xzr, [x19]
	b	LBB0_6
LBB0_19:
	cbz	w23, LBB0_29
; %bb.20:
	add	x2, x19, #8
	mov	x0, x20
	mov	x1, x24
	bl	_oid_object_info
	b	LBB0_5
LBB0_21:
	cbz	w23, LBB0_23
; %bb.22:
	ldr	w0, [x20]
	ldr	w1, [x19, #32]
	bl	_would_convert_to_git
	cbz	w0, LBB0_6
LBB0_23:
Lloh18:
	adrp	x8, _CHECK_BINARY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CHECK_BINARY@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_26
; %bb.24:
	ldr	x8, [x19, #8]
Lloh21:
	adrp	x9, _big_file_threshold@GOTPAGE
Lloh22:
	ldr	x9, [x9, _big_file_threshold@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_26
; %bb.25:
	ldr	w8, [x19, #20]
	cmn	w8, #1
	b.eq	LBB0_37
LBB0_26:
	ldr	w0, [x19, #32]
Lloh24:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_open
	tbnz	w0, #31, LBB0_17
; %bb.27:
	mov	x22, x0
	ldr	x1, [x19, #8]
Lloh27:
	adrp	x8, _PROT_READ@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PROT_READ@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
Lloh30:
	adrp	x8, _MAP_PRIVATE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MAP_PRIVATE@GOTPAGEOFF]
Lloh32:
	ldr	w3, [x8]
	mov	x0, #0
	mov	x4, x22
	mov	w5, #0
	bl	_xmmap
	str	x0, [x19]
	mov	x0, x22
	bl	_close
	mov	w22, #1
	str	w22, [x19, #24]
	ldr	w0, [x20]
	ldr	w1, [x19, #32]
	ldp	x2, x3, [x19]
	add	x4, sp, #24
	mov	x5, x21
	bl	_convert_to_git
	cbz	x0, LBB0_5
; %bb.28:
	str	xzr, [sp, #8]
	ldp	x0, x1, [x19]
	bl	_munmap
	str	wzr, [x19, #24]
	add	x0, sp, #24
	add	x1, sp, #8
	bl	_strbuf_detach
	ldr	x8, [sp, #8]
	stp	x0, x8, [x19]
	str	w22, [x19, #16]
	b	LBB0_5
LBB0_29:
Lloh33:
	adrp	x8, _CHECK_BINARY@GOTPAGE
Lloh34:
	ldr	x8, [x8, _CHECK_BINARY@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_32
; %bb.30:
	add	x2, x19, #8
	mov	x0, x20
	mov	x1, x24
	bl	_oid_object_info
	str	w0, [sp, #24]
	ldr	x8, [x19, #8]
Lloh36:
	adrp	x9, _big_file_threshold@GOTPAGE
Lloh37:
	ldr	x9, [x9, _big_file_threshold@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_32
; %bb.31:
	ldr	w8, [x19, #20]
	cmn	w8, #1
	b.eq	LBB0_38
LBB0_32:
	add	x2, x19, #8
	add	x1, sp, #24
	mov	x0, x24
	bl	_read_object_file
	str	x0, [x19]
	cbnz	x0, LBB0_34
; %bb.33:
	mov	x0, x24
	bl	_oid_to_hex
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh39:
	adrp	x0, l_.str.2@PAGE
Lloh40:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_die
LBB0_34:
	mov	w0, #0
	b	LBB0_36
LBB0_35:
	ldr	x8, [sp, #8]
	str	x8, [x19, #8]
	add	x0, sp, #8
	mov	x1, #0
	bl	_strbuf_detach
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
LBB0_36:
	mov	w8, #1
	str	w8, [x19, #16]
	b	LBB0_6
LBB0_37:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19, #20]
	b	LBB0_6
LBB0_38:
	mov	w8, #1
	str	w8, [x19, #20]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_CHECK_SIZE_ONLY,4,2            ; @CHECK_SIZE_ONLY
	.comm	_global_conv_flags_eol,4,2      ; @global_conv_flags_eol
	.comm	_CONV_EOL_RNDTRP_DIE,4,2        ; @CONV_EOL_RNDTRP_DIE
	.comm	_CONV_EOL_RNDTRP_WARN,4,2       ; @CONV_EOL_RNDTRP_WARN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"internal error: asking to populate invalid file."

	.comm	_STRBUF_INIT,8,3                ; @STRBUF_INIT
l_.str.1:                               ; @.str.1
	.space	1

	.comm	_CHECK_BINARY,4,2               ; @CHECK_BINARY
	.comm	_big_file_threshold,8,3         ; @big_file_threshold
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_MAP_PRIVATE,4,2                ; @MAP_PRIVATE
l_.str.2:                               ; @.str.2
	.asciz	"unable to read %s"

.subsections_via_symbols
