	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CheckDeadLock
_CheckDeadLock:                         ## @CheckDeadLock
	.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	_NUM_LOCK_PARTITIONS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_LockHashPartitionLockByIndex
	movl	(%r15), %esi
	movl	%eax, %edi
	callq	_LWLockAcquire
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_2
LBB0_3:
	movq	_MyProc@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	cmpq	$0, 16(%rdi)
	je	LBB0_7
## %bb.4:
	cmpq	$0, 8(%rdi)
	je	LBB0_7
## %bb.5:
	callq	_DeadLockCheck
	movq	_deadlock_state@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_DS_HARD_DEADLOCK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	(%rbx), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	setne	%dil
	callq	_Assert
	movq	(%rbx), %rbx
	movq	(%rbx), %rdi
	callq	_LockTagHashCode
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_RemoveFromWaitQueue
LBB0_7:
	movl	(%r14), %ebx
	testl	%ebx, %ebx
	jle	LBB0_10
## %bb.8:
	incl	%ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %edi
	callq	_LockHashPartitionLockByIndex
	movl	%eax, %edi
	callq	_LWLockRelease
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_9
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_LOCK_PARTITIONS,4,2        ## @NUM_LOCK_PARTITIONS
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_MyProc,8,3                     ## @MyProc
	.comm	_deadlock_state,8,3             ## @deadlock_state
	.comm	_DS_HARD_DEADLOCK,8,3           ## @DS_HARD_DEADLOCK
	.comm	_Debug_deadlocks,8,3            ## @Debug_deadlocks
	.no_dead_strip	_CheckDeadLock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CheckDeadLock
_CheckDeadLock:                         ; @CheckDeadLock
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x20, _NUM_LOCK_PARTITIONS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _NUM_LOCK_PARTITIONS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w19, #0
Lloh2:
	adrp	x21, _LW_EXCLUSIVE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _LW_EXCLUSIVE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_LockHashPartitionLockByIndex
	ldr	w1, [x21]
	bl	_LWLockAcquire
	add	w19, w19, #1
	ldr	w8, [x20]
	cmp	w19, w8
	b.lt	LBB0_2
LBB0_3:
Lloh4:
	adrp	x19, _MyProc@GOTPAGE
Lloh5:
	ldr	x19, [x19, _MyProc@GOTPAGEOFF]
	ldr	x0, [x19]
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_7
; %bb.4:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_7
; %bb.5:
	bl	_DeadLockCheck
Lloh6:
	adrp	x8, _deadlock_state@GOTPAGE
Lloh7:
	ldr	x8, [x8, _deadlock_state@GOTPAGEOFF]
Lloh8:
	str	x0, [x8]
Lloh9:
	adrp	x8, _DS_HARD_DEADLOCK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DS_HARD_DEADLOCK@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.6:
	ldr	x8, [x19]
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, ne
	bl	_Assert
	ldr	x19, [x19]
	ldr	x0, [x19]
	bl	_LockTagHashCode
	mov	x1, x0
	mov	x0, x19
	bl	_RemoveFromWaitQueue
LBB0_7:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:
	add	w19, w8, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	sub	w0, w19, #2
	bl	_LockHashPartitionLockByIndex
	bl	_LWLockRelease
	sub	w19, w19, #1
	cmp	w19, #1
	b.hi	LBB0_9
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_LOCK_PARTITIONS,4,2        ; @NUM_LOCK_PARTITIONS
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_MyProc,8,3                     ; @MyProc
	.comm	_deadlock_state,8,3             ; @deadlock_state
	.comm	_DS_HARD_DEADLOCK,8,3           ; @DS_HARD_DEADLOCK
	.comm	_Debug_deadlocks,8,3            ; @Debug_deadlocks
	.no_dead_strip	_CheckDeadLock
.subsections_via_symbols
