	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ResourceOwnerForgetLock        ## -- Begin function ResourceOwnerForgetLock
	.p2align	4, 0x90
_ResourceOwnerForgetLock:               ## @ResourceOwnerForgetLock
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rdi), %eax
	movq	_MAX_RESOWNER_LOCKS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_5
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testl	%eax, %eax
	setg	%dil
	callq	_Assert
	movl	(%rbx), %eax
	movq	%rax, %rdx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testl	%edx, %edx
	jle	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	-1(%rdx), %rsi
	movq	8(%rbx), %rcx
	cmpq	%r14, -8(%rcx,%rdx,8)
	movq	%rsi, %rdx
	jne	LBB0_2
## %bb.4:
	movl	%esi, %edx
	movslq	%eax, %rsi
	decl	%eax
	movq	-8(%rcx,%rsi,8), %rsi
	movq	%rsi, (%rcx,%rdx,8)
	movl	%eax, (%rbx)
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_elog                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_RESOWNER_LOCKS,4,2         ## @MAX_RESOWNER_LOCKS
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lock reference %p is not owned by resource owner %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ResourceOwnerForgetLock        ; -- Begin function ResourceOwnerForgetLock
	.p2align	2
_ResourceOwnerForgetLock:               ; @ResourceOwnerForgetLock
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MAX_RESOWNER_LOCKS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_RESOWNER_LOCKS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.gt	LBB0_5
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	cmp	w8, #0
	cset	w0, gt
	bl	_Assert
	ldr	w8, [x19]
	mov	x10, x8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w10, #1
	b.lt	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x9, x10, #1
	ldr	x11, [x19, #8]
	add	x10, x11, x10, lsl #3
	ldur	x12, [x10, #-8]
	mov	x10, x9
	cmp	x12, x20
	b.ne	LBB0_2
; %bb.4:
	sub	w8, w8, #1
	ldr	x10, [x11, w8, sxtw #3]
	str	x10, [x11, w9, uxtw #3]
	str	w8, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh3:
	adrp	x8, _ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w3, [x19, #4]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_elog
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_RESOWNER_LOCKS,4,2         ; @MAX_RESOWNER_LOCKS
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lock reference %p is not owned by resource owner %s"

.subsections_via_symbols
