	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GrantLockLocal
_GrantLockLocal:                        ## @GrantLockLocal
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	16(%rdi), %rbx
	movl	(%rdi), %eax
	xorl	%edi, %edi
	cmpl	4(%r14), %eax
	setl	%dil
	callq	_Assert
	incl	8(%r14)
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movq	%rax, %rcx
	shlq	$4, %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r15, 8(%rbx,%rdx)
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$16, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_3
## %bb.6:
	movq	%rax, %rcx
	jmp	LBB0_7
LBB0_1:
	xorl	%ecx, %ecx
LBB0_7:
	shlq	$4, %rcx
	movq	%r15, 8(%rbx,%rcx)
	movl	$1, (%rbx,%rcx)
	incl	%eax
	movl	%eax, (%r14)
	testq	%r15, %r15
	je	LBB0_8
## %bb.9:
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ResourceOwnerRememberLock      ## TAILCALL
LBB0_4:
	incl	(%rbx,%rdx)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_GrantLockLocal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GrantLockLocal
_GrantLockLocal:                        ; @GrantLockLocal
	.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	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #16]
	ldp	w8, w9, [x0]
	cmp	w8, w9
	cset	w0, lt
	bl	_Assert
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x10, x8
	mov	x9, x21
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9, #8]
	cmp	x11, x20
	b.eq	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #16
	subs	x10, x10, #1
	b.ne	LBB0_2
; %bb.4:
	mov	x9, x8
	b	LBB0_6
LBB0_5:
	mov	x9, #0
LBB0_6:
	add	x9, x21, x9, lsl #4
	str	x20, [x9, #8]
	mov	w10, #1
	str	w10, [x9]
	add	w8, w8, #1
	str	w8, [x19]
	cbz	x20, LBB0_9
; %bb.7:
	mov	x0, x20
	mov	x1, x19
	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	_ResourceOwnerRememberLock
LBB0_8:
	ldr	w8, [x9]
	add	w8, w8, #1
	str	w8, [x9]
LBB0_9:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_GrantLockLocal
.subsections_via_symbols
