	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_io_lock_open_file          ## -- Begin function svn_io_lock_open_file
	.p2align	4, 0x90
_svn_io_lock_open_file:                 ## @svn_io_lock_open_file
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdi, %r12
	cmpq	$1, %rsi
	movl	$129, %ebx
	sbbl	$0, %ebx
	xorl	%r13d, %r13d
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	_APR_FLOCK_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_2:
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	callq	_apr_file_name_get
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %r15
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_svn_error_wrap_apr
	jmp	LBB0_12
LBB0_4:
	orl	%ebx, %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_apr_file_lock
	movq	%rax, %r15
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_apr_file_lock
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_FILE_LOCK_RETRY_LOOP
	testq	%r15, %r15
	je	LBB0_11
## %bb.5:
	movq	_APR_FLOCK_TYPEMASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	cmpl	$129, %r13d
	je	LBB0_9
## %bb.6:
	cmpl	$128, %r13d
	jne	LBB0_10
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_8
LBB0_9:
	leaq	L_.str.2(%rip), %rdi
LBB0_8:
	callq	__
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi
	movq	%r14, %rsi
	callq	_try_utf8_from_internal_style
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_svn_error_wrap_apr
	jmp	LBB0_12
LBB0_10:
	xorl	%eax, %eax
	callq	_SVN_ERR_MALFUNCTION
LBB0_11:
	movq	_file_clear_locks@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_apr_pool_cleanup_null@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_apr_pool_cleanup_register
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_APR_FLOCK_NONBLOCK,4,2         ## @APR_FLOCK_NONBLOCK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't get file name"

	.comm	_APR_FLOCK_TYPEMASK,4,2         ## @APR_FLOCK_TYPEMASK
L_.str.1:                               ## @.str.1
	.asciz	"Can't get shared lock on file '%s'"

L_.str.2:                               ## @.str.2
	.asciz	"Can't get exclusive lock on file '%s'"

	.comm	_file_clear_locks,4,2           ## @file_clear_locks
	.comm	_apr_pool_cleanup_null,4,2      ## @apr_pool_cleanup_null
	.comm	_SVN_NO_ERROR,8,3               ## @SVN_NO_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_io_lock_open_file          ; -- Begin function svn_io_lock_open_file
	.p2align	2
_svn_io_lock_open_file:                 ; @svn_io_lock_open_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x3
	mov	x20, x0
	cmp	x1, #0
	mov	w8, #128
	cinc	w22, w8, ne
Lloh0:
	adrp	x8, _APR_FLOCK_NONBLOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _APR_FLOCK_NONBLOCK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	x2, #0
	csel	w23, wzr, w8, eq
	add	x0, sp, #8
	mov	x1, x20
	bl	_apr_file_name_get
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x21
	bl	_svn_error_wrap_apr
	b	LBB0_10
LBB0_2:
	orr	w22, w23, w22
	mov	x0, x20
	mov	x1, x22
	bl	_apr_file_lock
	mov	x21, x0
	mov	x0, x20
	mov	x1, x22
	bl	_apr_file_lock
	mov	x1, x0
	mov	x0, x21
	bl	_FILE_LOCK_RETRY_LOOP
	cbz	x21, LBB0_9
; %bb.3:
Lloh5:
	adrp	x8, _APR_FLOCK_TYPEMASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _APR_FLOCK_TYPEMASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	and	w8, w8, w22
	cmp	w8, #129
	b.eq	LBB0_6
; %bb.4:
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.5:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_7:
	bl	__
	mov	x20, x0
	ldr	x0, [sp, #8]
	mov	x1, x19
	bl	_try_utf8_from_internal_style
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x21
	mov	x1, x20
	bl	_svn_error_wrap_apr
	b	LBB0_10
LBB0_8:
	bl	_SVN_ERR_MALFUNCTION
LBB0_9:
Lloh12:
	adrp	x8, _file_clear_locks@GOTPAGE
Lloh13:
	ldr	x8, [x8, _file_clear_locks@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x8, _apr_pool_cleanup_null@GOTPAGE
Lloh16:
	ldr	x8, [x8, _apr_pool_cleanup_null@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_apr_pool_cleanup_register
Lloh18:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	x0, [x8]
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_APR_FLOCK_NONBLOCK,4,2         ; @APR_FLOCK_NONBLOCK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't get file name"

	.comm	_APR_FLOCK_TYPEMASK,4,2         ; @APR_FLOCK_TYPEMASK
l_.str.1:                               ; @.str.1
	.asciz	"Can't get shared lock on file '%s'"

l_.str.2:                               ; @.str.2
	.asciz	"Can't get exclusive lock on file '%s'"

	.comm	_file_clear_locks,4,2           ; @file_clear_locks
	.comm	_apr_pool_cleanup_null,4,2      ; @apr_pool_cleanup_null
	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
.subsections_via_symbols
