	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function detect_and_process_renames
_detect_and_process_renames:            ## @detect_and_process_renames
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r13
	movl	$1, -44(%rbp)
	xorps	%xmm0, %xmm0
	movq	%r9, -88(%rbp)                  ## 8-byte Spill
	movups	%xmm0, (%r9)
	callq	_merge_detect_rename
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdx
	callq	_get_diffpairs
	movq	%rax, %r15
	movq	%r13, %rdi
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movq	%r14, %rsi
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdx
	callq	_get_diffpairs
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	(%r13), %rax
	movq	_MERGE_DIRECTORY_RENAMES_TRUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_5:
	movq	%r15, %rdi
	callq	_get_directory_renames
	movq	%rax, %rbx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_get_directory_renames
	movq	%r13, %rdi
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	movq	%rax, %rbx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	movq	%rax, %rcx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %r8
	callq	_handle_directory_level_conflicts
	jmp	LBB0_7
LBB0_1:
	movl	$1, %eax
	jmp	LBB0_11
LBB0_3:
	movq	_MERGE_DIRECTORY_RENAMES_CONFLICT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movq	16(%r13), %rax
	cmpl	$0, (%rax)
	je	LBB0_5
LBB0_6:
	movl	$4, %edi
	callq	_xmalloc
	movq	%rax, %rbx
	movl	$4, %edi
	callq	_xmalloc
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%rax, %rbx
	callq	_dir_rename_init
	movq	%rbx, %rdi
	callq	_dir_rename_init
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_7:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	12(%r13), %esi
	subq	$8, %rsp
	leaq	-44(%rbp), %rax
	movq	%r13, %rdi
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdx
	movq	%rbx, %rcx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movq	%r14, %r9
	pushq	%rax
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	pushq	%r15
	pushq	%r12
	pushq	%r14
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	pushq	%rbx
	callq	_get_renames
	addq	$48, %rsp
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 8(%rcx)
	cmpl	$0, -44(%rbp)
	js	LBB0_10
## %bb.8:
	movl	8(%r13), %esi
	subq	$8, %rsp
	movq	%r13, %rdi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	%r12, %r9
	leaq	-44(%rbp), %rax
	pushq	%rax
	pushq	%r15
	pushq	%r12
	pushq	%r14
	pushq	%rbx
	callq	_get_renames
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	addq	$48, %rsp
	movq	%rax, (%rcx)
	cmpl	$0, -44(%rbp)
	js	LBB0_10
## %bb.9:
	movq	8(%rcx), %rsi
	movq	%r13, %rdi
	movq	%rax, %rdx
	callq	_process_renames
	andl	%eax, -44(%rbp)
LBB0_10:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_initial_cleanup_rename
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_initial_cleanup_rename
	movl	-44(%rbp), %eax
LBB0_11:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MERGE_DIRECTORY_RENAMES_TRUE,8,3 ## @MERGE_DIRECTORY_RENAMES_TRUE
	.comm	_MERGE_DIRECTORY_RENAMES_CONFLICT,8,3 ## @MERGE_DIRECTORY_RENAMES_CONFLICT
	.no_dead_strip	_detect_and_process_renames
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function detect_and_process_renames
_detect_and_process_renames:            ; @detect_and_process_renames
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x19, x5
	mov	x26, x4
	mov	x24, x3
	mov	x22, x2
	mov	x25, x1
	mov	x20, x0
	mov	w21, #1
	str	w21, [sp, #44]
	stp	xzr, xzr, [x5]
	bl	_merge_detect_rename
	cbz	w0, LBB0_10
; %bb.1:
	mov	x0, x20
	mov	x1, x25
	mov	x2, x22
	bl	_get_diffpairs
	mov	x21, x0
	mov	x0, x20
	mov	x1, x25
	mov	x2, x24
	bl	_get_diffpairs
	str	x0, [sp, #32]                   ; 8-byte Folded Spill
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _MERGE_DIRECTORY_RENAMES_TRUE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MERGE_DIRECTORY_RENAMES_TRUE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_2:
	mov	x0, x21
	bl	_get_directory_renames
	mov	x27, x0
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	bl	_get_directory_renames
	mov	x28, x0
	mov	x0, x20
	mov	x1, x27
	mov	x2, x22
	mov	x3, x28
	mov	x4, x24
	bl	_handle_directory_level_conflicts
	b	LBB0_6
LBB0_3:
Lloh3:
	adrp	x9, _MERGE_DIRECTORY_RENAMES_CONFLICT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MERGE_DIRECTORY_RENAMES_CONFLICT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
	cbz	w8, LBB0_2
LBB0_5:
	mov	w0, #4
	bl	_xmalloc
	mov	x27, x0
	mov	w0, #4
	bl	_xmalloc
	mov	x28, x0
	mov	x0, x27
	bl	_dir_rename_init
	mov	x0, x28
	bl	_dir_rename_init
LBB0_6:
	ldr	w1, [x20, #12]
	add	x23, sp, #44
	stp	x26, x23, [sp, #8]
	str	x24, [sp]
	mov	x0, x20
	mov	x2, x21
	mov	x3, x28
	mov	x4, x27
	mov	x5, x22
	mov	x6, x25
	mov	x7, x22
	bl	_get_renames
	str	x0, [x19, #8]
	ldr	w8, [sp, #44]
	tbnz	w8, #31, LBB0_9
; %bb.7:
	ldr	w1, [x20, #8]
	stp	x26, x23, [sp, #8]
	str	x24, [sp]
	mov	x0, x20
	ldr	x2, [sp, #32]                   ; 8-byte Folded Reload
	mov	x3, x27
	mov	x4, x28
	mov	x5, x24
	mov	x6, x25
	mov	x7, x22
	bl	_get_renames
	str	x0, [x19]
	ldr	w8, [sp, #44]
	tbnz	w8, #31, LBB0_9
; %bb.8:
	mov	x2, x0
	ldr	x1, [x19, #8]
	mov	x0, x20
	bl	_process_renames
	ldr	w8, [sp, #44]
	and	w8, w8, w0
	str	w8, [sp, #44]
LBB0_9:
	mov	x0, x21
	mov	x1, x27
	bl	_initial_cleanup_rename
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	mov	x1, x28
	bl	_initial_cleanup_rename
	ldr	w21, [sp, #44]
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MERGE_DIRECTORY_RENAMES_TRUE,8,3 ; @MERGE_DIRECTORY_RENAMES_TRUE
	.comm	_MERGE_DIRECTORY_RENAMES_CONFLICT,8,3 ; @MERGE_DIRECTORY_RENAMES_CONFLICT
	.no_dead_strip	_detect_and_process_renames
.subsections_via_symbols
