	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function txn_body_lock
_txn_body_lock:                         ## @txn_body_lock
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_svn_node_file@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	8(%rdi), %rax
	movq	$0, (%rax)
	movl	16(%rdi), %esi
	movl	8(%rbx), %ecx
	leaq	-40(%rbp), %rdi
	movq	%rbx, %rdx
	callq	_svn_fs_base__get_path_kind
	movq	%rax, %rdi
	callq	_SVN_ERR
	movq	-40(%rbp), %rax
	movq	_svn_node_dir@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	(%rbx), %rdi
	movl	16(%r14), %esi
	callq	_SVN_FS__ERR_NOT_FILE
	jmp	LBB0_15
LBB0_2:
	movq	_svn_node_none@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movq	(%r14), %rdi
	callq	_SVN_IS_VALID_REVNUM
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	movq	_SVN_ERR_FS_OUT_OF_DATE@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_5:
	movq	(%rbx), %rdi
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.7:
	movq	(%r14), %rdi
	callq	_SVN_IS_VALID_REVNUM
	testq	%rax, %rax
	je	LBB0_16
## %bb.8:
	movl	16(%r14), %esi
	movl	8(%rbx), %ecx
	leaq	-32(%rbp), %rdi
	movq	%rbx, %rdx
	callq	_svn_fs_base__get_path_created_rev
	movq	%rax, %rdi
	callq	_SVN_ERR
	movq	-32(%rbp), %rdi
	callq	_SVN_IS_VALID_REVNUM
	testq	%rax, %rax
	je	LBB0_22
## %bb.9:
	movq	(%r14), %rax
	cmpq	-32(%rbp), %rax
	jge	LBB0_16
## %bb.10:
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_23
LBB0_11:
	callq	_SVN_FS__ERR_NO_USER
	jmp	LBB0_15
LBB0_12:
	movq	_SVN_ERR_FS_NOT_FOUND@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	16(%r14), %ecx
	movl	%ebx, %edi
	xorl	%esi, %esi
	movq	%rax, %rdx
LBB0_14:
	callq	_svn_error_createf
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	48(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_25
## %bb.17:
	movq	(%rbx), %rsi
	movl	8(%rbx), %r8d
	leaq	-32(%rbp), %rdi
	movq	%rbx, %rcx
	callq	_svn_fs_bdb__lock_get
	testq	%rax, %rax
	je	LBB0_20
## %bb.18:
	movq	(%rax), %rcx
	movq	_SVN_ERR_FS_LOCK_EXPIRED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_24
## %bb.19:
	movq	_SVN_ERR_FS_BAD_LOCK_TOKEN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_24
LBB0_20:
	movq	%rax, %rdi
	callq	_SVN_ERR
	movq	-32(%rbp), %rax
	movl	40(%rax), %edi
	movl	16(%r14), %esi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_25
## %bb.21:
	movq	_SVN_ERR_FS_BAD_LOCK_TOKEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	L_.str.2(%rip), %rdx
	xorl	%esi, %esi
	callq	_svn_error_create
	jmp	LBB0_15
LBB0_22:
	leaq	L_.str(%rip), %rdx
LBB0_23:
	movq	_SVN_ERR_FS_OUT_OF_DATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r14), %ecx
	xorl	%esi, %esi
	jmp	LBB0_14
LBB0_24:
	movq	%rax, %rdi
	callq	_svn_error_clear
