	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_io_file_lock2              ## -- Begin function svn_io_file_lock2
	.p2align	4, 0x90
_svn_io_file_lock2:                     ## @svn_io_file_lock2
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %rsi
	movq	_APR_FLOCK_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edi
	testl	%ebx, %ebx
	jne	LBB0_2
## %bb.1:
	movq	_APR_FLOCK_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_2:
	movq	_APR_READ@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	cmpl	%ecx, %edi
	jne	LBB0_4
## %bb.3:
	movq	_APR_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_4:
	orl	(%rax), %edx
	movq	_APR_OS_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-32(%rbp), %rdi
	movq	%r15, %r8
	callq	_svn_io_file_open
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-32(%rbp), %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	movq	%r15, %rcx
	callq	_svn_io_lock_open_file
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_APR_FLOCK_SHARED,4,2           ## @APR_FLOCK_SHARED
	.comm	_APR_FLOCK_EXCLUSIVE,4,2        ## @APR_FLOCK_EXCLUSIVE
	.comm	_APR_READ,4,2                   ## @APR_READ
	.comm	_APR_WRITE,4,2                  ## @APR_WRITE
	.comm	_APR_OS_DEFAULT,4,2             ## @APR_OS_DEFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_io_file_lock2              ; -- Begin function svn_io_file_lock2
	.p2align	2
_svn_io_file_lock2:                     ; @svn_io_file_lock2
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x1, x0
Lloh0:
	adrp	x8, _APR_FLOCK_SHARED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _APR_FLOCK_SHARED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _APR_FLOCK_EXCLUSIVE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _APR_FLOCK_EXCLUSIVE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w21, #0
	csel	w8, w8, w9, eq
Lloh6:
	adrp	x10, _APR_READ@GOTPAGE
Lloh7:
	ldr	x10, [x10, _APR_READ@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _APR_WRITE@GOTPAGE
Lloh10:
	ldr	x11, [x11, _APR_WRITE@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	cmp	w8, w9
	csel	w8, w11, wzr, eq
	orr	w2, w8, w10
Lloh12:
	adrp	x8, _APR_OS_DEFAULT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _APR_OS_DEFAULT@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	add	x0, sp, #8
	mov	x4, x19
	bl	_svn_io_file_open
	bl	_SVN_ERR
	ldr	x0, [sp, #8]
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_svn_io_lock_open_file
	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
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_APR_FLOCK_SHARED,4,2           ; @APR_FLOCK_SHARED
	.comm	_APR_FLOCK_EXCLUSIVE,4,2        ; @APR_FLOCK_EXCLUSIVE
	.comm	_APR_READ,4,2                   ; @APR_READ
	.comm	_APR_WRITE,4,2                  ; @APR_WRITE
	.comm	_APR_OS_DEFAULT,4,2             ; @APR_OS_DEFAULT
.subsections_via_symbols
