	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unresolve_one
_unresolve_one:                         ## @unresolve_one
	.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, %r14
	callq	_strlen
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_cache_name_pos
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movl	%eax, %edi
	callq	_unmerge_cache_entry_at
	movq	_active_nr@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_9
## %bb.2:
	movq	_active_cache@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	movq	(%rcx,%rax,8), %r15
	movq	%r15, %rdi
	callq	_ce_stage
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%r15, %rdi
	callq	_ce_namelen
	cmpl	%ebx, %eax
	jne	LBB0_9
## %bb.4:
	movl	12(%r15), %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_memcmp
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_5
LBB0_6:
	notl	%eax
	movq	_active_nr@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jle	LBB0_9
## %bb.7:
	movq	_active_cache@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	movq	(%rcx,%rax,8), %r15
	movq	%r15, %rdi
	callq	_ce_namelen
	cmpl	%ebx, %eax
	jne	LBB0_9
## %bb.8:
	movl	12(%r15), %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_22
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	movq	_head_oid@GOTPCREL(%rip), %rsi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	movl	$2, %r8d
	callq	_read_one_ent
	movq	%rax, %r13
	leaq	L_.str.2(%rip), %rdi
	movq	_merge_head_oid@GOTPCREL(%rip), %rsi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	movl	$3, %r8d
	callq	_read_one_ent
	movq	%rax, %r12
	movl	$-1, %r15d
	testq	%r13, %r13
	je	LBB0_19
## %bb.10:
	testq	%r12, %r12
	je	LBB0_19
## %bb.11:
	movq	%r13, %rdi
	addq	$8, %rdi
	movq	%r12, %rsi
	addq	$8, %rsi
	callq	_oideq
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	(%r13), %rax
	cmpq	(%r12), %rax
	jne	LBB0_14
## %bb.13:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdx
	callq	_fprintf
	xorl	%r15d, %r15d
	jmp	LBB0_19
LBB0_14:
	movq	%r14, %rdi
	callq	_remove_file_from_cache
	movq	_ADD_CACHE_OK_TO_ADD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_add_cache_entry
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_18
LBB0_16:
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_add_cache_entry
	testq	%rax, %rax
	je	LBB0_5
## %bb.17:
	leaq	L_.str.5(%rip), %rdi
LBB0_18:
	movq	%r14, %rsi
	callq	_error
LBB0_19:
	movq	%r13, %rdi
	callq	_discard_cache_entry
	movq	%r12, %rdi
	callq	_discard_cache_entry
LBB0_20:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%r15d, %r15d
	jmp	LBB0_20
LBB0_22:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_fprintf
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_active_nr,4,2                  ## @active_nr
	.comm	_active_cache,8,3               ## @active_cache
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: skipping still unmerged path.\n"

L_.str.1:                               ## @.str.1
	.asciz	"our"

	.comm	_head_oid,4,2                   ## @head_oid
L_.str.2:                               ## @.str.2
	.asciz	"their"

	.comm	_merge_head_oid,4,2             ## @merge_head_oid
L_.str.3:                               ## @.str.3
	.asciz	"%s: identical in both, skipping.\n"

	.comm	_ADD_CACHE_OK_TO_ADD,4,2        ## @ADD_CACHE_OK_TO_ADD
L_.str.4:                               ## @.str.4
	.asciz	"%s: cannot add our version to the index."

L_.str.5:                               ## @.str.5
	.asciz	"%s: cannot add their version to the index."

	.no_dead_strip	_unresolve_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unresolve_one
_unresolve_one:                         ; @unresolve_one
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	bl	_strlen
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_cache_name_pos
	tbnz	w0, #31, LBB0_5
; %bb.1:
	bl	_unmerge_cache_entry_at
Lloh0:
	adrp	x8, _active_nr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _active_nr@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_8
; %bb.2:
Lloh3:
	adrp	x8, _active_cache@GOTPAGE
