	.file	"extr_execIndexing.c_ExecCheckIndexConstraints.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"ON CONFLICT does not support deferrable unique constraints/exclusion constraints as arbiters"
	.align 8
.LC1:
	.string	"unexpected failure to find arbiter index"
	.text
	.p2align 4
	.globl	ExecCheckIndexConstraints
	.type	ExecCheckIndexConstraints, @function
ExecCheckIndexConstraints:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 104
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -80[rbp], rsi
	mov	QWORD PTR -128[rbp], rdx
	mov	rsi, rsp
	mov	QWORD PTR -88[rbp], rcx
	mov	QWORD PTR -120[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR INDEX_MAX_KEYS[rip]
	lea	rax, 15[0+rax*4]
	mov	rcx, rax
	mov	rdx, rax
	and	rcx, -4096
	and	rdx, -16
	sub	rsi, rcx
	mov	rcx, rsi
	cmp	rsp, rcx
	je	.L3
.L44:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rcx
	jne	.L44
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L45
.L4:
	mov	rdx, rax
	mov	rcx, rsp
	and	rax, -4096
	mov	r14, rsp
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L6
.L46:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L46
.L6:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L47
.L7:
	mov	rdi, QWORD PTR -128[rbp]
	mov	QWORD PTR -96[rbp], rsp
	call	ItemPointerSetInvalid@PLT
	lea	rax, -60[rbp]
	mov	rdi, rax
	mov	QWORD PTR -144[rbp], rax
	call	ItemPointerSetInvalid@PLT
	mov	rdi, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR [rdi]
	mov	r12d, DWORD PTR [rax]
	mov	rbx, QWORD PTR 24[rax]
	mov	r13, QWORD PTR 16[rax]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -112[rbp], rax
	call	GetPerTupleExprContext@PLT
	mov	rcx, QWORD PTR -120[rbp]
	mov	QWORD PTR -136[rbp], rax
	mov	QWORD PTR [rax], rcx
	mov	rdx, QWORD PTR NIL[rip]
	test	r12d, r12d
	jle	.L8
	lea	eax, -1[r12]
	mov	DWORD PTR -100[rbp], 0
	mov	r15, r13
	lea	rax, 8[rbx+rax*8]
	mov	QWORD PTR -72[rbp], rax
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L13:
	mov	r8, QWORD PTR 8[r12]
	cmp	r8, QWORD PTR NIL[rip]
	je	.L14
	mov	rdi, QWORD PTR [r12]
	test	rdi, rdi
	je	.L48
.L15:
	mov	rsi, QWORD PTR -136[rbp]
	call	ExecQual@PLT
	test	eax, eax
	je	.L42
.L14:
	mov	r8, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR -80[rbp]
	mov	rcx, r14
	mov	rdi, r12
	mov	rsi, QWORD PTR -120[rbp]
	call	FormIndexDatum@PLT
	sub	rsp, 8
	push	QWORD PTR -128[rbp]
	mov	r9, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR CEOUC_WAIT[rip]
	push	1
	mov	r8, r14
	mov	rdx, r12
	mov	rcx, QWORD PTR -144[rbp]
	mov	rdi, QWORD PTR -112[rbp]
	mov	rsi, r13
	push	rax
	push	0
	push	QWORD PTR -80[rbp]
	call	check_exclusion_or_unique_constraint@PLT
	add	rsp, 48
	test	eax, eax
	je	.L1
.L42:
	mov	DWORD PTR -100[rbp], 1
	mov	rdx, QWORD PTR NIL[rip]
.L9:
	add	rbx, 8
	add	r15, 8
	cmp	QWORD PTR -72[rbp], rbx
	je	.L49
.L17:
	mov	r13, QWORD PTR [rbx]
	test	r13, r13
	je	.L9
	mov	r12, QWORD PTR [r15]
	mov	edi, DWORD PTR 24[r12]
	test	edi, edi
	jne	.L10
	mov	esi, DWORD PTR 20[r12]
	test	esi, esi
	je	.L9
.L10:
	mov	ecx, DWORD PTR 16[r12]
	test	ecx, ecx
	je	.L9
	mov	rdi, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 0[r13]
	cmp	rdi, rdx
	je	.L11
	mov	esi, DWORD PTR 4[rax]
	call	list_member_oid@PLT
	mov	rdx, QWORD PTR NIL[rip]
	test	eax, eax
	je	.L9
	mov	rax, QWORD PTR 0[r13]
.L11:
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L13
	mov	edi, DWORD PTR ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE[rip]
	call	errcode@PLT
	lea	rdi, .LC0[rip]
	call	errmsg@PLT
	mov	rdi, r13
	call	RelationGetRelationName@PLT
	mov	rdi, QWORD PTR -112[rbp]
	mov	esi, eax
	call	errtableconstraint@PLT
	mov	edi, DWORD PTR ERROR[rip]
	mov	esi, eax
	call	ereport@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L45:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L49:
	movzx	eax, BYTE PTR -100[rbp]
	xor	eax, 1
.L18:
	cmp	QWORD PTR -88[rbp], rdx
	je	.L20
	test	al, al
	jne	.L50
.L20:
	mov	eax, 1
.L1:
	mov	rcx, QWORD PTR -56[rbp]
	xor	rcx, QWORD PTR fs:40
	jne	.L51
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L48:
	.cfi_restore_state
	mov	rsi, QWORD PTR -80[rbp]
	mov	rdi, r8
	call	ExecPrepareQual@PLT
	mov	QWORD PTR [r12], rax
	mov	rdi, rax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L50:
	mov	edi, DWORD PTR ERROR[rip]
	lea	rsi, .LC1[rip]
	call	elog@PLT
	mov	eax, 1
	jmp	.L1
.L8:
	mov	eax, 1
	jmp	.L18
.L47:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L7
.L51:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ExecCheckIndexConstraints, .-ExecCheckIndexConstraints
	.comm	NIL,8,8
	.comm	INDEX_MAX_KEYS,4,4
	.comm	ERROR,4,4
	.comm	ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE,4,4
	.comm	CEOUC_WAIT,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_execIndexing.c_ExecCheckIndexConstraints.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ON CONFLICT does not support deferrable unique cons"
	.ascii	"traints/exclusion constraints as arbiters\000"
	.align	2
.LC1:
	.ascii	"unexpected failure to find arbiter index\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ExecCheckIndexConstraints
	.syntax unified
	.arm
	.fpu softvfp
	.type	ExecCheckIndexConstraints, %function
ExecCheckIndexConstraints:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #84
	mov	ip, r0
	mov	lr, r2
	mov	r8, r1
	str	r2, [fp, #-80]
	ldr	r2, .L37
	str	r3, [fp, #-60]
	ldr	r2, [r2]
	ldr	r3, .L37+4
	lsl	r2, r2, #2
	add	r2, r2, #7
	bic	r2, r2, #7
	sub	sp, sp, r2
	add	r1, sp, #32
	str	r1, [fp, #-52]
	sub	sp, sp, r2
	str	ip, [fp, #-76]
	mov	r0, lr
	mov	r4, ip
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	bl	ItemPointerSetInvalid
	sub	r0, fp, #44
	bl	ItemPointerSetInvalid
	ldr	r3, [r8]
	mov	r0, r8
	ldr	r10, [r3]
	ldr	r2, [r3, #8]
	ldr	r7, [r3, #12]
	ldr	r3, [r3, #4]
	str	r2, [fp, #-48]
	str	r3, [fp, #-68]
	bl	GetPerTupleExprContext
	add	r3, sp, #32
	cmp	r10, #0
	str	r0, [fp, #-72]
	str	r4, [r0]
	str	r3, [fp, #-56]
	ble	.L2
	mov	r5, #0
	ldr	r9, .L37+8
	str	r5, [fp, #-64]
	ldr	r2, [r9]
	sub	r7, r7, #4
	b	.L11
.L7:
	ldr	r3, [r4, #4]
	ldr	r2, [r9]
	cmp	r3, r2
	beq	.L8
	ldr	r0, [r4]
	cmp	r0, #0
	beq	.L32
.L9:
	ldr	r1, [fp, #-72]
	bl	ExecQual
	cmp	r0, #0
	beq	.L33
.L8:
	ldr	r3, [fp, #-56]
	mov	r2, r8
	ldr	r1, [fp, #-76]
	str	r3, [sp]
	mov	r0, r4
	ldr	r3, [fp, #-52]
	bl	FormIndexDatum
	ldr	r1, .L37+12
	ldr	r2, [fp, #-56]
	ldr	r3, [r1]
	ldr	r1, [fp, #-80]
	str	r2, [sp, #4]
	str	r1, [sp, #24]
	mov	r1, #1
	str	r1, [sp, #20]
	mov	r1, #0
	ldr	r2, [fp, #-52]
	str	r1, [sp, #12]
	str	r2, [sp]
	str	r3, [sp, #16]
	mov	r2, r4
	mov	r1, r6
	ldr	r0, [fp, #-68]
	str	r8, [sp, #8]
	sub	r3, fp, #44
	bl	check_exclusion_or_unique_constraint
	cmp	r0, #0
	beq	.L1
	mov	r3, #1
	str	r3, [fp, #-64]
.L30:
	ldr	r2, [r9]
.L3:
	add	r5, r5, #1
	cmp	r10, r5
	beq	.L34
.L11:
	ldr	r6, [r7, #4]!
	cmp	r6, #0
	beq	.L3
	ldr	r3, [fp, #-48]
	ldr	r4, [r3, r5, lsl #2]
	ldr	r3, [r4, #16]
	cmp	r3, #0
	bne	.L4
	ldr	r3, [r4, #12]
	cmp	r3, #0
	beq	.L3
.L4:
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L3
	ldr	r0, [fp, #-60]
	ldr	r3, [r6]
	cmp	r0, r2
	beq	.L5
	ldr	r1, [r3, #4]
	bl	list_member_oid
	cmp	r0, #0
	ldrne	r3, [r6]
	beq	.L30
.L5:
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L37+16
	ldr	r0, [r3]
	ldr	r3, .L37+20
	ldr	r3, [r3]
	str	r3, [fp, #-64]
	bl	errcode
	ldr	r0, .L37+24
	bl	errmsg
	mov	r0, r6
	bl	RelationGetRelationName
	mov	r1, r0
	ldr	r0, [fp, #-68]
	bl	errtableconstraint
	ldr	r3, [fp, #-64]
	mov	r1, r0
	mov	r0, r3
	bl	ereport
	b	.L7
.L33:
	mov	r3, #1
	add	r5, r5, #1
	cmp	r10, r5
	ldr	r2, [r9]
	str	r3, [fp, #-64]
	bne	.L11
.L34:
	ldr	r3, [fp, #-64]
	eor	r1, r3, #1
.L12:
	ldr	r3, [fp, #-60]
	cmp	r3, r2
	moveq	r2, #0
	andne	r2, r1, #1
	cmp	r2, #0
	moveq	r0, #1
	bne	.L35
.L1:
	ldr	r3, .L37+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L36
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L32:
	mov	r0, r3
	mov	r1, r8
	bl	ExecPrepareQual
	str	r0, [r4]
	b	.L9
.L35:
	ldr	r3, .L37+20
	ldr	r1, .L37+28
	ldr	r0, [r3]
	bl	elog
	mov	r0, #1
	b	.L1
.L2:
	ldr	r3, .L37+8
	mov	r1, #1
	ldr	r2, [r3]
	b	.L12
.L36:
	bl	__stack_chk_fail
.L38:
	.align	2
.L37:
	.word	INDEX_MAX_KEYS
	.word	.LC2
	.word	NIL
	.word	CEOUC_WAIT
	.word	ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE
	.word	ERROR
	.word	.LC0
	.word	.LC1
	.size	ExecCheckIndexConstraints, .-ExecCheckIndexConstraints
	.comm	NIL,4,4
	.comm	INDEX_MAX_KEYS,4,4
	.comm	ERROR,4,4
	.comm	ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE,4,4
	.comm	CEOUC_WAIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
