	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function FastPathGetRelationLockEntry
_FastPathGetRelationLockEntry:          ## @FastPathGetRelationLockEntry
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_LockMethods@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_DEFAULT_LOCKMETHOD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	leaq	16(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rdi
	callq	_LockHashPartitionLock
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%r15), %r14
	movq	_MyProc@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	$8, %rdi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movq	_FP_LOCK_SLOTS_PER_BACKEND@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	%rax, %rbx
	jae	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	movq	(%rdi), %rcx
	cmpq	(%rcx,%rbx,8), %r14
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rsi
	callq	_FAST_PATH_GET_BITS
	testq	%rax, %rax
	je	LBB0_4
## %bb.11:
	movq	8(%r15), %r12
	movq	(%r13), %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_FAST_PATH_CHECK_LOCKMODE
	testl	%eax, %eax
	je	LBB0_6
## %bb.12:
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_LWLockAcquire
	movq	(%r13), %rsi
	movq	(%r15), %rcx
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %r8
	callq	_SetupLockInTable
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	callq	_LWLockRelease
	movq	(%r13), %rdi
	addq	$8, %rdi
	callq	_LWLockRelease
	movq	_ERROR@GOTPCREL(%rip), %rax
	movq	%r12, %r14
	movl	(%rax), %r12d
	movq	_ERRCODE_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	leaq	L_.str.1(%rip), %rdi
	callq	_errhint
	movl	%r12d, %edi
	movq	%r14, %r12
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_ereport
LBB0_14:
	movl	(%r15), %edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_GrantLock
	movq	(%r13), %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_FAST_PATH_CLEAR_LOCKMODE
	movq	%r14, %rdi
	callq	_LWLockRelease
	movq	(%r13), %rdi
	addq	$8, %rdi
	jmp	LBB0_15
LBB0_6:
	movq	(%r13), %rdi
	addq	$8, %rdi
	callq	_LWLockRelease
	movq	_LW_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_LWLockAcquire
	movq	_LockMethodLockHash@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rdx
	movq	_HASH_FIND@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	xorl	%r8d, %r8d
	callq	_hash_search_with_hash_value
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_elog
LBB0_8:
	movq	%rbx, -72(%rbp)
	movq	(%r13), %rax
	movq	%rax, -80(%rbp)
	movq	(%r15), %rsi
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ProcLockHashCode
	movq	_LockMethodProcLockHash@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%r14), %ecx
	movq	%rbx, %rsi
	movq	%rax, %rdx
	xorl	%r8d, %r8d
	callq	_hash_search_with_hash_value
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_elog
LBB0_10:
	movq	%r12, %rdi
LBB0_15:
	callq	_LWLockRelease
	movq	%r15, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LockMethods,8,3                ## @LockMethods
	.comm	_DEFAULT_LOCKMETHOD,8,3         ## @DEFAULT_LOCKMETHOD
	.comm	_MyProc,8,3                     ## @MyProc
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_FP_LOCK_SLOTS_PER_BACKEND,8,3  ## @FP_LOCK_SLOTS_PER_BACKEND
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_OUT_OF_MEMORY,4,2      ## @ERRCODE_OUT_OF_MEMORY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of shared memory"

L_.str.1:                               ## @.str.1
	.asciz	"You might need to increase max_locks_per_transaction."

	.comm	_LW_SHARED,4,2                  ## @LW_SHARED
	.comm	_LockMethodLockHash,4,2         ## @LockMethodLockHash
	.comm	_HASH_FIND,4,2                  ## @HASH_FIND
L_.str.2:                               ## @.str.2
	.asciz	"failed to re-find shared lock object"

	.comm	_LockMethodProcLockHash,4,2     ## @LockMethodProcLockHash
L_.str.3:                               ## @.str.3
	.asciz	"failed to re-find shared proclock object"

	.no_dead_strip	_FastPathGetRelationLockEntry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function FastPathGetRelationLockEntry