Lloh4:
	ldr	x8, [x8, _active_cache@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x20, [x8, w0, sxtw #3]
	mov	x0, x20
	bl	_ce_stage
	cbz	x0, LBB0_8
; %bb.3:
	mov	x0, x20
	bl	_ce_namelen
	cmp	w0, w21
	b.ne	LBB0_8
; %bb.4:
	ldr	w0, [x20, #12]
	mov	x1, x19
	mov	x2, x21
	bl	_memcmp
	cbnz	w0, LBB0_8
	b	LBB0_20
LBB0_5:
	mvn	w8, w0
Lloh6:
	adrp	x9, _active_nr@GOTPAGE
Lloh7:
	ldr	x9, [x9, _active_nr@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w9, w8
	b.le	LBB0_8
; %bb.6:
Lloh9:
	adrp	x9, _active_cache@GOTPAGE
Lloh10:
	ldr	x9, [x9, _active_cache@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	x20, [x9, w8, sxtw #3]
	mov	x0, x20
	bl	_ce_namelen
	cmp	w0, w21
	b.ne	LBB0_8
; %bb.7:
	ldr	w0, [x20, #12]
	mov	x1, x19
	mov	x2, x21
	bl	_memcmp
	cbz	w0, LBB0_21
LBB0_8:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh14:
	adrp	x1, _head_oid@GOTPAGE
Lloh15:
	ldr	x1, [x1, _head_oid@GOTPAGEOFF]
	mov	x2, x19
	mov	x3, x21
	mov	w4, #2
	bl	_read_one_ent
	mov	x20, x0
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh18:
	adrp	x1, _merge_head_oid@GOTPAGE
Lloh19:
	ldr	x1, [x1, _merge_head_oid@GOTPAGEOFF]
	mov	x2, x19
	mov	x3, x21
	mov	w4, #3
	bl	_read_one_ent
	mov	x21, x0
	cmp	x20, #0
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_17
; %bb.9:
	add	x0, x20, #8
	add	x1, x21, #8
	bl	_oideq
	cbz	x0, LBB0_12
; %bb.10:
	ldr	x8, [x20]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
Lloh20:
	adrp	x8, _stderr@GOTPAGE
Lloh21:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x19
	bl	_fprintf
	mov	w19, #0
	b	LBB0_18
LBB0_12:
	mov	x0, x19
	bl	_remove_file_from_cache
Lloh25:
	adrp	x22, _ADD_CACHE_OK_TO_ADD@GOTPAGE
Lloh26:
	ldr	x22, [x22, _ADD_CACHE_OK_TO_ADD@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_add_cache_entry
	cbz	x0, LBB0_14
; %bb.13:
Lloh27:
	adrp	x0, l_.str.4@PAGE
Lloh28:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_16
LBB0_14:
	ldr	w1, [x22]
	mov	x0, x21
	bl	_add_cache_entry
	cbz	x0, LBB0_20
; %bb.15:
Lloh29:
	adrp	x0, l_.str.5@PAGE
Lloh30:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_16:
	mov	x1, x19
	bl	_error
LBB0_17:
	mov	w19, #-1
LBB0_18:
	mov	x0, x20
	bl	_discard_cache_entry
	mov	x0, x21
	bl	_discard_cache_entry
LBB0_19:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_20:
	mov	w19, #0
	b	LBB0_19
LBB0_21:
Lloh31:
	adrp	x8, _stderr@GOTPAGE
Lloh32:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x1, l_.str@PAGE
Lloh35:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_fprintf
	mov	w19, #0
	mov	x20, #0
	mov	x21, #0
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_active_nr,4,2                  ; @active_nr
	.comm	_active_cache,8,3               ; @active_cache
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: skipping still unmerged path.\n"

l_.str.1:                               ; @.str.1
	.asciz	"our"

	.comm	_head_oid,4,2                   ; @head_oid
l_.str.2:                               ; @.str.2
	.asciz	"their"

	.comm	_merge_head_oid,4,2             ; @merge_head_oid
l_.str.3:                               ; @.str.3
	.asciz	"%s: identical in both, skipping.\n"

	.comm	_ADD_CACHE_OK_TO_ADD,4,2        ; @ADD_CACHE_OK_TO_ADD
l_.str.4:                               ; @.str.4
	.asciz	"%s: cannot add our version to the index."

l_.str.5:                               ; @.str.5
	.asciz	"%s: cannot add their version to the index."

	.no_dead_strip	_unresolve_one
.subsections_via_symbols
