	.file	"extr_foreign_constraint.c_ColumnAppearsInForeignKeyToReferenceTable.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ColumnAppearsInForeignKeyToReferenceTable
	.type	ColumnAppearsInForeignKeyToReferenceTable, @function
ColumnAppearsInForeignKeyToReferenceTable:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	esi, DWORD PTR AccessShareLock[rip]
	mov	edi, DWORD PTR ConstraintRelationId[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	rbp, 20[rsp]
	call	heap_open@PLT
	mov	edi, DWORD PTR CONSTRAINT_FOREIGN[rip]
	mov	r14, rax
	mov	QWORD PTR 8[rsp], rax
	call	CharGetDatum@PLT
	mov	ecx, DWORD PTR F_CHAREQ[rip]
	mov	edx, DWORD PTR BTEqualStrategyNumber[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR Anum_pg_constraint_contype[rip]
	mov	r8d, eax
	call	ScanKeyInit@PLT
	mov	esi, DWORD PTR InvalidOid[rip]
	mov	r9, rbp
	xor	ecx, ecx
	mov	r8d, 1
	xor	edx, edx
	mov	rdi, r14
	call	systable_beginscan@PLT
	mov	rdi, rax
	mov	r12, rax
	call	systable_getnext@PLT
	mov	rbp, rax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, rbp
	call	GETSTRUCT@PLT
	mov	r14d, DWORD PTR Anum_pg_constraint_confkey[rip]
	cdqe
	mov	r15d, DWORD PTR 4[rax]
	cmp	r15d, ebx
	je	.L4
	cmp	DWORD PTR [rax], ebx
	jne	.L13
	mov	r14d, DWORD PTR Anum_pg_constraint_conkey[rip]
.L4:
	mov	edi, r15d
	call	IsDistributedTable@PLT
	mov	edi, eax
	call	Assert@PLT
	mov	edi, r15d
	call	PartitionMethod@PLT
	cmp	rax, QWORD PTR DISTRIBUTE_BY_NONE[rip]
	jne	.L13
	mov	rcx, r13
	mov	edx, r14d
	mov	esi, ebx
	mov	rdi, rbp
	call	HeapTupleOfForeignConstraintIncludesColumn@PLT
	test	rax, rax
	jne	.L11
.L13:
	mov	rdi, r12
	call	systable_getnext@PLT
	mov	rbp, rax
.L2:
	mov	rdi, rbp
	call	HeapTupleIsValid@PLT
	test	rax, rax
	jne	.L9
	xor	r13d, r13d
.L8:
	mov	rdi, r12
	call	systable_endscan@PLT
	mov	esi, DWORD PTR AccessShareLock[rip]
	mov	rdi, QWORD PTR 8[rsp]
	call	heap_close@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	r13d, 1
	jmp	.L8
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ColumnAppearsInForeignKeyToReferenceTable, .-ColumnAppearsInForeignKeyToReferenceTable
	.comm	InvalidOid,4,4
	.comm	F_CHAREQ,4,4
	.comm	DISTRIBUTE_BY_NONE,8,8
	.comm	ConstraintRelationId,4,4
	.comm	CONSTRAINT_FOREIGN,4,4
	.comm	BTEqualStrategyNumber,4,4
	.comm	Anum_pg_constraint_contype,4,4
	.comm	Anum_pg_constraint_conkey,4,4
	.comm	Anum_pg_constraint_confkey,4,4
	.comm	AccessShareLock,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_foreign_constraint.c_ColumnAppearsInForeignKeyToReferenceTable.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ColumnAppearsInForeignKeyToReferenceTable
	.syntax unified
	.arm
	.fpu softvfp
	.type	ColumnAppearsInForeignKeyToReferenceTable, %function
ColumnAppearsInForeignKeyToReferenceTable:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L16
	ldr	r2, .L16+4
	mov	r8, r0
	ldr	r0, [r3]
	ldr	r3, .L16+8
	sub	sp, sp, #28
	mov	r5, r1
	ldr	r1, [r2]
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	heap_open
	mov	fp, r0
	ldr	r0, .L16+12
	ldr	r1, .L16+16
	ldr	r2, .L16+20
	ldr	r3, .L16+24
	ldr	r0, [r0]
	ldr	r6, [r1]
	ldr	r7, [r2]
	ldr	r9, [r3]
	str	fp, [sp, #8]
	bl	CharGetDatum
	add	r4, sp, #16
	mov	r3, r9
	mov	r2, r7
	mov	r1, r6
	str	r0, [sp]
	mov	r0, r4
	bl	ScanKeyInit
	mov	r2, #1
	mov	r3, #0
	ldr	r1, .L16+28
	str	r4, [sp, #4]
	str	r2, [sp]
	ldr	r1, [r1]
	mov	r2, r3
	mov	r0, fp
	bl	systable_beginscan
	mov	r6, r0
	bl	systable_getnext
	ldr	r7, .L16+32
	mov	r4, r0
	ldr	r9, .L16+36
	b	.L2
.L3:
	ldr	r2, [r0]
	cmp	r2, r5
	bne	.L13
	ldr	fp, [r9]
.L4:
	mov	r0, r10
	bl	IsDistributedTable
	bl	Assert
	mov	r0, r10
	bl	PartitionMethod
	ldr	r3, [r7]
	cmp	r0, r3
	bne	.L13
	mov	r2, fp
	mov	r0, r4
	mov	r3, r8
	mov	r1, r5
	bl	HeapTupleOfForeignConstraintIncludesColumn
	cmp	r0, #0
	bne	.L11
.L13:
	mov	r0, r6
	bl	systable_getnext
	mov	r4, r0
.L2:
	mov	r0, r4
	bl	HeapTupleIsValid
	subs	r3, r0, #0
	beq	.L8
	mov	r0, r4
	bl	GETSTRUCT
	ldr	r10, [r0, #4]
	cmp	r10, r5
	bne	.L3
	ldr	r3, .L16+40
	ldr	fp, [r3]
	b	.L4
.L11:
	mov	r3, #1
.L8:
	mov	r0, r6
	str	r3, [sp, #12]
	bl	systable_endscan
	ldr	r3, .L16+4
	ldr	r0, [sp, #8]
	ldr	r1, [r3]
	bl	heap_close
	ldr	r2, .L16+8
	ldr	r3, [sp, #12]
	ldr	r1, [r2]
	ldr	r2, [sp, #20]
	eors	r1, r2, r1
	mov	r2, #0
	bne	.L15
	mov	r0, r3
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	ConstraintRelationId
	.word	AccessShareLock
	.word	.LC0
	.word	CONSTRAINT_FOREIGN
	.word	Anum_pg_constraint_contype
	.word	BTEqualStrategyNumber
	.word	F_CHAREQ
	.word	InvalidOid
	.word	DISTRIBUTE_BY_NONE
	.word	Anum_pg_constraint_conkey
	.word	Anum_pg_constraint_confkey
	.size	ColumnAppearsInForeignKeyToReferenceTable, .-ColumnAppearsInForeignKeyToReferenceTable
	.comm	InvalidOid,4,4
	.comm	F_CHAREQ,4,4
	.comm	DISTRIBUTE_BY_NONE,4,4
	.comm	ConstraintRelationId,4,4
	.comm	CONSTRAINT_FOREIGN,4,4
	.comm	BTEqualStrategyNumber,4,4
	.comm	Anum_pg_constraint_contype,4,4
	.comm	Anum_pg_constraint_conkey,4,4
	.comm	Anum_pg_constraint_confkey,4,4
	.comm	AccessShareLock,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
