	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_preimage
_check_preimage:                        ## @check_preimage
	.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), %r14
	testq	%r14, %r14
	je	LBB0_37
## %bb.1:
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r13
	xorl	%edi, %edi
	cmpl	$0, 8(%rsi)
	setle	%dil
	callq	_assert
	leaq	-56(%rbp), %rdx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_previous_patch
	cmpl	$0, -56(%rbp)
	je	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_3
LBB0_4:
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	12(%rax), %r15d
LBB0_26:
	cmpl	$0, 8(%rbx)
	jns	LBB0_28
## %bb.27:
	movl	$0, 8(%rbx)
LBB0_28:
	movl	16(%rbx), %eax
	testl	%eax, %eax
	jne	LBB0_30
## %bb.29:
	movl	%r15d, 16(%rbx)
	movl	%r15d, %eax
LBB0_30:
	movl	%eax, %ecx
	xorl	%r15d, %ecx
	movq	_S_IFMT@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_32
## %bb.31:
	leaq	L_.str.4(%rip), %rdi
LBB0_3:
	callq	__
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_error
	jmp	LBB0_38
LBB0_6:
	xorl	%esi, %esi
	cmpq	$0, (%r13)
	je	LBB0_7
LBB0_10:
	cmpq	$0, 16(%r13)
	je	LBB0_21
## %bb.11:
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %rax
	movq	(%rax), %r15
	movq	%r14, %rdi
	callq	_strlen
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_index_name_pos
	testl	%eax, %eax
	js	LBB0_12
## %bb.14:
	movq	8(%r13), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %eax
	movq	(%rcx,%rax,8), %rsi
	movq	%rsi, (%r12)
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	js	LBB0_15
LBB0_16:
	cmpq	$0, (%r13)
	je	LBB0_17
LBB0_20:
	movq	(%r12), %rax
	movl	(%rax), %r15d
	jmp	LBB0_26
LBB0_32:
	cmpl	%eax, %r15d
	je	LBB0_34
## %bb.33:
	leaq	L_.str.5(%rip), %rdi
	callq	__
	movl	16(%rbx), %ecx
	movl	%eax, %edi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_warning
LBB0_34:
	cmpl	$0, 12(%rbx)
	jne	LBB0_37
## %bb.35:
	cmpq	$0, 24(%rbx)
	jne	LBB0_37
## %bb.36:
	movl	%r15d, 12(%rbx)
	jmp	LBB0_37
LBB0_7:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_lstat
	xorl	%esi, %esi
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_ENOENT@GOTPCREL(%rip), %rdx
	movl	%eax, %esi
	cmpq	(%rdx), %rcx
	je	LBB0_10
	jmp	LBB0_9
LBB0_21:
	testl	%esi, %esi
	js	LBB0_22
## %bb.24:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	cmpq	$0, (%r13)
	jne	LBB0_26
LBB0_25:
	movq	(%r12), %rdi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	callq	_ce_mode_from_stat
	movl	%eax, %r15d
	jmp	LBB0_26
LBB0_12:
	cmpl	$0, 8(%rbx)
	js	LBB0_23
## %bb.13:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_3
LBB0_15:
	movq	8(%r13), %rax
	movq	(%rax), %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_checkout_target
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_38
	jmp	LBB0_16
LBB0_22:
	cmpl	$0, 8(%rbx)
	js	LBB0_23
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	callq	_error_errno
	jmp	LBB0_38
LBB0_23:
	movl	$1, 8(%rbx)
	movq	$0, 24(%rbx)
	movq	(%rbx), %rdi
	callq	_FREE_AND_NULL
LBB0_37:
	xorl	%eax, %eax
LBB0_38:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	(%r12), %rsi
	movq	%r13, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_verify_index_match
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_3
LBB0_19:
	cmpq	$0, (%r13)
	jne	LBB0_20
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"path %s has been renamed/deleted"

	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
L_.str.1:                               ## @.str.1
	.asciz	"%s"

L_.str.2:                               ## @.str.2
	.asciz	"%s: does not exist in index"

L_.str.3:                               ## @.str.3
	.asciz	"%s: does not match index"

	.comm	_S_IFMT,4,2                     ## @S_IFMT
L_.str.4:                               ## @.str.4
	.asciz	"%s: wrong type"

L_.str.5:                               ## @.str.5
	.asciz	"%s has type %o, expected %o"

	.no_dead_strip	_check_preimage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_preimage
_check_preimage:                        ; @check_preimage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x19, [x1]
	cbz	x19, LBB0_36
