	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LockErrorCleanup               ## -- Begin function LockErrorCleanup
	.p2align	4, 0x90
_LockErrorCleanup:                      ## @LockErrorCleanup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	callq	_HOLD_INTERRUPTS
	xorl	%eax, %eax
	callq	_AbortStrongLockAcquire
	movq	_lockAwaited@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_1
## %bb.3:
	movq	_DEADLOCK_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	$0, -48(%rbp)
	movq	_LOCK_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	$1, -40(%rbp)
	leaq	-48(%rbp), %rdi
	movl	$2, %esi
	callq	_disable_timeouts
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_LockHashPartitionLock
	movq	%rax, %rbx
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_LWLockAcquire
	movq	_MyProc@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	cmpq	$0, 8(%rdi)
	je	LBB0_5
## %bb.4:
	movq	(%r14), %rax
	movl	(%rax), %esi
	callq	_RemoveFromWaitQueue
	jmp	LBB0_7
LBB0_1:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_9
## %bb.2:
	xorl	%eax, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_RESUME_INTERRUPTS              ## TAILCALL
LBB0_5:
	movq	(%rdi), %rax
	movq	_STATUS_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_GrantAwaitedLock
LBB0_7:
	movq	$0, (%r14)
	movq	%rbx, %rdi
	callq	_LWLockRelease
	xorl	%eax, %eax
	callq	_RESUME_INTERRUPTS
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_lockAwaited,8,3                ## @lockAwaited
	.comm	_DEADLOCK_TIMEOUT,4,2           ## @DEADLOCK_TIMEOUT
	.comm	_LOCK_TIMEOUT,4,2               ## @LOCK_TIMEOUT
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_MyProc,8,3                     ## @MyProc
	.comm	_STATUS_OK,8,3                  ## @STATUS_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LockErrorCleanup               ; -- Begin function LockErrorCleanup
	.p2align	2
_LockErrorCleanup:                      ; @LockErrorCleanup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_HOLD_INTERRUPTS
	bl	_AbortStrongLockAcquire
Lloh3:
	adrp	x20, _lockAwaited@GOTPAGE
Lloh4:
	ldr	x20, [x20, _lockAwaited@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_3
; %bb.1:
Lloh5:
	adrp	x8, _DEADLOCK_TIMEOUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DEADLOCK_TIMEOUT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	stp	wzr, w8, [sp, #8]
Lloh8:
	adrp	x8, _LOCK_TIMEOUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LOCK_TIMEOUT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mov	w9, #1
	stp	w9, w8, [sp, #16]
	add	x0, sp, #8
	mov	w1, #2
	bl	_disable_timeouts
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_LockHashPartitionLock
	mov	x19, x0
Lloh11:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_LWLockAcquire
Lloh14:
	adrp	x8, _MyProc@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MyProc@GOTPAGEOFF]
Lloh16:
	ldr	x0, [x8]
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	x8, [x20]
	ldr	w1, [x8]
	bl	_RemoveFromWaitQueue
	b	LBB0_7
LBB0_3:
	ldr	x8, [sp, #24]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_RESUME_INTERRUPTS
LBB0_5:
	ldr	x8, [x0]
Lloh20:
	adrp	x9, _STATUS_OK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _STATUS_OK@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	bl	_GrantAwaitedLock
LBB0_7:
	str	xzr, [x20]
	mov	x0, x19
	bl	_LWLockRelease
	bl	_RESUME_INTERRUPTS
	ldr	x8, [sp, #24]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_lockAwaited,8,3                ; @lockAwaited
	.comm	_DEADLOCK_TIMEOUT,4,2           ; @DEADLOCK_TIMEOUT
	.comm	_LOCK_TIMEOUT,4,2               ; @LOCK_TIMEOUT
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_MyProc,8,3                     ; @MyProc
	.comm	_STATUS_OK,8,3                  ; @STATUS_OK
.subsections_via_symbols
