	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_automatic_merge
_find_automatic_merge:                  ## @find_automatic_merge
	.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
	movq	%r9, %r12
	movq	%r8, %r14
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdx), %rdx
	leaq	40(%rbx), %rsi
	movq	%rdx, 48(%rbx)
	leaq	44(%rbx), %rdi
	movq	_SVN_INVALID_REVNUM@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movl	60(%rbx), %r9d
	movl	%ecx, %r8d
	pushq	%r12
	pushq	%r13
	callq	_svn_client__get_history_as_mergeinfo
	addq	$16, %rsp
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	(%rbx), %rdx
	leaq	24(%rbx), %rsi
	movq	%rdx, 32(%rbx)
	leaq	28(%rbx), %rdi
	movl	(%r15), %ecx
	movl	56(%rbx), %r9d
	movl	%ecx, %r8d
	pushq	%r12
	pushq	%r13
	callq	_svn_client__get_history_as_mergeinfo
	addq	$16, %rsp
	movl	%eax, %edi
	callq	_SVN_ERR
	leaq	16(%rbx), %rdi
	movq	(%rbx), %r8
	movq	8(%rbx), %rsi
	movl	44(%rbx), %edx
	movl	40(%rbx), %ecx
	movl	28(%rbx), %r9d
	movl	24(%rbx), %eax
	subq	$8, %rsp
	pushq	%r12
	pushq	%r14
	pushq	%rax
	callq	_svn_client__calc_youngest_common_ancestor
	addq	$32, %rsp
	movl	%eax, %edi
	callq	_SVN_ERR
	cmpl	$0, 16(%rbx)
	je	LBB0_1
## %bb.3:
	leaq	-72(%rbp), %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	movq	%r12, %r8
	callq	_find_base_on_source
	movl	%eax, %edi
	callq	_SVN_ERR
	leaq	-64(%rbp), %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	movq	%r12, %r8
	callq	_find_base_on_target
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-72(%rbp), %rax
	movq	(%rax), %rcx
	movq	-64(%rbp), %rdx
	cmpq	(%rdx), %rcx
	cmovlq	%rdx, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	_FALSE@GOTPCREL(%rip), %rax
	cmovlq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$40, %rsp
	jmp	LBB0_2
LBB0_1:
	movq	_SVN_ERR_CLIENT_NOT_READY_TO_MERGE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	(%rbx), %rdx
	movq	8(%rbx), %rcx
	movl	(%rcx), %r8d
	movl	4(%rcx), %ecx
	movl	(%rdx), %ebx
	movl	4(%rdx), %r9d
	subq	$8, %rsp
	movl	%r14d, %edi
	xorl	%esi, %esi
	movl	%eax, %edx
	pushq	%rbx
	callq	_svn_error_createf
	addq	$56, %rsp
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SVN_INVALID_REVNUM,4,2         ## @SVN_INVALID_REVNUM
	.comm	_SVN_ERR_CLIENT_NOT_READY_TO_MERGE,4,2 ## @SVN_ERR_CLIENT_NOT_READY_TO_MERGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"'%s@%ld' must be ancestrally related to '%s@%ld'"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_SVN_NO_ERROR,8,3               ## @SVN_NO_ERROR
	.no_dead_strip	_find_automatic_merge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_automatic_merge
_find_automatic_merge:                  ; @find_automatic_merge
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x22, x5
	mov	x24, x4
	mov	x23, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x2, [x2, #8]
	add	x1, x21, #40
	str	x2, [x21, #48]
	add	x0, x21, #44
Lloh0:
	adrp	x25, _SVN_INVALID_REVNUM@GOTPAGE
Lloh1:
	ldr	x25, [x25, _SVN_INVALID_REVNUM@GOTPAGEOFF]
	ldr	w3, [x25]
	ldr	w5, [x21, #60]
	mov	x4, x3
	mov	x6, x23
	mov	x7, x22
	bl	_svn_client__get_history_as_mergeinfo
	bl	_SVN_ERR
	ldr	x2, [x21]
	add	x1, x21, #24
	str	x2, [x21, #32]
	add	x0, x21, #28
	ldr	w3, [x25]
	ldr	w5, [x21, #56]
	mov	x4, x3
	mov	x6, x23
	mov	x7, x22
	bl	_svn_client__get_history_as_mergeinfo
	bl	_SVN_ERR
	add	x0, x21, #16
	ldp	w3, w2, [x21, #40]
	ldp	x4, x1, [x21]
	ldp	w6, w5, [x21, #24]
	str	x22, [sp]
	mov	x7, x24
	bl	_svn_client__calc_youngest_common_ancestor
	bl	_SVN_ERR
	ldr	w8, [x21, #16]
	cbz	w8, LBB0_2
; %bb.1:
	add	x0, sp, #24
	mov	x1, x21
	mov	x2, x23
	mov	x3, x22
	mov	x4, x22
	bl	_find_base_on_source
	bl	_SVN_ERR
	add	x0, sp, #16
	mov	x1, x21
	mov	x2, x23
	mov	x3, x22
	mov	x4, x22
	bl	_find_base_on_target
	bl	_SVN_ERR
	ldp	x10, x8, [sp, #16]
	ldr	x9, [x8]
	ldr	x11, [x10]
	cmp	x9, x11
	csel	x8, x10, x8, lt
	str	x8, [x20]
Lloh2:
	adrp	x8, _TRUE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh4:
	adrp	x9, _FALSE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
	csel	x8, x8, x9, lt
	ldr	w8, [x8]
	str	w8, [x19]
Lloh6:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
	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
	add	sp, sp, #112
	ret
LBB0_2:
Lloh9:
	adrp	x8, _SVN_ERR_CLIENT_NOT_READY_TO_MERGE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SVN_ERR_CLIENT_NOT_READY_TO_MERGE@GOTPAGEOFF]
Lloh11:
	ldr	w19, [x8]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x2, x0
	ldp	x9, x8, [x21]
	ldp	w4, w3, [x8]
	ldp	w6, w5, [x9]
	mov	x0, x19
	mov	x1, #0
	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
	add	sp, sp, #112
	b	_svn_error_createf
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SVN_INVALID_REVNUM,4,2         ; @SVN_INVALID_REVNUM
	.comm	_SVN_ERR_CLIENT_NOT_READY_TO_MERGE,4,2 ; @SVN_ERR_CLIENT_NOT_READY_TO_MERGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"'%s@%ld' must be ancestrally related to '%s@%ld'"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
	.no_dead_strip	_find_automatic_merge
.subsections_via_symbols
