	.file	"extr_genam.c_systable_beginscan.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"column is not in index"
	.text
	.p2align 4
	.globl	systable_beginscan
	.type	systable_beginscan, @function
systable_beginscan:
.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
	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
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	QWORD PTR [rsp], rdi
	mov	QWORD PTR 8[rsp], rcx
	mov	DWORD PTR 20[rsp], r8d
	mov	QWORD PTR 24[rsp], r9
	test	edx, edx
	je	.L4
	mov	eax, DWORD PTR IgnoreSystemIndexes[rip]
	test	eax, eax
	je	.L18
.L4:
	xor	r14d, r14d
.L3:
	mov	edi, 4
	call	palloc@PLT
	xor	esi, esi
	mov	r12, rax
	mov	rax, QWORD PTR [rsp]
	mov	QWORD PTR 32[r12], r14
	mov	QWORD PTR 40[r12], rax
	mov	rdi, rax
	call	table_slot_create@PLT
	cmp	QWORD PTR 8[rsp], 0
	mov	DWORD PTR 24[r12], eax
	je	.L19
	mov	QWORD PTR 16[r12], 0
	test	r14, r14
	je	.L7
.L22:
	mov	eax, DWORD PTR 20[rsp]
	test	eax, eax
	jle	.L8
	mov	rdx, QWORD PTR 24[rsp]
	sub	eax, 1
	mov	rbx, rdx
	lea	r13, 4[rdx+rax*4]
	.p2align 4,,10
	.p2align 3
.L9:
	xor	r15d, r15d
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rax, QWORD PTR [r14]
	lea	ecx, 1[r15]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax+r15*4]
	add	r15, 1
	cmp	DWORD PTR [rbx], eax
	je	.L20
.L10:
	mov	rdi, r14
	mov	ebp, r15d
	call	IndexRelationGetNumberOfAttributes@PLT
	cmp	eax, r15d
	jg	.L12
	mov	rdi, r14
	call	IndexRelationGetNumberOfAttributes@PLT
	cmp	eax, ebp
	je	.L21
.L13:
	add	rbx, 4
	cmp	rbx, r13
	jne	.L9
.L8:
	mov	ebx, DWORD PTR 20[rsp]
	mov	rdx, QWORD PTR 8[rsp]
	xor	r8d, r8d
	mov	rsi, r14
	mov	rdi, QWORD PTR [rsp]
	mov	ecx, ebx
	call	index_beginscan@PLT
	mov	rsi, QWORD PTR 24[rsp]
	xor	r8d, r8d
	xor	ecx, ecx
	mov	QWORD PTR [r12], rax
	mov	rdi, rax
	mov	edx, ebx
	call	index_rescan@PLT
	mov	QWORD PTR 8[r12], 0
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
.L20:
	.cfi_restore_state
	mov	DWORD PTR [rbx], ecx
	mov	rdi, r14
	call	IndexRelationGetNumberOfAttributes@PLT
	cmp	eax, ebp
	jne	.L13
.L21:
	mov	edi, DWORD PTR ERROR[rip]
	lea	rsi, .LC0[rip]
	call	elog@PLT
	jmp	.L13
.L18:
	mov	edi, esi
	mov	ebp, esi
	call	ReindexIsProcessingIndex@PLT
	test	eax, eax
	jne	.L4
	mov	esi, DWORD PTR AccessShareLock[rip]
	mov	edi, ebp
	call	index_open@PLT
	mov	r14, rax
	jmp	.L3
.L19:
	mov	rdi, QWORD PTR [rsp]
	call	RelationGetRelid@PLT
	mov	edi, eax
	call	GetCatalogSnapshot@PLT
	mov	edi, eax
	call	RegisterSnapshot@PLT
	mov	QWORD PTR 8[rsp], rax
	mov	QWORD PTR 16[r12], rax
	test	r14, r14
	jne	.L22
