	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EvalPlanQualFetchRowMark       ## -- Begin function EvalPlanQualFetchRowMark
	.p2align	4, 0x90
_EvalPlanQualFetchRowMark:              ## @EvalPlanQualFetchRowMark
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	16(%rdi), %rax
	movslq	%esi, %rcx
	movq	-8(%rax,%rcx,8), %r14
	movq	16(%r14), %rbx
	xorl	%edi, %edi
	testq	%r14, %r14
	setne	%dil
	callq	_Assert
	xorl	%edi, %edi
	cmpq	$0, (%r15)
	setne	%dil
	callq	_Assert
	movq	(%rbx), %rdi
	callq	_RowMarkRequiresRowShareLock
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_2:
	movq	8(%rbx), %rax
	cmpq	16(%rbx), %rax
	jne	LBB0_3
LBB0_5:
	movq	(%rbx), %rax
	movq	_ROW_MARK_REFERENCE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.6:
	xorl	%edi, %edi
	cmpq	$0, 32(%rbx)
	setne	%dil
	callq	_Assert
	movq	(%r15), %rdi
	movl	4(%r14), %esi
	leaq	-44(%rbp), %rdx
	callq	_ExecGetJunkAttribute
	xorl	%r13d, %r13d
	cmpl	$0, -44(%rbp)
	jne	LBB0_17
## %bb.7:
	movl	%eax, %r12d
	movq	32(%rbx), %r13
	movq	(%r13), %rax
	movq	(%rax), %rax
	movq	_RELKIND_FOREIGN_TABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.8:
	movl	$0, -60(%rbp)
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_GetFdwRoutineForRelation
	movq	(%rax), %r9
	testq	%r9, %r9
	jne	LBB0_10
## %bb.9:
	movq	%rax, %r13
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_FEATURE_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	32(%rbx), %rdi
	callq	_RelationGetRelationName
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
	movq	(%r13), %r9
LBB0_10:
	movl	8(%r15), %edi
	leaq	-60(%rbp), %r8
	movq	%rbx, %rsi
	movl	%r12d, %edx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	*%r9
	movq	%rbx, %rdi
	callq	_TupIsNull
	testq	%rax, %rax
	je	LBB0_16
## %bb.11:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_elog
	jmp	LBB0_16
LBB0_3:
	movq	(%r15), %rdi
	movl	8(%r14), %esi
	leaq	-44(%rbp), %rdx
	callq	_ExecGetJunkAttribute
	xorl	%r13d, %r13d
	cmpl	$0, -44(%rbp)
	jne	LBB0_17
## %bb.4:
	movl	%eax, %edi
	callq	_DatumGetObjectId
	movq	%rax, %r12
	movq	24(%rbx), %rdi
	callq	_OidIsValid
	movl	%eax, %edi
	callq	_Assert
	cmpq	24(%rbx), %r12
	je	LBB0_5
	jmp	LBB0_17
LBB0_14:
	movq	_ROW_MARK_COPY@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	movq	(%r15), %rdi
	movl	(%r14), %esi
	leaq	-44(%rbp), %rdx
	callq	_ExecGetJunkAttribute
	xorl	%r13d, %r13d
	cmpl	$0, -44(%rbp)
	jne	LBB0_17
## %bb.15:
	movl	%eax, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_ExecStoreHeapTupleDatum
LBB0_16:
	movl	$1, %r13d
LBB0_17:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	%r12d, %edi
	callq	_DatumGetPointer
	movq	_SnapshotAny@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_table_tuple_fetch_row_version
	movl	$1, %r13d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.13:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_elog
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EvalPlanQual doesn't support locking rowmarks"

	.comm	_ROW_MARK_REFERENCE,8,3         ## @ROW_MARK_REFERENCE
	.comm	_RELKIND_FOREIGN_TABLE,8,3      ## @RELKIND_FOREIGN_TABLE
	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ## @ERRCODE_FEATURE_NOT_SUPPORTED
L_.str.1:                               ## @.str.1
	.asciz	"cannot lock rows in foreign table \"%s\""

L_.str.2:                               ## @.str.2
	.asciz	"failed to fetch tuple for EvalPlanQual recheck"

	.comm	_SnapshotAny,4,2                ## @SnapshotAny
	.comm	_ROW_MARK_COPY,8,3              ## @ROW_MARK_COPY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EvalPlanQualFetchRowMark       ; -- Begin function EvalPlanQualFetchRowMark
	.p2align	2