LBB0_25:
	movl	16(%r14), %esi
	movl	8(%rbx), %ecx
	leaq	-32(%rbp), %rdi
	movq	%rbx, %rdx
	callq	_svn_fs_base__get_lock_helper
	movq	%rax, %rdi
	callq	_SVN_ERR
	movq	-32(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_28
## %bb.26:
	cmpl	$0, 56(%r14)
	je	LBB0_32
## %bb.27:
	movq	(%rsi), %rdi
	movl	40(%rsi), %esi
	movq	%rbx, %rdx
	callq	_delete_lock_and_token
	movq	%rax, %rdi
	callq	_SVN_ERR
LBB0_28:
	movl	40(%r14), %edi
	callq	_svn_lock_create
	movq	%rax, %r15
	movq	48(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_30
## %bb.29:
	movl	40(%r14), %edi
	callq	_apr_pstrdup
	movq	%rax, (%r15)
	jmp	LBB0_31
LBB0_30:
	movq	(%rbx), %rsi
	movl	40(%r14), %edx
	movq	%r15, %rdi
	callq	_svn_fs_base__generate_lock_token
	movq	%rax, %rdi
	callq	_SVN_ERR
LBB0_31:
	movl	16(%r14), %eax
	movl	%eax, 40(%r15)
	movl	40(%r14), %edi
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rsi
	callq	_apr_pstrdup
	movq	%rax, 32(%r15)
	movl	40(%r14), %edi
	movq	32(%r14), %rsi
	callq	_apr_pstrdup
	movq	%rax, 24(%r15)
	movl	24(%r14), %eax
	movl	%eax, 16(%r15)
	xorl	%eax, %eax
	callq	_apr_time_now
	movl	%eax, 12(%r15)
	movl	20(%r14), %eax
	movl	%eax, 8(%r15)
	movq	(%r15), %rsi
	movl	16(%r14), %edx
	movq	%r15, %rdi
	movq	%rbx, %rcx
	callq	_add_lock_and_token
	movq	%rax, %rdi
	callq	_SVN_ERR
	movq	8(%r14), %rax
	movq	%r15, (%rax)
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_15
LBB0_32:
	movq	(%rbx), %rdi
	callq	_SVN_FS__ERR_PATH_ALREADY_LOCKED
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_svn_node_file,8,3              ## @svn_node_file
	.comm	_svn_node_dir,8,3               ## @svn_node_dir
	.comm	_svn_node_none,8,3              ## @svn_node_none
	.comm	_SVN_ERR_FS_OUT_OF_DATE,4,2     ## @SVN_ERR_FS_OUT_OF_DATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Path '%s' doesn't exist in HEAD revision"

	.comm	_SVN_ERR_FS_NOT_FOUND,4,2       ## @SVN_ERR_FS_NOT_FOUND
L_.str.1:                               ## @.str.1
	.asciz	"Lock failed: newer version of '%s' exists"

	.comm	_SVN_ERR_FS_LOCK_EXPIRED,8,3    ## @SVN_ERR_FS_LOCK_EXPIRED
	.comm	_SVN_ERR_FS_BAD_LOCK_TOKEN,8,3  ## @SVN_ERR_FS_BAD_LOCK_TOKEN
L_.str.2:                               ## @.str.2
	.asciz	"Lock failed: token refers to existing lock with non-matching path."

	.comm	_SVN_NO_ERROR,8,3               ## @SVN_NO_ERROR
	.no_dead_strip	_txn_body_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function txn_body_lock
_txn_body_lock:                         ; @txn_body_lock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _svn_node_file@GOTPAGE
Lloh1:
	ldr	x8, [x8, _svn_node_file@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	ldr	x8, [x0, #8]
	str	xzr, [x8]
	ldr	w1, [x0, #16]
	ldr	w3, [x20, #8]
	add	x0, sp, #8
	mov	x2, x20
	bl	_svn_fs_base__get_path_kind
	bl	_SVN_ERR
	ldr	x8, [sp, #8]
Lloh3:
	adrp	x9, _svn_node_dir@GOTPAGE
Lloh4:
	ldr	x9, [x9, _svn_node_dir@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [x20]
	ldr	w1, [x19, #16]
	bl	_SVN_FS__ERR_NOT_FILE
	b	LBB0_15
LBB0_2:
Lloh6:
	adrp	x9, _svn_node_none@GOTPAGE
Lloh7:
	ldr	x9, [x9, _svn_node_none@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	x0, [x19]
	bl	_SVN_IS_VALID_REVNUM
	cbz	x0, LBB0_12
; %bb.4:
Lloh9:
	adrp	x8, _SVN_ERR_FS_OUT_OF_DATE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SVN_ERR_FS_OUT_OF_DATE@GOTPAGEOFF]
	b	LBB0_13
LBB0_5:
	ldr	x0, [x20]
	ldr	x8, [x0]
	cbz	x8, LBB0_11
; %bb.6:
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.7:
	ldr	x0, [x19]
	bl	_SVN_IS_VALID_REVNUM
	cbz	x0, LBB0_16
; %bb.8:
	ldr	w1, [x19, #16]
	ldr	w3, [x20, #8]
	mov	x0, sp
	mov	x2, x20
	bl	_svn_fs_base__get_path_created_rev
	bl	_SVN_ERR
	ldr	x0, [sp]
	bl	_SVN_IS_VALID_REVNUM
	cbz	x0, LBB0_22
; %bb.9:
	ldr	x8, [x19]
	ldr	x9, [sp]
	cmp	x8, x9
	b.ge	LBB0_16
; %bb.10:
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_23
LBB0_11:
	bl	_SVN_FS__ERR_NO_USER
	b	LBB0_15
LBB0_12:
Lloh13:
	adrp	x8, _SVN_ERR_FS_NOT_FOUND@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SVN_ERR_FS_NOT_FOUND@GOTPAGEOFF]
LBB0_13:
	ldr	w20, [x8]
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x2, x0
	ldr	w3, [x19, #16]
	mov	x0, x20
LBB0_14:
	mov	x1, #0
	bl	_svn_error_createf
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_16:
	ldr	x2, [x19, #48]
	cbz	x2, LBB0_25
; %bb.17:
	ldr	x1, [x20]
	ldr	w4, [x20, #8]
	mov	x0, sp
	mov	x3, x20
	bl	_svn_fs_bdb__lock_get
Lloh17:
	adrp	x21, _SVN_ERR_FS_BAD_LOCK_TOKEN@GOTPAGE
Lloh18:
	ldr	x21, [x21, _SVN_ERR_FS_BAD_LOCK_TOKEN@GOTPAGEOFF]
	cbz	x0, LBB0_20
; %bb.18:
	ldr	x8, [x0]
Lloh19:
	adrp	x9, _SVN_ERR_FS_LOCK_EXPIRED@GOTPAGE
Lloh20:
	ldr	x9, [x9, _SVN_ERR_FS_LOCK_EXPIRED@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_24
; %bb.19:
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_24
LBB0_20:
	bl	_SVN_ERR
	ldr	x8, [sp]
	ldr	w0, [x8, #40]
	ldr	w1, [x19, #16]
	bl	_strcmp
	cbz	x0, LBB0_25
; %bb.21:
	ldr	x0, [x21]
Lloh22:
	adrp	x2, l_.str.2@PAGE
Lloh23:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x1, #0
	bl	_svn_error_create
	b	LBB0_15
LBB0_22:
Lloh24:
	adrp	x2, l_.str@PAGE
Lloh25:
	add	x2, x2, l_.str@PAGEOFF
LBB0_23:
Lloh26:
	adrp	x8, _SVN_ERR_FS_OUT_OF_DATE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SVN_ERR_FS_OUT_OF_DATE@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	ldr	w3, [x19, #16]
	b	LBB0_14
LBB0_24:
	bl	_svn_error_clear
LBB0_25:
	ldr	w1, [x19, #16]
	ldr	w3, [x20, #8]
	mov	x0, sp
	mov	x2, x20
	bl	_svn_fs_base__get_lock_helper
	bl	_SVN_ERR
	ldr	x1, [sp]
	cbz	x1, LBB0_28
; %bb.26:
	ldr	w8, [x19, #56]
	cbz	w8, LBB0_32
; %bb.27:
	ldr	x0, [x1]
	ldr	w1, [x1, #40]
	mov	x2, x20
	bl	_delete_lock_and_token
	bl	_SVN_ERR
LBB0_28:
	ldr	w0, [x19, #40]
	bl	_svn_lock_create
	mov	x21, x0
	ldr	x1, [x19, #48]
	cbz	x1, LBB0_30
; %bb.29:
	ldr	w0, [x19, #40]
	bl	_apr_pstrdup
	str	x0, [x21]
	b	LBB0_31
LBB0_30:
	ldr	x1, [x20]
	ldr	w2, [x19, #40]
	mov	x0, x21
	bl	_svn_fs_base__generate_lock_token
	bl	_SVN_ERR
LBB0_31:
	ldr	w8, [x19, #16]
	str	w8, [x21, #40]
	ldr	w0, [x19, #40]
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x1, [x8]
	bl	_apr_pstrdup
	str	x0, [x21, #32]
	ldr	w0, [x19, #40]
	ldr	x1, [x19, #32]
	bl	_apr_pstrdup
	str	x0, [x21, #24]
	ldr	w8, [x19, #24]
	str	w8, [x21, #16]
	bl	_apr_time_now
	str	w0, [x21, #12]
	ldr	w8, [x19, #20]
	str	w8, [x21, #8]
	ldr	x1, [x21]
	ldr	w2, [x19, #16]
	mov	x0, x21
	mov	x3, x20
	bl	_add_lock_and_token
	bl	_SVN_ERR
	ldr	x8, [x19, #8]
	str	x21, [x8]
Lloh29:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh31:
	ldr	x0, [x8]
	b	LBB0_15
LBB0_32:
	ldr	x0, [x20]
	bl	_SVN_FS__ERR_PATH_ALREADY_LOCKED
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_svn_node_file,8,3              ; @svn_node_file
	.comm	_svn_node_dir,8,3               ; @svn_node_dir
	.comm	_svn_node_none,8,3              ; @svn_node_none
	.comm	_SVN_ERR_FS_OUT_OF_DATE,4,2     ; @SVN_ERR_FS_OUT_OF_DATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Path '%s' doesn't exist in HEAD revision"

	.comm	_SVN_ERR_FS_NOT_FOUND,4,2       ; @SVN_ERR_FS_NOT_FOUND
l_.str.1:                               ; @.str.1
	.asciz	"Lock failed: newer version of '%s' exists"

	.comm	_SVN_ERR_FS_LOCK_EXPIRED,8,3    ; @SVN_ERR_FS_LOCK_EXPIRED
	.comm	_SVN_ERR_FS_BAD_LOCK_TOKEN,8,3  ; @SVN_ERR_FS_BAD_LOCK_TOKEN
l_.str.2:                               ; @.str.2
	.asciz	"Lock failed: token refers to existing lock with non-matching path."

	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
	.no_dead_strip	_txn_body_lock
.subsections_via_symbols
