	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function FastPathGrantRelationLock
_FastPathGrantRelationLock:             ## @FastPathGrantRelationLock
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_FP_LOCK_SLOTS_PER_BACKEND@GOTPCREL(%rip), %r13
	movq	(%r13), %r14
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	movq	_MyProc@GOTPCREL(%rip), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movq	(%r13), %rcx
	movq	%rsi, %r14
	cmpq	%rcx, %rbx
	jae	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	movq	%rbx, %rsi
	callq	_FAST_PATH_GET_BITS
	movq	%rbx, %rsi
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %rdi
	movq	(%rdi), %rax
	movq	%r14, %rsi
	cmpq	%r15, (%rax,%rbx,8)
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rsi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edx
	callq	_FAST_PATH_CHECK_LOCKMODE
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movq	(%r12), %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_FAST_PATH_SET_LOCKMODE
	jmp	LBB0_9
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_7:
	xorl	%eax, %eax
	cmpq	%rcx, %rsi
	jae	LBB0_10
## %bb.8:
	movq	(%r12), %rdi
	movq	(%rdi), %rax
	movq	%r15, (%rax,%rsi,8)
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_FAST_PATH_SET_LOCKMODE
	movq	_FastPathLocalUseCount@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_9:
	movl	$1, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FP_LOCK_SLOTS_PER_BACKEND,8,3  ## @FP_LOCK_SLOTS_PER_BACKEND
	.comm	_MyProc,8,3                     ## @MyProc
	.comm	_FastPathLocalUseCount,4,2      ## @FastPathLocalUseCount
	.no_dead_strip	_FastPathGrantRelationLock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function FastPathGrantRelationLock
_FastPathGrantRelationLock:             ; @FastPathGrantRelationLock
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x23, _FP_LOCK_SLOTS_PER_BACKEND@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FP_LOCK_SLOTS_PER_BACKEND@GOTPAGEOFF]
	ldr	x24, [x23]
	cbz	x24, LBB0_9
; %bb.1:
	mov	x19, x1
	mov	x21, x0
	mov	x20, #0
Lloh2:
	adrp	x22, _MyProc@GOTPAGE
Lloh3:
	ldr	x22, [x22, _MyProc@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	ldr	x8, [x23]
	mov	x24, x1
	cmp	x20, x8
	b.hs	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	mov	x1, x20
	bl	_FAST_PATH_GET_BITS
	mov	x1, x20
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x22]
	ldr	x8, [x0]
	ldr	x8, [x8, x20, lsl #3]
	mov	x1, x24
	cmp	x8, x21
	b.ne	LBB0_2
; %bb.5:
	mov	x1, x20
	mov	x2, x19
	bl	_FAST_PATH_CHECK_LOCKMODE
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	ldr	x0, [x22]
	mov	x1, x20
	mov	x2, x19
	bl	_FAST_PATH_SET_LOCKMODE
	b	LBB0_8
LBB0_6:
	cmp	x1, x8
	b.hs	LBB0_9
; %bb.7:
	ldr	x0, [x22]
	ldr	x8, [x0]
	str	x21, [x8, x1, lsl #3]
	mov	x2, x19
	bl	_FAST_PATH_SET_LOCKMODE
Lloh4:
	adrp	x8, _FastPathLocalUseCount@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FastPathLocalUseCount@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_8:
	mov	w0, #1
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FP_LOCK_SLOTS_PER_BACKEND,8,3  ; @FP_LOCK_SLOTS_PER_BACKEND
	.comm	_MyProc,8,3                     ; @MyProc
	.comm	_FastPathLocalUseCount,4,2      ; @FastPathLocalUseCount
	.no_dead_strip	_FastPathGrantRelationLock
.subsections_via_symbols