_EvalPlanQualFetchRowMark:              ; @EvalPlanQualFetchRowMark
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x20, x0
	ldr	x8, [x0, #16]
	sub	w9, w1, #1
	ldr	x23, [x8, w9, sxtw #3]
	ldr	x21, [x23, #16]
	cmp	x23, #0
	cset	w0, ne
	bl	_Assert
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w0, ne
	bl	_Assert
	ldr	x0, [x21]
	bl	_RowMarkRequiresRowShareLock
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_2:
	ldp	x8, x9, [x21, #8]
	cmp	x8, x9
	b.ne	LBB0_9
LBB0_3:
	ldr	x8, [x21]
Lloh5:
	adrp	x9, _ROW_MARK_REFERENCE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ROW_MARK_REFERENCE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.4:
	ldr	x8, [x21, #32]
	cmp	x8, #0
	cset	w0, ne
	bl	_Assert
	ldr	x0, [x20]
	ldr	w1, [x23, #4]
	add	x2, sp, #12
	bl	_ExecGetJunkAttribute
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_12
; %bb.5:
	mov	x22, x0
	ldr	x23, [x21, #32]
	ldr	x8, [x23]
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _RELKIND_FOREIGN_TABLE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RELKIND_FOREIGN_TABLE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.6:
	str	wzr, [sp, #8]
	mov	x0, x23
	mov	w1, #0
	bl	_GetFdwRoutineForRelation
	ldr	x8, [x0]
	cbnz	x8, LBB0_8
; %bb.7:
	mov	x23, x0
Lloh11:
	adrp	x8, _ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w24, [x8]
Lloh14:
	adrp	x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_errcode
	ldr	x0, [x21, #32]
	bl	_RelationGetRelationName
	mov	x1, x0
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
	ldr	x8, [x23]
LBB0_8:
	ldr	w0, [x20, #8]
	add	x4, sp, #8
	mov	x1, x21
	mov	x2, x22
	mov	x3, x19
	blr	x8
	mov	x0, x19
	bl	_TupIsNull
	cbnz	x0, LBB0_15
	b	LBB0_16
LBB0_9:
	ldr	x0, [x20]
	ldr	w1, [x23, #8]
	add	x2, sp, #12
	bl	_ExecGetJunkAttribute
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_12
; %bb.10:
	bl	_DatumGetObjectId
	mov	x22, x0
	ldr	x0, [x21, #24]
	bl	_OidIsValid
	bl	_Assert
	ldr	x8, [x21, #24]
	cmp	x22, x8
	b.eq	LBB0_3
	b	LBB0_12
LBB0_11:
Lloh19:
	adrp	x9, _ROW_MARK_COPY@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ROW_MARK_COPY@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	ldr	x0, [x20]
	ldr	w1, [x23]
	add	x2, sp, #12
	bl	_ExecGetJunkAttribute
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_13
LBB0_12:
	mov	w0, #0
	b	LBB0_17
LBB0_13:
	mov	x1, x19
	bl	_ExecStoreHeapTupleDatum
	b	LBB0_16
LBB0_14:
	mov	x0, x22
	bl	_DatumGetPointer
	mov	x1, x0
Lloh22:
	adrp	x8, _SnapshotAny@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SnapshotAny@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x23
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x3, x19
	bl	_table_tuple_fetch_row_version
	cbnz	w0, LBB0_16
LBB0_15:
Lloh25:
	adrp	x8, _ERROR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_elog
LBB0_16:
	mov	w0, #1
LBB0_17:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EvalPlanQual doesn't support locking rowmarks"

	.comm	_ROW_MARK_REFERENCE,8,3         ; @ROW_MARK_REFERENCE
	.comm	_RELKIND_FOREIGN_TABLE,8,3      ; @RELKIND_FOREIGN_TABLE
	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ; @ERRCODE_FEATURE_NOT_SUPPORTED
l_.str.1:                               ; @.str.1
	.asciz	"cannot lock rows in foreign table \"%s\""

l_.str.2:                               ; @.str.2
	.asciz	"failed to fetch tuple for EvalPlanQual recheck"

	.comm	_SnapshotAny,4,2                ; @SnapshotAny
	.comm	_ROW_MARK_COPY,8,3              ; @ROW_MARK_COPY
.subsections_via_symbols