; %bb.1:
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x23, x0
	ldr	w8, [x1, #8]
	cmp	w8, #1
	cset	w0, lt
	bl	_assert
	add	x2, sp, #12
	mov	x0, x23
	mov	x1, x20
	bl	_previous_patch
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_11
LBB0_3:
	cbz	x0, LBB0_12
; %bb.4:
	ldr	w21, [x0, #12]
LBB0_5:
	ldr	w8, [x20, #8]
	tbz	w8, #31, LBB0_7
; %bb.6:
	str	wzr, [x20, #8]
LBB0_7:
	ldr	w8, [x20, #16]
	cbnz	w8, LBB0_9
; %bb.8:
	str	w21, [x20, #16]
	mov	x8, x21
LBB0_9:
	eor	w9, w8, w21
Lloh2:
	adrp	x10, _S_IFMT@GOTPAGE
Lloh3:
	ldr	x10, [x10, _S_IFMT@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	tst	w9, w10
	b.eq	LBB0_19
; %bb.10:
Lloh5:
	adrp	x0, l_.str.4@PAGE
Lloh6:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_11:
	bl	__
	mov	x1, x19
	bl	_error
	b	LBB0_37
LBB0_12:
	ldr	x8, [x23]
	cbz	x8, LBB0_24
; %bb.13:
	mov	w24, #0
LBB0_14:
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_26
; %bb.15:
	ldr	x8, [x23, #8]
	ldr	x25, [x8]
	mov	x0, x19
	bl	_strlen
	mov	x2, x0
	mov	x0, x25
	mov	x1, x19
	bl	_index_name_pos
	tbnz	w0, #31, LBB0_29
; %bb.16:
	ldr	x8, [x23, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x1, [x8, w0, uxtw #3]
	str	x1, [x22]
	tbnz	w24, #31, LBB0_31
LBB0_17:
	ldr	x8, [x23]
	cbz	x8, LBB0_38
LBB0_18:
	ldr	x8, [x22]
	ldr	w21, [x8]
	b	LBB0_5
LBB0_19:
	cmp	w21, w8
	b.eq	LBB0_21
; %bb.20:
Lloh7:
	adrp	x0, l_.str.5@PAGE
Lloh8:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	__
	ldr	w3, [x20, #16]
	mov	x1, x19
	mov	x2, x21
	bl	_warning
LBB0_21:
	ldr	w8, [x20, #12]
	cbnz	w8, LBB0_36
; %bb.22:
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_36
; %bb.23:
	mov	w0, #0
	str	w21, [x20, #12]
	b	LBB0_37
LBB0_24:
	mov	x0, x19
	mov	x1, x21
	bl	_lstat
	mov	x24, x0
	cbz	w0, LBB0_14
; %bb.25:
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _ENOENT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_14
	b	LBB0_34
LBB0_26:
	tbnz	w24, #31, LBB0_33
; %bb.27:
	ldr	x8, [x23]
	cbz	x8, LBB0_41
; %bb.28:
	mov	w21, #0
	b	LBB0_5
LBB0_29:
	ldr	w8, [x20, #8]
	tbnz	w8, #31, LBB0_35
; %bb.30:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_31:
	ldr	x8, [x23, #8]
	ldr	x0, [x8]
	mov	x2, x21
	bl	_checkout_target
	cbz	x0, LBB0_17
; %bb.32:
	mov	w0, #-1
	b	LBB0_37
LBB0_33:
	ldr	w8, [x20, #8]
	tbnz	w8, #31, LBB0_35
LBB0_34:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_error_errno
	b	LBB0_37
LBB0_35:
	mov	w8, #1
	str	w8, [x20, #8]
	str	xzr, [x20, #24]
	ldr	x0, [x20]
	bl	_FREE_AND_NULL
LBB0_36:
	mov	w0, #0
LBB0_37:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_38:
	ldr	x1, [x22]
	mov	x0, x23
	mov	x2, x21
	bl	_verify_index_match
	cbz	x0, LBB0_40
; %bb.39:
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_40:
	ldr	x8, [x23]
	cbnz	x8, LBB0_18
LBB0_41:
	ldr	x0, [x22]
	ldr	w1, [x21]
	bl	_ce_mode_from_stat
	mov	x21, x0
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"path %s has been renamed/deleted"

	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
l_.str.1:                               ; @.str.1
	.asciz	"%s"

l_.str.2:                               ; @.str.2
	.asciz	"%s: does not exist in index"

l_.str.3:                               ; @.str.3
	.asciz	"%s: does not match index"

	.comm	_S_IFMT,4,2                     ; @S_IFMT
l_.str.4:                               ; @.str.4
	.asciz	"%s: wrong type"

l_.str.5:                               ; @.str.5
	.asciz	"%s has type %o, expected %o"

	.no_dead_strip	_check_preimage
.subsections_via_symbols
