	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function txn_body_closest_copy
_txn_body_closest_copy:                 ## @txn_body_closest_copy
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	32(%rdi), %rbx
	movq	24(%rbx), %r12
	movq	$0, -56(%rbp)
	movq	24(%rdi), %rax
	movq	$0, (%rax)
	movq	8(%rdi), %rax
	movq	$0, (%rax)
	cmpq	$0, 16(%rbx)
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %r8
	movq	%r8, -80(%rbp)
	jmp	LBB0_3
LBB0_2:
	movl	8(%rbx), %edx
	movl	(%r13), %r8d
	leaq	-80(%rbp), %rdi
	movq	%r12, %rsi
	movq	%r13, %rcx
	callq	_svn_fs_base__rev_get_txn_id
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-80(%rbp), %r8
LBB0_3:
	movl	(%r13), %eax
	movl	%eax, (%rsp)
	leaq	-88(%rbp), %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	movq	%r13, %r9
	callq	_open_path
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-88(%rbp), %rax
	movq	(%rax), %rdi
	callq	_svn_fs_base__dag_get_id
	movq	%rax, %rbx
	movq	-88(%rbp), %rcx
	movl	(%r13), %r9d
	leaq	-128(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdx
	movq	%r13, %r8
	callq	_examine_copy_inheritance
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-128(%rbp), %rdx
	cmpb	$48, (%rdx)
	jne	LBB0_5
## %bb.4:
	cmpb	$0, 1(%rdx)
	je	LBB0_17
LBB0_5:
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%r15, %rbx
	movq	-56(%rbp), %rax
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movl	(%r13), %r8d
	leaq	-56(%rbp), %rdi
	movq	%r12, %rsi
	movq	%r13, %rcx
	callq	_svn_fs_bdb__get_copy
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-56(%rbp), %rax
LBB0_7:
	movl	(%rax), %edx
	movl	(%r13), %r8d
	leaq	-72(%rbp), %rdi
	movq	%r12, %rsi
	movq	%r13, %rcx
	callq	_svn_fs_base__dag_get_node
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-72(%rbp), %rdi
	callq	_svn_fs_base__dag_get_created_path
	movq	%rax, %r15
	movq	-72(%rbp), %rsi
	movl	(%r13), %ecx
	leaq	-64(%rbp), %rdi
	movq	%r13, %rdx
	callq	_svn_fs_base__dag_get_revision
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-64(%rbp), %rdx
	movl	16(%r14), %r8d
	leaq	-120(%rbp), %rdi
	movq	%r12, %rsi
	movq	%r13, %rcx
	callq	_svn_fs_base__dag_revision_root
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-64(%rbp), %rsi
	movq	-120(%rbp), %rdx
	movl	16(%r14), %ecx
	movq	%r12, %rdi
	callq	_make_revision_root
	movq	%rax, %r12
	movl	(%r13), %r8d
	leaq	-48(%rbp), %rdi
	movq	%rax, %rsi
	movq	%rbx, %rdx
	movq	%r13, %rcx
	callq	_get_dag
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movq	(%rax), %rcx
	movq	_SVN_ERR_FS_NOT_FOUND@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_10
## %bb.9:
	movq	_SVN_ERR_FS_NOT_DIRECTORY@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_10
## %bb.11:
	movq	%rax, %rdi
	callq	_svn_error_trace
	jmp	LBB0_18
LBB0_12:
	movq	-48(%rbp), %rdi
	callq	_svn_fs_base__dag_node_kind
	movq	_svn_node_none@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
## %bb.13:
	movq	-48(%rbp), %rdi
	callq	_svn_fs_base__dag_get_id
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_svn_fs_base__id_check_related
	testl	%eax, %eax
	je	LBB0_17
## %bb.14:
	movq	-48(%rbp), %rsi
	movl	(%r13), %ecx
	leaq	-112(%rbp), %rdi
	movq	%r13, %rdx
	callq	_svn_fs_base__dag_get_revision
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-112(%rbp), %rax
	cmpq	-64(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movq	-48(%rbp), %rsi
	movl	(%r13), %ecx
	leaq	-104(%rbp), %rdi
	movq	%r13, %rdx
	callq	_svn_fs_base__dag_get_predecessor_id
	movl	%eax, %edi
	callq	_SVN_ERR
	cmpq	$0, -104(%rbp)
	je	LBB0_17
LBB0_16:
	movl	16(%r14), %edi
	movq	%r15, %rsi
	callq	_apr_pstrdup
	movq	24(%r14), %rcx
	movq	%rax, (%rcx)
	movq	8(%r14), %rax
	movq	%r12, (%rax)
	jmp	LBB0_17
LBB0_10:
	movq	%rax, %rdi
	callq	_svn_error_clear
LBB0_17:
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_18:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SVN_NO_ERROR,8,3               ## @SVN_NO_ERROR
	.comm	_SVN_ERR_FS_NOT_FOUND,8,3       ## @SVN_ERR_FS_NOT_FOUND
	.comm	_SVN_ERR_FS_NOT_DIRECTORY,8,3   ## @SVN_ERR_FS_NOT_DIRECTORY
	.comm	_svn_node_none,8,3              ## @svn_node_none
	.no_dead_strip	_txn_body_closest_copy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function txn_body_closest_copy
_txn_body_closest_copy:                 ; @txn_body_closest_copy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	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
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0]
	ldp	x8, x23, [x0, #24]
	ldr	x22, [x23, #24]
	str	xzr, [sp, #48]
	str	xzr, [x8]
	ldr	x8, [x0, #8]
	str	xzr, [x8]
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x4, [x23]
	str	x4, [sp, #64]
	b	LBB0_3
LBB0_2:
	ldr	w2, [x23, #8]
	ldr	w4, [x20]
	add	x0, sp, #64
	mov	x1, x22
	mov	x3, x20
	bl	_svn_fs_base__rev_get_txn_id
	bl	_SVN_ERR
	ldr	x4, [sp, #64]
LBB0_3:
	ldr	w6, [x20]
	sub	x0, x29, #56
	mov	x1, x23
	mov	x2, x21
	mov	w3, #0
	mov	x5, x20
	bl	_open_path
	bl	_SVN_ERR
	ldur	x8, [x29, #-56]
	ldr	x0, [x8]
	bl	_svn_fs_base__dag_get_id
	mov	x23, x0
	ldur	x3, [x29, #-56]
	ldr	w5, [x20]
	add	x0, sp, #56
	add	x1, sp, #48
	mov	x2, x22
	mov	x4, x20
	bl	_examine_copy_inheritance
	bl	_SVN_ERR
	ldr	x2, [sp, #56]
	ldrb	w8, [x2]
	cmp	w8, #48
	b.ne	LBB0_5
; %bb.4:
	ldrb	w8, [x2, #1]
	cbz	w8, LBB0_17
LBB0_5:
	ldr	x8, [sp, #48]
	cbnz	x8, LBB0_7
; %bb.6:
	ldr	w4, [x20]
	add	x0, sp, #48
	mov	x1, x22
	mov	x3, x20
	bl	_svn_fs_bdb__get_copy
	bl	_SVN_ERR
	ldr	x8, [sp, #48]
LBB0_7:
	ldr	w2, [x8]
	ldr	w4, [x20]
	add	x0, sp, #32
	mov	x1, x22
	mov	x3, x20
	bl	_svn_fs_base__dag_get_node
	bl	_SVN_ERR
	ldr	x0, [sp, #32]
	bl	_svn_fs_base__dag_get_created_path
	mov	x24, x0
	ldr	x1, [sp, #32]
	ldr	w3, [x20]
	add	x0, sp, #16
	mov	x2, x20
	bl	_svn_fs_base__dag_get_revision
	bl	_SVN_ERR
	ldr	x2, [sp, #16]
	ldr	w4, [x19, #16]
	add	x0, sp, #24
	mov	x1, x22
	mov	x3, x20
	bl	_svn_fs_base__dag_revision_root
	bl	_SVN_ERR
	ldp	x1, x2, [sp, #16]
	ldr	w3, [x19, #16]
	mov	x0, x22
	bl	_make_revision_root
	mov	x22, x0
	ldr	w4, [x20]
	add	x0, sp, #40
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	_get_dag
	cbz	x0, LBB0_11
; %bb.8:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SVN_ERR_FS_NOT_FOUND@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SVN_ERR_FS_NOT_FOUND@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_16
; %bb.9:
Lloh3:
	adrp	x9, _SVN_ERR_FS_NOT_DIRECTORY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SVN_ERR_FS_NOT_DIRECTORY@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_16
; %bb.10:
	bl	_svn_error_trace
	b	LBB0_18
LBB0_11:
	ldr	x0, [sp, #40]
	bl	_svn_fs_base__dag_node_kind
Lloh6:
	adrp	x8, _svn_node_none@GOTPAGE
Lloh7:
	ldr	x8, [x8, _svn_node_none@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_17
; %bb.12:
	ldr	x0, [sp, #40]
	bl	_svn_fs_base__dag_get_id
	mov	x1, x0
	mov	x0, x23
	bl	_svn_fs_base__id_check_related
	cbz	w0, LBB0_17
; %bb.13:
	ldr	x1, [sp, #40]
	ldr	w3, [x20]
	add	x0, sp, #8
	mov	x2, x20
	bl	_svn_fs_base__dag_get_revision
	bl	_SVN_ERR
	ldp	x8, x9, [sp, #8]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.14:
	ldr	x1, [sp, #40]
	ldr	w3, [x20]
	mov	x0, sp
	mov	x2, x20
	bl	_svn_fs_base__dag_get_predecessor_id
	bl	_SVN_ERR
	ldr	x8, [sp]
	cbz	x8, LBB0_17
LBB0_15:
	ldr	w0, [x19, #16]
	mov	x1, x24
	bl	_apr_pstrdup
	ldr	x8, [x19, #24]
	str	x0, [x8]
	ldr	x8, [x19, #8]
	str	x22, [x8]
	b	LBB0_17
LBB0_16:
	bl	_svn_error_clear
LBB0_17:
Lloh9:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	x0, [x8]
LBB0_18:
	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
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
	.comm	_SVN_ERR_FS_NOT_FOUND,8,3       ; @SVN_ERR_FS_NOT_FOUND
	.comm	_SVN_ERR_FS_NOT_DIRECTORY,8,3   ; @SVN_ERR_FS_NOT_DIRECTORY
	.comm	_svn_node_none,8,3              ; @svn_node_none
	.no_dead_strip	_txn_body_closest_copy
.subsections_via_symbols