.L7:
	mov	rcx, QWORD PTR 24[rsp]
	mov	edx, DWORD PTR 20[rsp]
	xor	r9d, r9d
	mov	r8d, 1
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdi, QWORD PTR [rsp]
	call	table_beginscan_strat@PLT
	mov	QWORD PTR [r12], 0
	mov	QWORD PTR 8[r12], rax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	systable_beginscan, .-systable_beginscan
	.comm	IgnoreSystemIndexes,4,4
	.comm	ERROR,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_genam.c_systable_beginscan.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"column is not in index\000"
	.text
	.align	2
	.global	systable_beginscan
	.syntax unified
	.arm
	.fpu softvfp
	.type	systable_beginscan, %function
systable_beginscan:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	cmp	r2, #0
	sub	sp, sp, #12
	mov	r7, r0
	mov	r8, r3
	ldr	r9, [sp, #48]
	beq	.L4
	ldr	r3, .L23
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L18
.L4:
	mov	r4, #0
.L3:
	mov	r0, #4
	bl	palloc
	mov	r1, #0
	mov	r5, r0
	str	r7, [r0, #20]
	str	r4, [r0, #16]
	mov	r0, r7
	bl	table_slot_create
	cmp	r8, #0
	movne	r3, #0
	str	r0, [r5, #12]
	strne	r3, [r5, #8]
	beq	.L19
	cmp	r4, #0
	beq	.L7
.L22:
	cmp	r9, #0
	ble	.L8
	ldr	r10, [sp, #52]
	add	r6, r10, r9, lsl #2
.L9:
	mov	fp, #0
	b	.L10
.L12:
	ldr	r1, [r4]
	ldr	ip, [r10]
	ldr	r0, [r1]
	add	r1, fp, #1
	ldr	r0, [r0, fp, lsl #2]
	cmp	ip, r0
	beq	.L20
	mov	fp, r1
.L10:
	mov	r0, r4
	bl	IndexRelationGetNumberOfAttributes
	cmp	r0, fp
	bgt	.L12
	mov	r0, r4
	bl	IndexRelationGetNumberOfAttributes
	cmp	r0, fp
	beq	.L21
.L13:
	add	r10, r10, #4
	cmp	r10, r6
	bne	.L9
.L8:
	mov	r6, #0
	mov	r2, r8
	mov	r1, r4
	mov	r3, r9
	mov	r0, r7
	str	r6, [sp]
	bl	index_beginscan
	mov	r2, r9
	str	r0, [r5]
	mov	r3, r6
	ldr	r1, [sp, #52]
	str	r6, [sp]
	bl	index_rescan
	mov	r0, r5
	str	r6, [r5, #4]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	mov	r0, r4
	str	r1, [r10]
	bl	IndexRelationGetNumberOfAttributes
	cmp	r0, fp
	bne	.L13
.L21:
	ldr	r3, .L23+4
	ldr	r1, .L23+8
	ldr	r0, [r3]
	bl	elog
	b	.L13
.L18:
	mov	r0, r1
	mov	r4, r1
	bl	ReindexIsProcessingIndex
	cmp	r0, #0
	bne	.L4
	ldr	r3, .L23+12
	mov	r0, r4
	ldr	r1, [r3]
	bl	index_open
	mov	r4, r0
	b	.L3
.L19:
	mov	r0, r7
	bl	RelationGetRelid
	bl	GetCatalogSnapshot
	bl	RegisterSnapshot
	cmp	r4, #0
	mov	r8, r0
	str	r0, [r5, #8]
	bne	.L22
.L7:
	mov	ip, #1
	mov	r2, r9
	mov	r1, r8
	mov	r0, r7
	ldr	r3, [sp, #52]
	str	r4, [sp, #4]
	str	ip, [sp]
	bl	table_beginscan_strat
	str	r0, [r5, #4]
	mov	r0, r5
	str	r4, [r5]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L24:
	.align	2
.L23:
	.word	IgnoreSystemIndexes
	.word	ERROR
	.word	.LC0
	.word	AccessShareLock
	.size	systable_beginscan, .-systable_beginscan
	.comm	IgnoreSystemIndexes,4,4
	.comm	ERROR,4,4
	.comm	AccessShareLock,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
