	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function RemoveLocalLock
_RemoveLocalLock:                       ## @RemoveLocalLock
	.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	%rdi, %r15
	movl	(%rdi), %ebx
	testl	%ebx, %ebx
	jle	LBB0_5
## %bb.1:
	incq	%rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	decq	%rbx
	cmpq	$1, %rbx
	jbe	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %eax
	movq	16(%r15), %rcx
	movq	(%rcx,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rsi
	callq	_ResourceOwnerForgetLock
	jmp	LBB0_4
LBB0_5:
	movl	$0, (%r15)
	movq	16(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_pfree
LBB0_7:
	movq	$0, 16(%r15)
	cmpl	$0, 4(%r15)
	je	LBB0_9
## %bb.8:
	movl	12(%r15), %edi
	callq	_FastPathStrongLockHashPartition
	movq	%rax, %r14
	movq	_FastPathStrongRelationLocks@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	$8, %rdi
	callq	_SpinLockAcquire
	movq	(%rbx), %rax
	movq	(%rax), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax,%r14,8)
	setg	%dil
	callq	_Assert
	movq	(%rbx), %rdi
	movq	(%rdi), %rax
	decq	(%rax,%r14,8)
	movl	$0, 4(%r15)
	addq	$8, %rdi
	callq	_SpinLockRelease
LBB0_9:
	movq	_LockMethodLocalHash@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %r15
	movq	_HASH_REMOVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	callq	_hash_search
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_elog                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FastPathStrongRelationLocks,8,3 ## @FastPathStrongRelationLocks
	.comm	_LockMethodLocalHash,4,2        ## @LockMethodLocalHash
	.comm	_HASH_REMOVE,4,2                ## @HASH_REMOVE
	.comm	_WARNING,4,2                    ## @WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"locallock table corrupted"

	.no_dead_strip	_RemoveLocalLock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function RemoveLocalLock
_RemoveLocalLock:                       ; @RemoveLocalLock
	.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
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	add	x20, x8, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	x20, x20, #1
	cmp	x20, #1
	b.ls	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w20, #2
	ldr	x9, [x19, #16]
	ldr	x0, [x9, w8, uxtw #3]
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x19
	bl	_ResourceOwnerForgetLock
	b	LBB0_2
LBB0_5:
	str	wzr, [x19]
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_pfree
LBB0_7:
	str	xzr, [x19, #16]
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_9
; %bb.8:
	ldr	w0, [x19, #12]
	bl	_FastPathStrongLockHashPartition
	mov	x20, x0
Lloh0:
	adrp	x21, _FastPathStrongRelationLocks@GOTPAGE
Lloh1:
	ldr	x21, [x21, _FastPathStrongRelationLocks@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x0, x8, #8
	bl	_SpinLockAcquire
	ldr	x8, [x21]
	ldr	x8, [x8]
	lsl	x20, x20, #3
	ldr	x8, [x8, x20]
	cmp	x8, #0
	cset	w0, gt
	bl	_Assert
	ldr	x0, [x21]
	ldr	x8, [x0], #8
	ldr	x9, [x8, x20]
	sub	x9, x9, #1
	str	x9, [x8, x20]
	str	wzr, [x19, #4]
	bl	_SpinLockRelease
LBB0_9:
Lloh2:
	adrp	x8, _LockMethodLocalHash@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LockMethodLocalHash@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x1, x19, #8
Lloh5:
	adrp	x8, _HASH_REMOVE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HASH_REMOVE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x3, #0
	bl	_hash_search
	cbz	w0, LBB0_11
; %bb.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
LBB0_11:
Lloh8:
	adrp	x8, _WARNING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WARNING@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	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
	b	_elog
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_FastPathStrongRelationLocks,8,3 ; @FastPathStrongRelationLocks
	.comm	_LockMethodLocalHash,4,2        ; @LockMethodLocalHash
	.comm	_HASH_REMOVE,4,2                ; @HASH_REMOVE
	.comm	_WARNING,4,2                    ; @WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"locallock table corrupted"

	.no_dead_strip	_RemoveLocalLock
.subsections_via_symbols
