	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function RI_FKey_check
_RI_FKey_check:                         ## @RI_FKey_check
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	28(%rdi), %edi
	movq	(%rbx), %rsi
	xorl	%edx, %edx
	callq	_ri_FetchConstraintInfo
	movq	%rax, %r12
	movl	24(%rbx), %edi
	callq	_TRIGGER_FIRED_BY_UPDATE
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movq	8(%rbx,%rcx,8), %r14
	movq	(%rbx), %rdi
	movq	_SnapshotSelf@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_table_tuple_satisfies_snapshot
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	(%rbx), %r15
	movl	40(%r12), %edi
	movq	%r14, %rbx
	movq	_RowShareLock@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_table_open
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_RelationGetDescr
	movl	%eax, %edi
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	movq	%rbx, %rsi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_ri_NullCheck
	cmpl	$128, %eax
	je	LBB0_6
## %bb.4:
	cmpl	$130, %eax
	je	LBB0_5
	jmp	LBB0_10
LBB0_6:
	movl	36(%r12), %eax
	cmpl	$131, %eax
	je	LBB0_5
## %bb.7:
	cmpl	$133, %eax
	jne	LBB0_10
## %bb.8:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	_ERRCODE_FOREIGN_KEY_VIOLATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	%r15, %rdi
	callq	_RelationGetRelationName
	movl	%eax, %ebx
	movl	32(%r12), %edi
	callq	_NameStr
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_errmsg
	leaq	L_.str.1(%rip), %rdi
	callq	_errdetail
	movl	32(%r12), %edi
	callq	_NameStr
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_errtableconstraint
	movl	-76(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_ereport
LBB0_5:
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_table_close
LBB0_1:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.2:
	xorl	%edi, %edi
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PointerGetDatum                ## TAILCALL
LBB0_10:
	xorl	%eax, %eax
	callq	_SPI_connect
	movq	_SPI_OK_CONNECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.11:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_elog
LBB0_12:
	movq	_RI_PLAN_CHECK_LOOKUPPK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_ri_BuildQueryKey
	movq	%rbx, %rdi
	callq	_ri_FetchPreparedPlan
	testq	%rax, %rax
	jne	LBB0_18
## %bb.13:
	movq	%rsp, -120(%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	%r15, -96(%rbp)                 ## 8-byte Spill
	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, -112(%rbp)                ## 8-byte Spill
	movq	_RI_MAX_NUMKEYS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	leaq	-72(%rbp), %r14
	movq	%r14, %rdi
	callq	_initStringInfo
	movq	(%r13), %rax
	movq	(%rax), %rax
	movq	_RELKIND_PARTITIONED_TABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.4(%rip), %rbx
	cmoveq	%rax, %rbx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_quoteRelationName
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_appendStringInfo
	cmpl	$0, (%r12)
	movq	%r13, %rbx
	jle	LBB0_17
## %bb.14:
	movq	16(%r12), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_RIAttType
	movl	%eax, %r15d
	movq	24(%r12), %rax
	movl	(%rax), %esi
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_RIAttType
	movl	%eax, %r13d
	movq	16(%r12), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_RIAttName
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_quoteOneName
	leaq	L_.str.7(%rip), %rsi
	leaq	-64(%rbp), %r14
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_sprintf
	movq	8(%r12), %rax
	movl	(%rax), %r8d
	subq	$8, %rsp
	leaq	L_.str.6(%rip), %rsi
	leaq	-72(%rbp), %rdi
	movq	%rbx, %rdx
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movl	%r15d, %ecx
	movq	%r14, %r9
	pushq	%r13
	callq	_ri_GenerateQual
	addq	$16, %rsp
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, (%rax)
	cmpl	$2, (%r12)
	jl	LBB0_17
## %bb.15:
	movl	$1, %r13d
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	movl	(%rax,%r13,4), %esi
	movq	%rbx, %rdi
	callq	_RIAttType
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	24(%r12), %rax
	movl	(%rax,%r13,4), %esi
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_RIAttType
	movl	%eax, %r14d
	movq	16(%r12), %rax
	movl	(%rax,%r13,4), %esi
	movq	%rbx, %rdi
	callq	_RIAttName
	movq	%r12, %rbx
	movq	-112(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_quoteOneName
	leaq	1(%r13), %r15
	leaq	-64(%rbp), %rdi
	leaq	L_.str.7(%rip), %rsi
	movl	%r15d, %edx
	callq	_sprintf
	movq	8(%rbx), %rax
	movl	(%rax,%r13,4), %r8d
	subq	$8, %rsp
	leaq	-72(%rbp), %rdi
	leaq	L_.str.8(%rip), %rsi
	movq	%r12, %rdx
	movq	%rbx, %r12
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	leaq	-64(%rbp), %r9
	pushq	%r14
	callq	_ri_GenerateQual
	addq	$16, %rsp
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax,%r13,4)
	movslq	(%r12), %rax
	movq	%r15, %r13
	cmpq	%rax, %r15
	jl	LBB0_16
LBB0_17:
	leaq	L_.str.9(%rip), %rsi
	leaq	-72(%rbp), %rdi
	callq	_appendStringInfoString
	movl	-72(%rbp), %edi
	movl	(%r12), %esi
	leaq	-80(%rbp), %rcx
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %r8
	movq	%rbx, %r9
	callq	_ri_PlanCheck
	movq	-120(%rbp), %rsp                ## 8-byte Reload
	movq	%rbx, %r13
	movq	_RowShareLock@GOTPCREL(%rip), %r14
LBB0_18:
	movq	_SPI_OK_SELECT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	subq	$8, %rsp
	leaq	-80(%rbp), %rsi
	movq	%r12, %rdi
	movq	%rax, %rdx
	movq	%r15, %rcx
	movq	%r13, %r8
	xorl	%r9d, %r9d
	pushq	%rbx
	pushq	$0
	pushq	-128(%rbp)                      ## 8-byte Folded Reload
	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.10(%rip), %rsi
	callq	_elog
LBB0_20:
	movl	(%r14), %esi
	movq	%r13, %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_9
## %bb.21:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SnapshotSelf,4,2               ## @SnapshotSelf
	.comm	_RowShareLock,4,2               ## @RowShareLock
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_FOREIGN_KEY_VIOLATION,4,2 ## @ERRCODE_FOREIGN_KEY_VIOLATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"insert or update on table \"%s\" violates foreign key constraint \"%s\""

L_.str.1:                               ## @.str.1
	.asciz	"MATCH FULL does not allow mixing of null and nonnull key values."

	.comm	_SPI_OK_CONNECT,8,3             ## @SPI_OK_CONNECT
L_.str.2:                               ## @.str.2
	.asciz	"SPI_connect failed"

	.comm	_RI_PLAN_CHECK_LOOKUPPK,4,2     ## @RI_PLAN_CHECK_LOOKUPPK
	.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.3:                               ## @.str.3
	.space	1

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

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

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

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

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

L_.str.9:                               ## @.str.9
	.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.10:                              ## @.str.10
	.asciz	"SPI_finish failed"

	.no_dead_strip	_RI_FKey_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function RI_FKey_check
_RI_FKey_check:                         ; @RI_FKey_check
	.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, #48
	mov	x19, 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, #28]
	ldr	x1, [x19]
	mov	w2, #0
	bl	_ri_FetchConstraintInfo
	mov	x20, x0
	ldr	w0, [x19, #24]
	bl	_TRIGGER_FIRED_BY_UPDATE
	mov	w8, #16
	mov	w9, #8
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	x22, [x19, x8]
	ldr	x0, [x19]
Lloh3:
	adrp	x8, _SnapshotSelf@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SnapshotSelf@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_table_tuple_satisfies_snapshot
	cbz	w0, LBB0_7
; %bb.1:
	ldr	x21, [x19]
	ldr	w0, [x20, #40]
Lloh6:
	adrp	x24, _RowShareLock@GOTPAGE
Lloh7:
	ldr	x24, [x24, _RowShareLock@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_table_open
	mov	x19, x0
	mov	x0, x21
	bl	_RelationGetDescr
	mov	x1, x22
	mov	x2, x20
	mov	w3, #0
	bl	_ri_NullCheck
	cmp	w0, #128
	b.eq	LBB0_3
; %bb.2:
	cmp	w0, #130
	b.eq	LBB0_6
	b	LBB0_9
LBB0_3:
	ldr	w8, [x20, #36]
	cmp	w8, #131
	b.eq	LBB0_6
; %bb.4:
	cmp	w8, #133
	b.ne	LBB0_9
; %bb.5:
Lloh8:
	adrp	x8, _ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
Lloh11:
	adrp	x8, _ERRCODE_FOREIGN_KEY_VIOLATION@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERRCODE_FOREIGN_KEY_VIOLATION@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x21
	bl	_RelationGetRelationName
	mov	x23, x0
	ldr	w0, [x20, #32]
	bl	_NameStr
	mov	x2, x0
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_errmsg
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errdetail
	ldr	w0, [x20, #32]
	bl	_NameStr
	mov	x1, x0
	mov	x0, x21
	bl	_errtableconstraint
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
LBB0_6:
	ldr	w1, [x24]
	mov	x0, x19
	bl	_table_close
LBB0_7:
	ldur	x8, [x29, #-88]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.8:
	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_9:
	bl	_SPI_connect
Lloh21:
	adrp	x8, _SPI_OK_CONNECT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SPI_OK_CONNECT@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
Lloh24:
	adrp	x23, _ERROR@GOTPAGE
Lloh25:
	ldr	x23, [x23, _ERROR@GOTPAGEOFF]
	cmp	x0, x8
	b.eq	LBB0_11
; %bb.10:
	ldr	w0, [x23]
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_elog
LBB0_11:
Lloh28:
	adrp	x8, _RI_PLAN_CHECK_LOOKUPPK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _RI_PLAN_CHECK_LOOKUPPK@GOTPAGEOFF]
Lloh30:
	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_17
; %bb.12:
	mov	x8, sp
	stur	x8, [x29, #-120]                ; 8-byte Folded Spill
Lloh31:
	adrp	x8, _MAX_QUOTED_REL_NAME_LEN@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MAX_QUOTED_REL_NAME_LEN@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	mov	x9, x8
Lloh34:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh35:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x25, x9, x8
	mov	sp, x25
Lloh36:
	adrp	x8, _MAX_QUOTED_NAME_LEN@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MAX_QUOTED_NAME_LEN@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	mov	x9, x8
Lloh39:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh40:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x24, x9, x8
	mov	sp, x24
Lloh41:
	adrp	x8, _RI_MAX_NUMKEYS@GOTPAGE
Lloh42:
	ldr	x8, [x8, _RI_MAX_NUMKEYS@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh44:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh45:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	sub	x0, x29, #112
	bl	_initStringInfo
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh46:
	adrp	x9, _RELKIND_PARTITIONED_TABLE@GOTPAGE
Lloh47:
	ldr	x9, [x9, _RELKIND_PARTITIONED_TABLE@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
Lloh49:
	adrp	x10, l_.str.4@PAGE
Lloh50:
	add	x10, x10, l_.str.4@PAGEOFF
Lloh51:
	adrp	x11, l_.str.3@PAGE
Lloh52:
	add	x11, x11, l_.str.3@PAGEOFF
	cmp	x8, x9
	csel	x26, x11, x10, eq
	mov	x0, x25
	mov	x1, x19
	bl	_quoteRelationName
Lloh53:
	adrp	x1, l_.str.5@PAGE
Lloh54:
	add	x1, x1, l_.str.5@PAGEOFF
	sub	x0, x29, #112
	mov	x2, x26
	mov	x3, x25
	bl	_appendStringInfo
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.13:
	ldr	x8, [x20, #16]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_RIAttType
	mov	x25, x0
	ldr	x8, [x20, #24]
	ldr	w1, [x8]
	mov	x0, x21
	bl	_RIAttType
	mov	x26, x0
	ldr	x8, [x20, #16]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_RIAttName
	mov	x1, x0
	mov	x0, x24
	bl	_quoteOneName
Lloh55:
	adrp	x1, l_.str.7@PAGE
Lloh56:
	add	x1, x1, l_.str.7@PAGEOFF
	sub	x0, x29, #104
	mov	w2, #1
	bl	_sprintf
	ldr	x8, [x20, #8]
	ldr	w4, [x8]
Lloh57:
	adrp	x1, l_.str.6@PAGE
Lloh58:
	add	x1, x1, l_.str.6@PAGEOFF
	sub	x0, x29, #112
	sub	x5, x29, #104
	mov	x2, x24
	mov	x3, x25
	mov	x6, x26
	bl	_ri_GenerateQual
	str	w26, [x23]
	ldr	w8, [x20]
	cmp	w8, #2
	b.lt	LBB0_16
; %bb.14:
	mov	w25, #1
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	lsl	x27, x25, #2
	ldr	w1, [x8, x27]
	mov	x0, x19
	bl	_RIAttType
	mov	x28, x0
	ldr	x8, [x20, #24]
	ldr	w1, [x8, x27]
	mov	x0, x21
	bl	_RIAttType
	mov	x26, x0
	ldr	x8, [x20, #16]
	ldr	w1, [x8, x27]
	mov	x0, x19
	bl	_RIAttName
	mov	x1, x0
	mov	x0, x24
	bl	_quoteOneName
	add	x25, x25, #1
	sub	x0, x29, #104
Lloh59:
	adrp	x1, l_.str.7@PAGE
Lloh60:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x2, x25
	bl	_sprintf
	ldr	x8, [x20, #8]
	ldr	w4, [x8, x27]
	sub	x0, x29, #112
	sub	x5, x29, #104
Lloh61:
	adrp	x1, l_.str.8@PAGE
Lloh62:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x2, x24
	mov	x3, x28
	mov	x6, x26
	bl	_ri_GenerateQual
	str	w26, [x23, x27]
	ldrsw	x8, [x20]
	cmp	x25, x8
	b.lt	LBB0_15
LBB0_16:
Lloh63:
	adrp	x1, l_.str.9@PAGE
Lloh64:
	add	x1, x1, l_.str.9@PAGEOFF
	sub	x0, x29, #112
	bl	_appendStringInfoString
	ldur	w0, [x29, #-112]
	ldr	w1, [x20]
	sub	x3, x29, #108
	mov	x2, x23
	mov	x4, x21
	mov	x5, x19
	bl	_ri_PlanCheck
	mov	x2, x0
	ldur	x8, [x29, #-120]                ; 8-byte Folded Reload
	mov	sp, x8
Lloh65:
	adrp	x24, _RowShareLock@GOTPAGE
Lloh66:
	ldr	x24, [x24, _RowShareLock@GOTPAGEOFF]
Lloh67:
	adrp	x23, _ERROR@GOTPAGE
Lloh68:
	ldr	x23, [x23, _ERROR@GOTPAGEOFF]
LBB0_17:
Lloh69:
	adrp	x8, _SPI_OK_SELECT@GOTPAGE
Lloh70:
	ldr	x8, [x8, _SPI_OK_SELECT@GOTPAGEOFF]
Lloh71:
	ldr	w8, [x8]
	str	w8, [sp, #-16]!
	sub	x1, x29, #108
	mov	x0, x20
	mov	x3, x21
	mov	x4, x19
	mov	x5, #0
	mov	x6, x22
	mov	w7, #0
	bl	_ri_PerformCheck
	add	sp, sp, #16
	bl	_SPI_finish
Lloh72:
	adrp	x8, _SPI_OK_FINISH@GOTPAGE
Lloh73:
	ldr	x8, [x8, _SPI_OK_FINISH@GOTPAGEOFF]
Lloh74:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_19
; %bb.18:
	ldr	w0, [x23]
Lloh75:
	adrp	x1, l_.str.10@PAGE
Lloh76:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_elog
LBB0_19:
	ldr	w1, [x24]
	mov	x0, x19
	bl	_table_close
	mov	x0, #0
	bl	_PointerGetDatum
	ldur	x8, [x29, #-88]
Lloh77:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh78:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh79:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	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_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.cfi_endproc
                                        ; -- End function
	.comm	_SnapshotSelf,4,2               ; @SnapshotSelf
	.comm	_RowShareLock,4,2               ; @RowShareLock
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_FOREIGN_KEY_VIOLATION,4,2 ; @ERRCODE_FOREIGN_KEY_VIOLATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"insert or update on table \"%s\" violates foreign key constraint \"%s\""

l_.str.1:                               ; @.str.1
	.asciz	"MATCH FULL does not allow mixing of null and nonnull key values."

	.comm	_SPI_OK_CONNECT,8,3             ; @SPI_OK_CONNECT
l_.str.2:                               ; @.str.2
	.asciz	"SPI_connect failed"

	.comm	_RI_PLAN_CHECK_LOOKUPPK,4,2     ; @RI_PLAN_CHECK_LOOKUPPK
	.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.3:                               ; @.str.3
	.space	1

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

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

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

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

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

l_.str.9:                               ; @.str.9
	.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.10:                              ; @.str.10
	.asciz	"SPI_finish failed"

	.no_dead_strip	_RI_FKey_check
.subsections_via_symbols
