	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_unlock
_check_unlock:                          ## @check_unlock
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rcx), %rsi
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-40(%rbp), %rdi
	movq	%r15, %rdx
	movl	%ecx, %r8d
	callq	_get_lock
	movq	%rax, (%r14)
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	cmpl	$0, 8(%rbx)
	jne	LBB0_7
## %bb.2:
	movq	-40(%rbp), %rax
	movl	4(%rax), %esi
	movq	%r12, %rdi
	callq	_strcmp
	movq	(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r15, %rsi
	callq	_SVN_FS__ERR_NO_SUCH_LOCK
	jmp	LBB0_6
LBB0_4:
	movq	(%rdi), %rax
	movq	(%rax), %rdi
	movq	-40(%rbp), %rax
	movl	(%rax), %esi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	(%rbx), %rdi
	movq	(%rdi), %rax
	movq	(%rax), %rsi
	movq	-40(%rbp), %rax
	movl	(%rax), %edx
	callq	_SVN_FS__ERR_LOCK_OWNER_MISMATCH
LBB0_6:
	movq	%rax, (%r14)
LBB0_7:
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_SVN_NO_ERROR,8,3               ## @SVN_NO_ERROR
	.no_dead_strip	_check_unlock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_unlock
_check_unlock:                          ; @check_unlock
	.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, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x1, [x3]
Lloh0:
	adrp	x8, _TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	add	x0, sp, #8
	mov	x2, x21
	mov	x4, x3
	bl	_get_lock
	str	x0, [x19]
	cbnz	x0, LBB0_7
; %bb.1:
	ldr	w8, [x20, #8]
	cbnz	w8, LBB0_7
; %bb.2:
	ldr	x8, [sp, #8]
	ldr	w1, [x8, #4]
	mov	x0, x22
	bl	_strcmp
	mov	x8, x0
	ldr	x0, [x20]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x1, x21
	bl	_SVN_FS__ERR_NO_SUCH_LOCK
	b	LBB0_6
LBB0_4:
	ldr	x8, [x0]
	ldr	x0, [x8]
	ldr	x8, [sp, #8]
	ldr	w1, [x8]
	bl	_strcmp
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x0, [x20]
	ldr	x8, [x0]
	ldr	x1, [x8]
	ldr	x8, [sp, #8]
	ldr	w2, [x8]
	bl	_SVN_FS__ERR_LOCK_OWNER_MISMATCH
LBB0_6:
	str	x0, [x19]
LBB0_7:
Lloh3:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
	.no_dead_strip	_check_unlock
.subsections_via_symbols
