	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ri_restrict
_ri_restrict:                           ## @ri_restrict
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	16(%rdi), %edi
	movq	8(%rbx), %rsi
	movl	$1, %edx
	callq	_ri_FetchConstraintInfo
	movq	%rax, %r13
	movl	32(%rax), %edi
	movq	_RowShareLock@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_table_open
	movq	%rax, %r12
	movq	(%rbx), %rax
	movq	8(%rbx), %rdi
	testl	%r14d, %r14d
	movq	%rax, %r14
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.1:
	movq	%r12, %rsi
	movq	%r14, %rdx
	movq	%r13, %rcx
	callq	_ri_Check_Pk_Match
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_table_close
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.3:
	xorl	%edi, %edi
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PointerGetDatum                ## TAILCALL
LBB0_4:
	xorl	%eax, %eax
	callq	_SPI_connect
	movq	_SPI_OK_CONNECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_6:
	movq	_RI_PLAN_RESTRICT_CHECKREF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-76(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ri_BuildQueryKey
	movq	%rbx, %rdi
	callq	_ri_FetchPreparedPlan
	testq	%rax, %rax
	jne	LBB0_18
## %bb.7:
	movq	%r14, -152(%rbp)                ## 8-byte Spill
	movq	%rsp, -144(%rbp)                ## 8-byte Spill
	movq	_MAX_QUOTED_REL_NAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_MAX_QUOTED_NAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -136(%rbp)                ## 8-byte Spill
	movq	_RI_MAX_NUMKEYS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	leaq	-72(%rbp), %r14
	movq	%r14, %rdi
	callq	_initStringInfo
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	_RELKIND_PARTITIONED_TABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rbx
	cmoveq	%rax, %rbx
	movq	%r15, %rdi
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	movq	%r12, %rsi
	callq	_quoteRelationName
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_appendStringInfo
	cmpl	$0, (%r13)
	jle	LBB0_17
## %bb.8:
	movq	24(%r13), %rax
	movl	(%rax), %esi
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_RIAttType
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	16(%r13), %rax
	movl	(%rax), %esi
	movq	-104(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	callq	_RIAttType
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	24(%r13), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_RIAttCollation
	movq	%r13, %rbx
	movq	%rax, %r13
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_RIAttCollation
	movq	%rax, %r14
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_RIAttName
	movq	-136(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_quoteOneName
	leaq	L_.str.5(%rip), %rsi
	leaq	-64(%rbp), %r12
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_sprintf
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	movq	8(%rbx), %rax
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movl	(%rax), %r8d
	subq	$8, %rsp
	leaq	L_.str.4(%rip), %rsi
	leaq	-72(%rbp), %rdi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	movq	%r15, %r9
	pushq	-120(%rbp)                      ## 8-byte Folded Reload
	callq	_ri_GenerateQual
	addq	$16, %rsp
	cmpq	%r14, %r13
	je	LBB0_11
## %bb.9:
	movq	%r13, %rdi
	callq	_get_collation_isdeterministic
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	leaq	-72(%rbp), %rdi
	movq	%r13, %rsi
	callq	_ri_GenerateQualCollation
LBB0_11:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	movq	-128(%rbp), %r13                ## 8-byte Reload
	cmpl	$2, (%r13)
	jl	LBB0_17
## %bb.12:
	movl	$1, %r14d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax,%r12,8)
	movq	-128(%rbp), %r13                ## 8-byte Reload
	movslq	(%r13), %rax
	cmpq	%rax, %r14
	jge	LBB0_17
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %r12
	movq	24(%r13), %rax
	movl	(%rax,%r14,4), %esi
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_RIAttType
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	16(%r13), %rax
	movl	(%rax,%r12,4), %esi
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_RIAttType
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	24(%r13), %rax
	movl	(%rax,%r12,4), %esi
	movq	%r14, %rdi
	callq	_RIAttCollation
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	movq	16(%r13), %rax
	movl	(%rax,%r12,4), %esi
	movq	%rbx, %rdi
	callq	_RIAttCollation
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	movq	16(%r13), %rax
	movl	(%rax,%r12,4), %esi
	movq	%rbx, %rdi
	callq	_RIAttName
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_quoteOneName
	leaq	1(%r12), %r14
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	leaq	L_.str.5(%rip), %rsi
	movl	%r14d, %edx
	callq	_sprintf
	movq	8(%r13), %rax
	movl	(%rax,%r12,4), %r8d
	subq	$8, %rsp
	leaq	-72(%rbp), %rdi
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdx
	movq	-120(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rcx
	movq	%rbx, %r9
	movq	-168(%rbp), %rbx                ## 8-byte Reload
	pushq	-112(%rbp)                      ## 8-byte Folded Reload
	callq	_ri_GenerateQual
	addq	$16, %rsp
	cmpq	-160(%rbp), %rbx                ## 8-byte Folded Reload
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %rdi
	callq	_get_collation_isdeterministic
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	leaq	-72(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_ri_GenerateQualCollation
	jmp	LBB0_16
LBB0_17:
	leaq	L_.str.7(%rip), %rsi
	leaq	-72(%rbp), %rdi
	callq	_appendStringInfoString
	movl	-72(%rbp), %edi
	movl	(%r13), %esi
	leaq	-76(%rbp), %rcx
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movq	-104(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %r8
	movq	-88(%rbp), %r9                  ## 8-byte Reload
	callq	_ri_PlanCheck
	movq	-144(%rbp), %rsp                ## 8-byte Reload
	movq	_RowShareLock@GOTPCREL(%rip), %r15
	movq	-152(%rbp), %r14                ## 8-byte Reload
LBB0_18:
	movq	_SPI_OK_SELECT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	subq	$8, %rsp
	leaq	-76(%rbp), %rsi
	movq	%r13, %rdi
	movq	%rax, %rdx
	movq	%r12, %rcx
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	movq	%r14, %r9
	pushq	%rbx
	pushq	$1
	pushq	$0
	callq	_ri_PerformCheck
	addq	$32, %rsp
	xorl	%eax, %eax
	callq	_SPI_finish
	movq	_SPI_OK_FINISH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_20
## %bb.19:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
	callq	_elog
LBB0_20:
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_table_close
	xorl	%edi, %edi
	callq	_PointerGetDatum
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_22
## %bb.21:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RowShareLock,4,2               ## @RowShareLock
	.comm	_SPI_OK_CONNECT,8,3             ## @SPI_OK_CONNECT
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SPI_connect failed"

	.comm	_RI_PLAN_RESTRICT_CHECKREF,4,2  ## @RI_PLAN_RESTRICT_CHECKREF
	.comm	_MAX_QUOTED_REL_NAME_LEN,4,2    ## @MAX_QUOTED_REL_NAME_LEN
	.comm	_MAX_QUOTED_NAME_LEN,4,2        ## @MAX_QUOTED_NAME_LEN
	.comm	_RI_MAX_NUMKEYS,4,2             ## @RI_MAX_NUMKEYS
	.comm	_RELKIND_PARTITIONED_TABLE,8,3  ## @RELKIND_PARTITIONED_TABLE
L_.str.1:                               ## @.str.1
	.space	1

L_.str.2:                               ## @.str.2
	.asciz	"ONLY "

L_.str.3:                               ## @.str.3
	.asciz	"SELECT 1 FROM %s%s x"

L_.str.4:                               ## @.str.4
	.asciz	"WHERE"

L_.str.5:                               ## @.str.5
	.asciz	"$%d"

L_.str.6:                               ## @.str.6
	.asciz	"AND"

L_.str.7:                               ## @.str.7
	.asciz	" FOR KEY SHARE OF x"

	.comm	_SPI_OK_SELECT,4,2              ## @SPI_OK_SELECT
	.comm	_SPI_OK_FINISH,8,3              ## @SPI_OK_FINISH
L_.str.8:                               ## @.str.8
	.asciz	"SPI_finish failed"

	.no_dead_strip	_ri_restrict
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ri_restrict
_ri_restrict:                           ; @ri_restrict
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #80
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	w0, [x0, #16]
	ldr	x1, [x23, #8]
	mov	w2, #1
	bl	_ri_FetchConstraintInfo
	mov	x20, x0
	ldr	w0, [x0, #32]
Lloh3:
	adrp	x21, _RowShareLock@GOTPAGE
Lloh4:
	ldr	x21, [x21, _RowShareLock@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_table_open
	mov	x19, x0
	ldp	x23, x28, [x23]
	cbz	w22, LBB0_4
; %bb.1:
	mov	x0, x28
	mov	x1, x19
	mov	x2, x23
	mov	x3, x20
	bl	_ri_Check_Pk_Match
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_table_close
	ldur	x8, [x29, #-88]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.3:
	mov	x0, #0
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_PointerGetDatum
LBB0_4:
	bl	_SPI_connect
Lloh8:
	adrp	x8, _SPI_OK_CONNECT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SPI_OK_CONNECT@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.5:
Lloh11:
	adrp	x8, _ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_6:
Lloh16:
	adrp	x8, _RI_PLAN_RESTRICT_CHECKREF@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RI_PLAN_RESTRICT_CHECKREF@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	sub	x0, x29, #108
	mov	x1, x20
	bl	_ri_BuildQueryKey
	sub	x0, x29, #108
	bl	_ri_FetchPreparedPlan
	mov	x2, x0
	cbnz	x0, LBB0_18
; %bb.7:
	mov	x8, sp
	stp	x8, x23, [x29, #-152]           ; 16-byte Folded Spill
Lloh19:
	adrp	x8, _MAX_QUOTED_REL_NAME_LEN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MAX_QUOTED_REL_NAME_LEN@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	mov	x9, x8
Lloh22:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh23:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
Lloh24:
	adrp	x8, _MAX_QUOTED_NAME_LEN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MAX_QUOTED_NAME_LEN@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	mov	x9, x8
Lloh27:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh28:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x8, x9, x8
	stur	x8, [x29, #-128]                ; 8-byte Folded Spill
	mov	sp, x8
Lloh29:
	adrp	x8, _RI_MAX_NUMKEYS@GOTPAGE
Lloh30:
	ldr	x8, [x8, _RI_MAX_NUMKEYS@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh32:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh33:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x8, x9, x8
	stur	x8, [x29, #-120]                ; 8-byte Folded Spill
	mov	sp, x8
	sub	x0, x29, #112
	bl	_initStringInfo
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh34:
	adrp	x9, _RELKIND_PARTITIONED_TABLE@GOTPAGE
Lloh35:
	ldr	x9, [x9, _RELKIND_PARTITIONED_TABLE@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
Lloh37:
	adrp	x10, l_.str.2@PAGE
Lloh38:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh39:
	adrp	x11, l_.str.1@PAGE
Lloh40:
	add	x11, x11, l_.str.1@PAGEOFF
	cmp	x8, x9
	csel	x25, x11, x10, eq
	mov	x0, x22
	mov	x1, x19
	bl	_quoteRelationName
Lloh41:
	adrp	x1, l_.str.3@PAGE
Lloh42:
	add	x1, x1, l_.str.3@PAGEOFF
	sub	x0, x29, #112
	mov	x2, x25
	mov	x3, x22
	bl	_appendStringInfo
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.8:
	ldr	x8, [x20, #24]
	ldr	w1, [x8]
	mov	x0, x28
	bl	_RIAttType
	mov	x25, x0
	ldr	x8, [x20, #16]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_RIAttType
	mov	x22, x0
	ldr	x8, [x20, #24]
	ldr	w1, [x8]
	mov	x0, x28
	bl	_RIAttCollation
	mov	x26, x0
	ldr	x8, [x20, #16]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_RIAttCollation
	mov	x27, x0
	ldr	x8, [x20, #16]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_RIAttName
	mov	x1, x0
	ldur	x21, [x29, #-128]               ; 8-byte Folded Reload
	mov	x0, x21
	bl	_quoteOneName
Lloh43:
	adrp	x1, l_.str.5@PAGE
Lloh44:
	add	x1, x1, l_.str.5@PAGEOFF
	sub	x0, x29, #104
	mov	w2, #1
	bl	_sprintf
	ldr	x8, [x20, #8]
	ldr	w4, [x8]
Lloh45:
	adrp	x1, l_.str.4@PAGE
Lloh46:
	add	x1, x1, l_.str.4@PAGEOFF
	sub	x0, x29, #112
	sub	x2, x29, #104
	mov	x3, x25
	mov	x5, x21
	mov	x6, x22
	bl	_ri_GenerateQual
	cmp	x26, x27
	b.eq	LBB0_11
; %bb.9:
	mov	x0, x26
	bl	_get_collation_isdeterministic
	cbnz	w0, LBB0_11
; %bb.10:
	sub	x0, x29, #112
	mov	x1, x26
	bl	_ri_GenerateQualCollation
LBB0_11:
	ldur	x8, [x29, #-120]                ; 8-byte Folded Reload
	str	x25, [x8]
	ldr	w8, [x20]
	cmp	w8, #2
	b.lt	LBB0_17
; %bb.12:
	mov	w23, #1
	stur	x28, [x29, #-136]               ; 8-byte Folded Spill
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	ldur	x8, [x29, #-120]                ; 8-byte Folded Reload
	str	x27, [x8, x23, lsl #3]
	ldrsw	x8, [x20]
	mov	x23, x22
	cmp	x22, x8
	ldur	x28, [x29, #-136]               ; 8-byte Folded Reload
	mov	x19, x24
	b.ge	LBB0_17
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	lsl	x21, x23, #2
	ldr	w1, [x8, x21]
	mov	x0, x28
	bl	_RIAttType
	mov	x27, x0
	ldr	x8, [x20, #16]
	ldr	w1, [x8, x21]
	mov	x0, x19
	bl	_RIAttType
	mov	x25, x0
	ldr	x8, [x20, #24]
	ldr	w1, [x8, x21]
	mov	x0, x28
	bl	_RIAttCollation
	mov	x28, x0
	ldr	x8, [x20, #16]
	ldr	w1, [x8, x21]
	mov	x0, x19
	bl	_RIAttCollation
	mov	x26, x0
	ldr	x8, [x20, #16]
	ldr	w1, [x8, x21]
	mov	x24, x19
	mov	x0, x19
	bl	_RIAttName
	mov	x1, x0
	ldur	x19, [x29, #-128]               ; 8-byte Folded Reload
	mov	x0, x19
	bl	_quoteOneName
	add	x22, x23, #1
	sub	x0, x29, #104
Lloh47:
	adrp	x1, l_.str.5@PAGE
Lloh48:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x22
	bl	_sprintf
	ldr	x8, [x20, #8]
	ldr	w4, [x8, x21]
	sub	x0, x29, #112
	sub	x2, x29, #104
Lloh49:
	adrp	x1, l_.str.6@PAGE
Lloh50:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x3, x27
	mov	x5, x19
	mov	x6, x25
	bl	_ri_GenerateQual
	cmp	x28, x26
	b.eq	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x28
	bl	_get_collation_isdeterministic
	cbnz	w0, LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	sub	x0, x29, #112
	mov	x1, x28
	bl	_ri_GenerateQualCollation
	b	LBB0_13
LBB0_17:
Lloh51:
	adrp	x1, l_.str.7@PAGE
Lloh52:
	add	x1, x1, l_.str.7@PAGEOFF
	sub	x0, x29, #112
	bl	_appendStringInfoString
	ldur	w0, [x29, #-112]
	ldr	w1, [x20]
	sub	x3, x29, #108
	ldur	x2, [x29, #-120]                ; 8-byte Folded Reload
	mov	x4, x19
	mov	x5, x28
	bl	_ri_PlanCheck
	mov	x2, x0
	ldp	x8, x23, [x29, #-152]           ; 16-byte Folded Reload
	mov	sp, x8
Lloh53:
	adrp	x21, _RowShareLock@GOTPAGE
Lloh54:
	ldr	x21, [x21, _RowShareLock@GOTPAGEOFF]
LBB0_18:
Lloh55:
	adrp	x8, _SPI_OK_SELECT@GOTPAGE
Lloh56:
	ldr	x8, [x8, _SPI_OK_SELECT@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
	str	w8, [sp, #-16]!
	sub	x1, x29, #108
	mov	x0, x20
	mov	x3, x19
	mov	x4, x28
	mov	x5, x23
	mov	x6, #0
	mov	w7, #1
	bl	_ri_PerformCheck
	add	sp, sp, #16
	bl	_SPI_finish
Lloh58:
	adrp	x8, _SPI_OK_FINISH@GOTPAGE
Lloh59:
	ldr	x8, [x8, _SPI_OK_FINISH@GOTPAGEOFF]
Lloh60:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_20
; %bb.19:
Lloh61:
	adrp	x8, _ERROR@GOTPAGE
Lloh62:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh63:
	ldr	w0, [x8]
Lloh64:
	adrp	x1, l_.str.8@PAGE
Lloh65:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_elog
LBB0_20:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_table_close
	mov	x0, #0
	bl	_PointerGetDatum
	ldur	x8, [x29, #-88]
Lloh66:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh67:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh68:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.21:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.cfi_endproc
                                        ; -- End function
	.comm	_RowShareLock,4,2               ; @RowShareLock
	.comm	_SPI_OK_CONNECT,8,3             ; @SPI_OK_CONNECT
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SPI_connect failed"

	.comm	_RI_PLAN_RESTRICT_CHECKREF,4,2  ; @RI_PLAN_RESTRICT_CHECKREF
	.comm	_MAX_QUOTED_REL_NAME_LEN,4,2    ; @MAX_QUOTED_REL_NAME_LEN
	.comm	_MAX_QUOTED_NAME_LEN,4,2        ; @MAX_QUOTED_NAME_LEN
	.comm	_RI_MAX_NUMKEYS,4,2             ; @RI_MAX_NUMKEYS
	.comm	_RELKIND_PARTITIONED_TABLE,8,3  ; @RELKIND_PARTITIONED_TABLE
l_.str.1:                               ; @.str.1
	.space	1

l_.str.2:                               ; @.str.2
	.asciz	"ONLY "

l_.str.3:                               ; @.str.3
	.asciz	"SELECT 1 FROM %s%s x"

l_.str.4:                               ; @.str.4
	.asciz	"WHERE"

l_.str.5:                               ; @.str.5
	.asciz	"$%d"

l_.str.6:                               ; @.str.6
	.asciz	"AND"

l_.str.7:                               ; @.str.7
	.asciz	" FOR KEY SHARE OF x"

	.comm	_SPI_OK_SELECT,4,2              ; @SPI_OK_SELECT
	.comm	_SPI_OK_FINISH,8,3              ; @SPI_OK_FINISH
l_.str.8:                               ; @.str.8
	.asciz	"SPI_finish failed"

	.no_dead_strip	_ri_restrict
.subsections_via_symbols