_FastPathGetRelationLockEntry:          ; @FastPathGetRelationLockEntry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
Lloh0:
	adrp	x8, _LockMethods@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LockMethods@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _DEFAULT_LOCKMETHOD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DEFAULT_LOCKMETHOD@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w23, [x8, x9, lsl #2]
	ldr	x0, [x0]
	bl	_LockHashPartitionLock
	mov	x19, x0
	mov	x22, x20
	ldr	x24, [x22, #16]!
Lloh6:
	adrp	x25, _MyProc@GOTPAGE
Lloh7:
	ldr	x25, [x25, _MyProc@GOTPAGEOFF]
	ldr	x8, [x25]
	add	x0, x8, #8
Lloh8:
	adrp	x26, _LW_EXCLUSIVE@GOTPAGE
Lloh9:
	ldr	x26, [x26, _LW_EXCLUSIVE@GOTPAGEOFF]
	ldr	w1, [x26]
	bl	_LWLockAcquire
Lloh10:
	adrp	x27, _FP_LOCK_SLOTS_PER_BACKEND@GOTPAGE
Lloh11:
	ldr	x27, [x27, _FP_LOCK_SLOTS_PER_BACKEND@GOTPAGEOFF]
	ldr	x8, [x27]
	cbz	x8, LBB0_10
; %bb.1:
	mov	x21, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x27]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	cmp	x21, x8
	b.hs	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x25]
	ldr	x9, [x0]
	ldr	x9, [x9, x21, lsl #3]
	cmp	x24, x9
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x21
	bl	_FAST_PATH_GET_BITS
	cbz	x0, LBB0_2
; %bb.6:
	ldr	x24, [x20, #8]
	ldr	x0, [x25]
	mov	x1, x21
	mov	x2, x24
	bl	_FAST_PATH_CHECK_LOCKMODE
	cbz	w0, LBB0_10
; %bb.7:
	ldr	w1, [x26]
	mov	x0, x19
	bl	_LWLockAcquire
	ldr	x1, [x25]
	ldr	x3, [x20]
	mov	x0, x23
	mov	x2, x22
	mov	x4, x24
	bl	_SetupLockInTable
	mov	x20, x0
	cbnz	x0, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_LWLockRelease
	ldr	x8, [x25]
	add	x0, x8, #8
	bl	_LWLockRelease
Lloh12:
	adrp	x8, _ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w22, [x8]
Lloh15:
	adrp	x8, _ERRCODE_OUT_OF_MEMORY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERRCODE_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_errcode
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errhint
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
LBB0_9:
	ldr	w0, [x20]
	mov	x1, x20
	mov	x2, x24
	bl	_GrantLock
	ldr	x0, [x25]
	mov	x1, x21
	mov	x2, x24
	bl	_FAST_PATH_CLEAR_LOCKMODE
	mov	x0, x19
	bl	_LWLockRelease
	ldr	x8, [x25]
	add	x0, x8, #8
	b	LBB0_15
LBB0_10:
	ldr	x8, [x25]
	add	x0, x8, #8
	bl	_LWLockRelease
Lloh22:
	adrp	x8, _LW_SHARED@GOTPAGE
Lloh23:
	ldr	x8, [x8, _LW_SHARED@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_LWLockAcquire
Lloh25:
	adrp	x8, _LockMethodLockHash@GOTPAGE
Lloh26:
	ldr	x8, [x8, _LockMethodLockHash@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	ldr	x2, [x20]
Lloh28:
	adrp	x23, _HASH_FIND@GOTPAGE
Lloh29:
	ldr	x23, [x23, _HASH_FIND@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x1, x22
	mov	x4, #0
	bl	_hash_search_with_hash_value
	mov	x21, x0
	cbnz	x0, LBB0_12
; %bb.11:
Lloh30:
	adrp	x8, _ERROR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
Lloh33:
	adrp	x1, l_.str.2@PAGE
Lloh34:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_elog
LBB0_12:
	ldr	x8, [x25]
	stp	x8, x21, [sp]
	ldr	x1, [x20]
	mov	x0, sp
	bl	_ProcLockHashCode
	mov	x2, x0
Lloh35:
	adrp	x8, _LockMethodProcLockHash@GOTPAGE
Lloh36:
	ldr	x8, [x8, _LockMethodProcLockHash@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	ldr	w3, [x23]
	mov	x1, sp
	mov	x4, #0
	bl	_hash_search_with_hash_value
	mov	x20, x0
	cbnz	x0, LBB0_14
; %bb.13:
Lloh38:
	adrp	x8, _ERROR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
Lloh41:
	adrp	x1, l_.str.3@PAGE
Lloh42:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_elog
LBB0_14:
	mov	x0, x19
LBB0_15:
	bl	_LWLockRelease
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_LockMethods,8,3                ; @LockMethods
	.comm	_DEFAULT_LOCKMETHOD,8,3         ; @DEFAULT_LOCKMETHOD
	.comm	_MyProc,8,3                     ; @MyProc
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_FP_LOCK_SLOTS_PER_BACKEND,8,3  ; @FP_LOCK_SLOTS_PER_BACKEND
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_OUT_OF_MEMORY,4,2      ; @ERRCODE_OUT_OF_MEMORY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of shared memory"

l_.str.1:                               ; @.str.1
	.asciz	"You might need to increase max_locks_per_transaction."

	.comm	_LW_SHARED,4,2                  ; @LW_SHARED
	.comm	_LockMethodLockHash,4,2         ; @LockMethodLockHash
	.comm	_HASH_FIND,4,2                  ; @HASH_FIND
l_.str.2:                               ; @.str.2
	.asciz	"failed to re-find shared lock object"

	.comm	_LockMethodProcLockHash,4,2     ; @LockMethodProcLockHash
l_.str.3:                               ; @.str.3
	.asciz	"failed to re-find shared proclock object"

	.no_dead_strip	_FastPathGetRelationLockEntry
.subsections_via_symbols
