	.file	"extr_ruleutils.c_pg_get_indexdef_worker.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ONLY "
.LC1:
	.string	""
.LC2:
	.string	"UNIQUE "
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"cache lookup failed for index %u"
	.align 8
.LC4:
	.string	"cache lookup failed for relation %u"
	.align 8
.LC5:
	.string	"cache lookup failed for access method %u"
	.align 8
.LC6:
	.string	"CREATE %sINDEX %s ON %s%s USING %s ("
	.section	.rodata.str1.1
.LC7:
	.string	"EXCLUDE USING %s ("
.LC8:
	.string	") INCLUDE ("
	.section	.rodata.str1.8
	.align 8
.LC9:
	.string	"too few entries in indexprs list"
	.section	.rodata.str1.1
.LC10:
	.string	"(%s)"
.LC11:
	.string	" COLLATE %s"
.LC12:
	.string	" DESC"
.LC13:
	.string	" NULLS LAST"
.LC14:
	.string	" NULLS FIRST"
.LC15:
	.string	" WITH %s"
.LC16:
	.string	", "
.LC17:
	.string	" WITH (%s)"
.LC18:
	.string	" USING INDEX"
.LC19:
	.string	" TABLESPACE %s"
.LC20:
	.string	" WHERE (%s)"
.LC21:
	.string	" WHERE %s"
	.text
	.p2align 4
	.type	pg_get_indexdef_worker, @function
pg_get_indexdef_worker:
.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
	mov	rbx, rdi
	sub	rsp, 184
	.cfi_def_cfa_offset 240
	mov	QWORD PTR 80[rsp], rdi
	mov	DWORD PTR 4[rsp], esi
	mov	QWORD PTR 64[rsp], rdx
	mov	DWORD PTR 8[rsp], ecx
	mov	DWORD PTR 12[rsp], r8d
	mov	DWORD PTR 124[rsp], r9d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 168[rsp], rax
	xor	eax, eax
	call	ObjectIdGetDatum@PLT
	mov	edi, DWORD PTR INDEXRELID[rip]
	mov	esi, eax
	call	SearchSysCache1@PLT
	mov	edi, eax
	mov	DWORD PTR 72[rsp], eax
	call	HeapTupleIsValid@PLT
	test	eax, eax
	jne	.L2
	mov	ecx, DWORD PTR 256[rsp]
	xor	eax, eax
	test	ecx, ecx
	jne	.L1
	mov	edi, DWORD PTR ERROR[rip]
	mov	rdx, rbx
	lea	rsi, .LC3[rip]
	call	elog@PLT
.L2:
	mov	ebx, DWORD PTR 72[rsp]
	lea	r12, 136[rsp]
	mov	edi, ebx
	call	GETSTRUCT@PLT
	mov	r15, QWORD PTR 80[rsp]
	xor	edi, edi
	mov	r13, rax
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR 8[r13], r15
	sete	dil
	mov	QWORD PTR 32[rsp], rax
	call	Assert@PLT
	mov	edx, DWORD PTR Anum_pg_index_indcollation[rip]
	mov	rcx, r12
	mov	esi, ebx
	mov	edi, DWORD PTR INDEXRELID[rip]
	call	SysCacheGetAttr@PLT
	xor	edi, edi
	mov	ebp, eax
	mov	eax, DWORD PTR 136[rsp]
	test	eax, eax
	sete	dil
	call	Assert@PLT
	mov	edi, ebp
	call	DatumGetPointer@PLT
	mov	edx, DWORD PTR Anum_pg_index_indclass[rip]
	mov	rcx, r12
	mov	esi, ebx
	mov	edi, DWORD PTR INDEXRELID[rip]
	mov	QWORD PTR 88[rsp], rax
	call	SysCacheGetAttr@PLT
	xor	edi, edi
	mov	ebp, eax
	mov	eax, DWORD PTR 136[rsp]
	test	eax, eax
	sete	dil
	call	Assert@PLT
	mov	edi, ebp
	call	DatumGetPointer@PLT
	mov	edx, DWORD PTR Anum_pg_index_indoption[rip]
	mov	rcx, r12
	mov	esi, ebx
	mov	edi, DWORD PTR INDEXRELID[rip]
	mov	QWORD PTR 96[rsp], rax
	call	SysCacheGetAttr@PLT
	mov	edx, DWORD PTR 136[rsp]
	xor	edi, edi
	mov	ebp, eax
	test	edx, edx
	sete	dil
	call	Assert@PLT
	mov	edi, ebp
	call	DatumGetPointer@PLT
	mov	rdi, r15
	mov	QWORD PTR 104[rsp], rax
	call	ObjectIdGetDatum@PLT
	mov	edi, DWORD PTR RELOID[rip]
	mov	esi, eax
	call	SearchSysCache1@PLT
	mov	edi, eax
	mov	DWORD PTR 76[rsp], eax
	call	HeapTupleIsValid@PLT
	test	eax, eax
	je	.L105
.L4:
	mov	edi, DWORD PTR 76[rsp]
	call	GETSTRUCT@PLT
	mov	rdi, QWORD PTR [rax]
	mov	rbp, rax
	call	ObjectIdGetDatum@PLT
	mov	edi, DWORD PTR AMOID[rip]
	mov	esi, eax
	call	SearchSysCache1@PLT
	mov	edi, eax
	mov	DWORD PTR 120[rsp], eax
	call	HeapTupleIsValid@PLT
	test	eax, eax
	je	.L106
.L5:
	mov	edi, DWORD PTR 120[rsp]
	call	GETSTRUCT@PLT
	mov	edi, DWORD PTR 4[rax]
	mov	rbx, rax
	call	GetIndexAmRoutine@PLT
	mov	esi, DWORD PTR Anum_pg_index_indexprs[rip]
	mov	edi, DWORD PTR 72[rsp]
	xor	edx, edx
	mov	QWORD PTR 112[rsp], rax
	call	heap_attisnull@PLT
	mov	rcx, QWORD PTR NIL[rip]
	mov	QWORD PTR 24[rsp], rcx
	test	eax, eax
	je	.L107
.L7:
	mov	rdi, QWORD PTR 24[rsp]
	call	list_head@PLT
	mov	r15, QWORD PTR 32[rsp]
	mov	r12, rax
	mov	rdi, r15
	call	get_relation_name@PLT
	mov	rsi, r15
	lea	r15, 144[rsp]
	mov	edi, eax
	call	deparse_context_for@PLT
	mov	rdi, r15
	mov	QWORD PTR 40[rsp], rax
	call	initStringInfo@PLT
	mov	eax, DWORD PTR 8[rsp]
	test	eax, eax
	je	.L108
	mov	eax, DWORD PTR 16[r13]
	test	eax, eax
	jle	.L37
.L57:
	lea	rax, 160[rsp]
	xor	ebx, ebx
	lea	rsi, .LC1[rip]
	mov	QWORD PTR 48[rsp], rax
	lea	rax, 140[rsp]
	mov	QWORD PTR 56[rsp], rax
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L111:
	cmp	DWORD PTR 20[r13], ebx
	jle	.L35
	mov	ecx, DWORD PTR 4[rsp]
	test	ecx, ecx
	jne	.L19
.L20:
	mov	rdi, r15
	lea	r14d, 1[rbx]
	call	appendStringInfoString@PLT
	test	rbp, rbp
	jne	.L109
	test	r12, r12
	je	.L110
	mov	rdi, r12
	call	lfirst@PLT
	mov	rsi, r12
	mov	rbp, rax
.L103:
	mov	rdi, QWORD PTR 24[rsp]
	call	lnext@PLT
	mov	rsi, QWORD PTR 40[rsp]
	xor	edx, edx
	xor	r9d, r9d
	mov	r8d, DWORD PTR 248[rsp]
	xor	ecx, ecx
	mov	rdi, rbp
	mov	r12, rax
	call	deparse_expression_pretty@PLT
	mov	rdx, rax
.L22:
	mov	rdi, rbp
	mov	QWORD PTR 16[rsp], rdx
	call	looks_like_function@PLT
	mov	rdx, QWORD PTR 16[rsp]
	test	rax, rax
	je	.L24
	mov	rsi, rdx
	mov	rdi, r15
	call	appendStringInfoString@PLT
.L23:
	mov	rdi, rbp
	call	exprType@PLT
	mov	rdi, rbp
	mov	QWORD PTR 152[rsp], rax
	call	exprCollation@PLT
	mov	QWORD PTR 160[rsp], rax
.L21:
	mov	r9d, DWORD PTR 8[rsp]
	test	r9d, r9d
	jne	.L26
	cmp	DWORD PTR 20[r13], ebx
	jle	.L26
	mov	eax, DWORD PTR 4[rsp]
	test	eax, eax
	je	.L28
	cmp	eax, r14d
	je	.L28
	.p2align 4,,10
	.p2align 3
.L26:
	add	rbx, 1
	lea	rsi, .LC16[rip]
	cmp	DWORD PTR 16[r13], r14d
	jle	.L35
.L34:
	lea	rax, 0[0+rbx*8]
	mov	r11d, DWORD PTR 12[rsp]
	mov	QWORD PTR 16[rsp], rax
	mov	rax, QWORD PTR 24[r13]
	mov	rbp, QWORD PTR [rax+rbx*8]
	test	r11d, r11d
	jne	.L111
	mov	r10d, DWORD PTR 4[rsp]
	test	r10d, r10d
	jne	.L19
	cmp	DWORD PTR 20[r13], ebx
	jne	.L20
	lea	rsi, .LC8[rip]
	mov	rdi, r15
	call	appendStringInfoString@PLT
	lea	rsi, .LC1[rip]
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L35:
	mov	r8d, DWORD PTR 8[rsp]
	test	r8d, r8d
	jne	.L37
.L36:
	mov	esi, 41
	mov	rdi, r15
	call	appendStringInfoChar@PLT
	mov	rdi, QWORD PTR 80[rsp]
	call	flatten_reloptions@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L38
	mov	rdx, rax
	mov	rdi, r15
	lea	rsi, .LC17[rip]
	xor	eax, eax
	call	appendStringInfo@PLT
	mov	rdi, rbp
	call	pfree@PLT
.L38:
	mov	edi, DWORD PTR 124[rsp]
	test	edi, edi
	je	.L40
	mov	rdi, QWORD PTR 80[rsp]
	call	get_rel_tablespace@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	OidIsValid@PLT
	test	rax, rax
	je	.L40
	cmp	QWORD PTR 64[rsp], 0
	je	.L42
	lea	rsi, .LC18[rip]
	mov	rdi, r15
	call	appendStringInfoString@PLT
.L42:
	mov	rdi, rbp
	call	get_tablespace_name@PLT
	mov	rdi, rax
	call	quote_identifier@PLT
	lea	rsi, .LC19[rip]
	mov	rdi, r15
	mov	rdx, rax
	xor	eax, eax
	call	appendStringInfo@PLT
	.p2align 4,,10
	.p2align 3
.L40:
	mov	esi, DWORD PTR Anum_pg_index_indpred[rip]
	mov	edi, DWORD PTR 72[rsp]
	xor	edx, edx
	call	heap_attisnull@PLT
	test	eax, eax
	jne	.L37
	mov	edx, DWORD PTR Anum_pg_index_indpred[rip]
	mov	esi, DWORD PTR 72[rsp]
	lea	rcx, 160[rsp]
	mov	edi, DWORD PTR INDEXRELID[rip]
	call	SysCacheGetAttr@PLT
	mov	esi, DWORD PTR 160[rsp]
	xor	edi, edi
	mov	ebp, eax
	test	esi, esi
	sete	dil
	call	Assert@PLT
	mov	edi, ebp
	call	TextDatumGetCString@PLT
	mov	rbp, rax
	mov	rdi, rax
	call	stringToNode@PLT
	mov	rdi, rbp
	mov	r12, rax
	call	pfree@PLT
	mov	rsi, QWORD PTR 40[rsp]
	xor	edx, edx
	xor	r9d, r9d
	mov	r8d, DWORD PTR 248[rsp]
	xor	ecx, ecx
	mov	rdi, r12
	call	deparse_expression_pretty@PLT
	cmp	QWORD PTR 64[rsp], 0
	mov	rdx, rax
	je	.L44
	lea	rsi, .LC20[rip]
	mov	rdi, r15
	xor	eax, eax
	call	appendStringInfo@PLT
	.p2align 4,,10
	.p2align 3
.L37:
	mov	edi, DWORD PTR 72[rsp]
	call	ReleaseSysCache@PLT
	mov	edi, DWORD PTR 76[rsp]
	call	ReleaseSysCache@PLT
	mov	edi, DWORD PTR 120[rsp]
	call	ReleaseSysCache@PLT
	mov	rax, QWORD PTR 144[rsp]
.L1:
	mov	rcx, QWORD PTR 168[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L112
	add	rsp, 184
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L108:
	.cfi_restore_state
	cmp	QWORD PTR 64[rsp], 0
	mov	edi, DWORD PTR [rbx]
	je	.L113
	call	NameStr@PLT
	mov	rdi, rax
	call	quote_identifier@PLT
	lea	rsi, .LC7[rip]
	mov	rdi, r15
	mov	rdx, rax
	xor	eax, eax
	call	appendStringInfo@PLT
.L15:
	mov	edx, DWORD PTR 16[r13]
	test	edx, edx
	jg	.L57
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L19:
	lea	r14d, 1[rbx]
	test	rbp, rbp
	jne	.L114
	test	r12, r12
	je	.L115
	mov	rdi, r12
	call	lfirst@PLT
	mov	rsi, r12
	mov	rbp, rax
.L102:
	mov	rdi, QWORD PTR 24[rsp]
	call	lnext@PLT
	mov	rsi, QWORD PTR 40[rsp]
	xor	edx, edx
	xor	r9d, r9d
	mov	r8d, DWORD PTR 248[rsp]
	xor	ecx, ecx
	mov	rdi, rbp
	mov	r12, rax
	call	deparse_expression_pretty@PLT
	mov	rdx, rax
	cmp	DWORD PTR 4[rsp], r14d
	jne	.L23
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L114:
	mov	rdi, QWORD PTR 32[rsp]
	xor	edx, edx
	mov	rsi, rbp
	call	get_attname@PLT
	mov	rdi, rax
	cmp	DWORD PTR 4[rsp], r14d
	je	.L46
.L47:
	mov	r8, QWORD PTR 48[rsp]
	mov	rcx, QWORD PTR 56[rsp]
	mov	rsi, rbp
	lea	rdx, 152[rsp]
	mov	rdi, QWORD PTR 32[rsp]
	call	get_atttypetypmodcoll@PLT
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L24:
	lea	rsi, .LC10[rip]
	mov	rdi, r15
	xor	eax, eax
	call	appendStringInfo@PLT
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L109:
	mov	rdi, QWORD PTR 32[rsp]
	xor	edx, edx
	mov	rsi, rbp
	call	get_attname@PLT
	mov	rdi, rax
.L46:
	call	quote_identifier@PLT
	mov	rdi, r15
	mov	rsi, rax
	call	appendStringInfoString@PLT
	jmp	.L47
	.p2align 4,,10
	.p2align 3
.L28:
	mov	rax, QWORD PTR 104[rsp]
	lea	rcx, 0[0+rbx*8]
	mov	rax, QWORD PTR [rax]
	mov	ebp, DWORD PTR [rax+rbx*4]
	mov	rax, QWORD PTR 88[rsp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, QWORD PTR [rax+rcx]
	mov	QWORD PTR 16[rsp], rdi
	call	OidIsValid@PLT
	test	rax, rax
	je	.L29
	mov	rdi, QWORD PTR 16[rsp]
	cmp	QWORD PTR 160[rsp], rdi
	je	.L29
	call	generate_collation_name@PLT
	lea	rsi, .LC11[rip]
	mov	rdi, r15
	mov	rdx, rax
	xor	eax, eax
	call	appendStringInfo@PLT
.L29:
	mov	rax, QWORD PTR 96[rsp]
	lea	rcx, 0[0+rbx*8]
	mov	rsi, QWORD PTR 152[rsp]
	mov	rdx, r15
	mov	rax, QWORD PTR [rax]
	mov	rdi, QWORD PTR [rax+rcx]
	call	get_opclass_name@PLT
	mov	rax, QWORD PTR 112[rsp]
	cmp	QWORD PTR [rax], 0
	je	.L31
	test	DWORD PTR INDOPTION_DESC[rip], ebp
	jne	.L116
	test	DWORD PTR INDOPTION_NULLS_FIRST[rip], ebp
	jne	.L117
.L31:
	mov	rax, QWORD PTR 64[rsp]
	test	rax, rax
	je	.L26
	mov	rsi, QWORD PTR 152[rsp]
	mov	rdi, QWORD PTR [rax+rbx*8]
	mov	rdx, rsi
	call	generate_operator_name@PLT
	lea	rsi, .LC15[rip]
	mov	rdi, r15
	mov	rdx, rax
	xor	eax, eax
	call	appendStringInfo@PLT
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L115:
	mov	edi, DWORD PTR ERROR[rip]
	lea	rsi, .LC9[rip]
	xor	eax, eax
	call	elog@PLT
	xor	edi, edi
	call	lfirst@PLT
	xor	esi, esi
	mov	rbp, rax
	jmp	.L102
	.p2align 4,,10
	.p2align 3
.L110:
	mov	edi, DWORD PTR ERROR[rip]
	lea	rsi, .LC9[rip]
	xor	eax, eax
	call	elog@PLT
	xor	edi, edi
	call	lfirst@PLT
	xor	esi, esi
	mov	rbp, rax
	jmp	.L103
	.p2align 4,,10
	.p2align 3
.L107:
	mov	edx, DWORD PTR Anum_pg_index_indexprs[rip]
	mov	esi, DWORD PTR 72[rsp]
	lea	rcx, 160[rsp]
	mov	edi, DWORD PTR INDEXRELID[rip]
	call	SysCacheGetAttr@PLT
	xor	edi, edi
	mov	r12d, eax
	mov	eax, DWORD PTR 160[rsp]
	test	eax, eax
	sete	dil
	call	Assert@PLT
	mov	edi, r12d
	call	TextDatumGetCString@PLT
	mov	r12, rax
	mov	rdi, rax
	call	stringToNode@PLT
	mov	rdi, r12
	mov	QWORD PTR 24[rsp], rax
	call	pfree@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L106:
	mov	rdx, QWORD PTR 0[rbp]
	mov	edi, DWORD PTR ERROR[rip]
	lea	rsi, .LC5[rip]
	call	elog@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L105:
	mov	rdx, QWORD PTR 80[rsp]
	mov	edi, DWORD PTR ERROR[rip]
	lea	rsi, .LC4[rip]
	call	elog@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L116:
	lea	rsi, .LC12[rip]
	mov	rdi, r15
	call	appendStringInfoString@PLT
	test	DWORD PTR INDOPTION_NULLS_FIRST[rip], ebp
	jne	.L31
	lea	rsi, .LC13[rip]
	mov	rdi, r15
	call	appendStringInfoString@PLT
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L117:
	lea	rsi, .LC14[rip]
	mov	rdi, r15
	call	appendStringInfoString@PLT
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L113:
	call	NameStr@PLT
	mov	rdi, rax
	call	quote_identifier@PLT
	mov	rbx, rax
	mov	eax, DWORD PTR PRETTYFLAG_SCHEMA[rip]
	test	DWORD PTR 248[rsp], eax
	je	.L10
	mov	rsi, QWORD PTR NIL[rip]
	mov	rdi, QWORD PTR 32[rsp]
	call	generate_relation_name@PLT
	mov	r14d, eax
.L11:
	mov	rax, QWORD PTR RELKIND_PARTITIONED_INDEX[rip]
	cmp	QWORD PTR 8[rbp], rax
	jne	.L63
	mov	eax, DWORD PTR 240[rsp]
	lea	r8, .LC0[rip]
	test	eax, eax
	je	.L12
.L63:
	lea	r8, .LC1[rip]
.L12:
	mov	edi, DWORD PTR 16[rbp]
	mov	QWORD PTR 16[rsp], r8
	call	NameStr@PLT
	mov	rdi, rax
	call	quote_identifier@PLT
	cmp	QWORD PTR 32[r13], 0
	mov	r9d, r14d
	mov	rdi, r15
	mov	rcx, rax
	lea	rdx, .LC2[rip]
	lea	rax, .LC1[rip]
	cmove	rdx, rax
	sub	rsp, 8
	.cfi_def_cfa_offset 248
	lea	rsi, .LC6[rip]
	xor	eax, eax
	push	rbx
	.cfi_def_cfa_offset 256
	mov	r8, QWORD PTR 32[rsp]
	call	appendStringInfo@PLT
	pop	rbx
	.cfi_def_cfa_offset 248
	pop	rbp
	.cfi_def_cfa_offset 240
	jmp	.L15
.L10:
	mov	rdi, QWORD PTR 32[rsp]
	call	generate_qualified_relation_name@PLT
	mov	r14d, eax
	jmp	.L11
.L44:
	lea	rsi, .LC21[rip]
	mov	rdi, r15
	xor	eax, eax
	call	appendStringInfo@PLT
	jmp	.L37
.L112:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pg_get_indexdef_worker, .-pg_get_indexdef_worker
	.comm	RELOID,4,4
	.comm	RELKIND_PARTITIONED_INDEX,8,8
	.comm	PRETTYFLAG_SCHEMA,4,4
	.comm	NIL,8,8
	.comm	INDOPTION_NULLS_FIRST,4,4
	.comm	INDOPTION_DESC,4,4
	.comm	INDEXRELID,4,4
	.comm	ERROR,4,4
	.comm	Anum_pg_index_indpred,4,4
	.comm	Anum_pg_index_indoption,4,4
	.comm	Anum_pg_index_indexprs,4,4
	.comm	Anum_pg_index_indcollation,4,4
	.comm	Anum_pg_index_indclass,4,4
	.comm	AMOID,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_ruleutils.c_pg_get_indexdef_worker.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"UNIQUE \000"
	.align	2
.LC1:
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"ONLY \000"
	.align	2
.LC3:
	.ascii	"cache lookup failed for index %u\000"
	.align	2
.LC4:
	.ascii	"cache lookup failed for relation %u\000"
	.align	2
.LC5:
	.ascii	"cache lookup failed for access method %u\000"
	.align	2
.LC6:
	.ascii	"CREATE %sINDEX %s ON %s%s USING %s (\000"
	.align	2
.LC7:
	.ascii	"EXCLUDE USING %s (\000"
	.align	2
.LC8:
	.ascii	") INCLUDE (\000"
	.align	2
.LC9:
	.ascii	"too few entries in indexprs list\000"
	.align	2
.LC10:
	.ascii	"(%s)\000"
	.align	2
.LC11:
	.ascii	" COLLATE %s\000"
	.align	2
.LC12:
	.ascii	" DESC\000"
	.align	2
.LC13:
	.ascii	" NULLS LAST\000"
	.align	2
.LC14:
	.ascii	" NULLS FIRST\000"
	.align	2
.LC15:
	.ascii	" WITH %s\000"
	.align	2
.LC16:
	.ascii	", \000"
	.align	2
.LC17:
	.ascii	" WITH (%s)\000"
	.align	2
.LC18:
	.ascii	" USING INDEX\000"
	.align	2
.LC19:
	.ascii	" TABLESPACE %s\000"
	.align	2
.LC20:
	.ascii	" WHERE (%s)\000"
	.align	2
.LC21:
	.ascii	" WHERE %s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pg_get_indexdef_worker, %function
pg_get_indexdef_worker:
	@ args = 20, pretend = 0, frame = 80
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #100
	str	r3, [sp, #16]
	mov	r9, r1
	ldr	r3, .L112
	ldr	r1, .L112+4
	str	r2, [sp, #40]
	ldr	r3, [r3]
	str	r3, [sp, #92]
	mov	r3,#0
	ldr	r4, [r1]
	mov	r5, r0
	str	r0, [sp, #52]
	bl	ObjectIdGetDatum
	mov	r1, r0
	mov	r0, r4
	bl	SearchSysCache1
	str	r0, [sp, #36]
	bl	HeapTupleIsValid
	cmp	r0, #0
	bne	.L2
	ldr	r3, [sp, #152]
	cmp	r3, #0
	bne	.L1
	ldr	r3, .L112+8
	mov	r2, r5
	ldr	r0, [r3]
	ldr	r1, .L112+12
	bl	elog
.L2:
	ldr	r5, [sp, #36]
	ldr	r6, .L112+4
	mov	r0, r5
	bl	GETSTRUCT
	ldr	r8, [sp, #52]
	mov	r7, r0
	ldr	r0, [r0, #4]
	ldr	r10, [r7]
	sub	r0, r0, r8
	clz	r0, r0
	lsr	r0, r0, #5
	bl	Assert
	ldr	r3, .L112+16
	mov	r1, r5
	ldr	r2, [r3]
	ldr	r0, [r6]
	add	r3, sp, #72
	bl	SysCacheGetAttr
	ldr	r3, [sp, #72]
	mov	r4, r0
	clz	r0, r3
	lsr	r0, r0, #5
	bl	Assert
	mov	r0, r4
	bl	DatumGetPointer
	mov	ip, r0
	ldr	r2, .L112+20
	mov	r1, r5
	ldr	r2, [r2]
	add	r3, sp, #72
	ldr	r0, [r6]
	str	ip, [sp, #56]
	bl	SysCacheGetAttr
	ldr	r3, [sp, #72]
	mov	r4, r0
	clz	r0, r3
	lsr	r0, r0, #5
	bl	Assert
	mov	r0, r4
	bl	DatumGetPointer
	mov	ip, r0
	ldr	r2, .L112+24
	mov	r1, r5
	ldr	r2, [r2]
	add	r3, sp, #72
	ldr	r0, [r6]
	str	ip, [sp, #60]
	bl	SysCacheGetAttr
	ldr	r3, [sp, #72]
	mov	r4, r0
	clz	r0, r3
	lsr	r0, r0, #5
	bl	Assert
	mov	r0, r4
	bl	DatumGetPointer
	mov	r3, r0
	ldr	r2, .L112+28
	mov	r0, r8
	ldr	r4, [r2]
	str	r3, [sp, #64]
	bl	ObjectIdGetDatum
	mov	r1, r0
	mov	r0, r4
	bl	SearchSysCache1
	str	r0, [sp, #44]
	bl	HeapTupleIsValid
	cmp	r0, #0
	beq	.L99
.L4:
	ldr	r0, [sp, #44]
	bl	GETSTRUCT
	ldr	r3, .L112+32
	mov	r4, r0
	ldr	r0, [r0]
	ldr	r5, [r3]
	bl	ObjectIdGetDatum
	mov	r1, r0
	mov	r0, r5
	bl	SearchSysCache1
	str	r0, [sp, #48]
	bl	HeapTupleIsValid
	cmp	r0, #0
	beq	.L100
.L5:
	ldr	r0, [sp, #48]
	bl	GETSTRUCT
	mov	r5, r0
	ldr	r0, [r0, #4]
	bl	GetIndexAmRoutine
	mov	r3, r0
	ldr	r6, .L112+36
	mov	r2, #0
	ldr	r1, [r6]
	ldr	r0, [sp, #36]
	str	r3, [sp, #68]
	bl	heap_attisnull
	cmp	r0, #0
	beq	.L101
	ldr	r3, .L112+40
	ldr	r3, [r3]
	str	r3, [sp, #20]
.L7:
	ldr	r0, [sp, #20]
	bl	list_head
	mov	r6, r0
	mov	r0, r10
	bl	get_relation_name
	mov	r1, r10
	bl	deparse_context_for
	mov	fp, r0
	add	r0, sp, #76
	str	fp, [sp, #24]
	bl	initStringInfo
	ldr	r3, [sp, #16]
	cmp	r3, #0
	beq	.L102
	ldr	r3, [r7, #8]
	cmp	r3, #0
	ble	.L36
.L56:
	mov	r4, #0
	ldr	r1, .L112+44
	str	r10, [sp, #32]
	b	.L33
.L105:
	ldr	r2, [r7, #12]
	cmp	r2, r4
	ble	.L34
	cmp	r9, #0
	bne	.L18
.L19:
	add	r0, sp, #76
	bl	appendStringInfoString
	cmp	r10, #0
	add	r8, r4, #1
	bne	.L103
	cmp	r6, #0
	beq	.L104
.L94:
	mov	r0, r6
	bl	lfirst
	mov	r1, r6
	mov	r5, r0
	ldr	r0, [sp, #20]
	bl	lnext
	ldr	r3, [sp, #148]
	mov	r2, r10
	str	r3, [sp]
	mov	r6, r0
	mov	r3, r10
	mov	r0, r5
	ldr	r1, [sp, #24]
	str	r10, [sp, #4]
	bl	deparse_expression_pretty
	mov	r2, r0
.L21:
	mov	r0, r5
	str	r2, [sp, #28]
	bl	looks_like_function
	cmp	r0, #0
	ldr	r2, [sp, #28]
	beq	.L23
	mov	r1, r2
	add	r0, sp, #76
	bl	appendStringInfoString
.L22:
	mov	r0, r5
	bl	exprType
	mov	r3, r0
	mov	r0, r5
	str	r3, [sp, #80]
	bl	exprCollation
	str	r0, [sp, #84]
.L20:
	ldr	r3, [sp, #16]
	cmp	r3, #0
	bne	.L25
	ldr	r3, [r7, #12]
	cmp	r3, r4
	ble	.L25
	cmp	r9, #0
	beq	.L27
	cmp	r9, r8
	beq	.L27
.L25:
	ldr	r3, [r7, #8]
	mov	r4, r8
	cmp	r3, r8
	ldr	r1, .L112+48
	ble	.L34
.L33:
	ldr	r2, [sp, #136]
	ldr	r3, [r7, #16]
	cmp	r2, #0
	ldr	r10, [r3, r4, lsl #2]
	lsl	fp, r4, #2
	bne	.L105
	cmp	r9, #0
	bne	.L18
	ldr	r2, [r7, #12]
	cmp	r2, r4
	bne	.L19
	ldr	r1, .L112+52
	add	r0, sp, #76
	bl	appendStringInfoString
	ldr	r1, .L112+44
	b	.L19
.L34:
	ldr	r3, [sp, #16]
	cmp	r3, #0
	bne	.L36
.L35:
	mov	r1, #41
	add	r0, sp, #76
	bl	appendStringInfoChar
	ldr	r0, [sp, #52]
	bl	flatten_reloptions
	subs	r4, r0, #0
	beq	.L37
	mov	r2, r4
	ldr	r1, .L112+56
	add	r0, sp, #76
	bl	appendStringInfo
	mov	r0, r4
	bl	pfree
.L37:
	ldr	r3, [sp, #140]
	cmp	r3, #0
	beq	.L39
	ldr	r0, [sp, #52]
	bl	get_rel_tablespace
	mov	r4, r0
	bl	OidIsValid
	cmp	r0, #0
	beq	.L39
	ldr	r3, [sp, #40]
	cmp	r3, #0
	beq	.L41
	ldr	r1, .L112+60
	add	r0, sp, #76
	bl	appendStringInfoString
.L41:
	mov	r0, r4
	bl	get_tablespace_name
	bl	quote_identifier
	ldr	r1, .L112+64
	mov	r2, r0
	add	r0, sp, #76
	bl	appendStringInfo
.L39:
	ldr	r5, .L112+68
	mov	r2, #0
	ldr	r1, [r5]
	ldr	r0, [sp, #36]
	bl	heap_attisnull
	subs	r4, r0, #0
	bne	.L36
	ldr	r3, .L112+4
	ldr	r2, [r5]
	ldr	r1, [sp, #36]
	ldr	r0, [r3]
	add	r3, sp, #88
	bl	SysCacheGetAttr
	ldr	r3, [sp, #88]
	mov	r5, r0
	clz	r0, r3
	lsr	r0, r0, #5
	bl	Assert
	mov	r0, r5
	bl	TextDatumGetCString
	mov	r6, r0
	bl	stringToNode
	mov	r5, r0
	mov	r0, r6
	bl	pfree
	ldr	r3, [sp, #148]
	ldr	r1, [sp, #24]
	mov	r2, r4
	str	r3, [sp]
	mov	r0, r5
	mov	r3, r4
	str	r4, [sp, #4]
	bl	deparse_expression_pretty
	ldr	r3, [sp, #40]
	mov	r2, r0
	cmp	r3, #0
	ldrne	r1, .L112+72
	ldreq	r1, .L112+76
	add	r0, sp, #76
	bl	appendStringInfo
.L36:
	ldr	r0, [sp, #36]
	bl	ReleaseSysCache
	ldr	r0, [sp, #44]
	bl	ReleaseSysCache
	ldr	r0, [sp, #48]
	bl	ReleaseSysCache
	ldr	r0, [sp, #76]
.L1:
	ldr	r3, .L112
	ldr	r2, [r3]
	ldr	r3, [sp, #92]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L106
	add	sp, sp, #100
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L102:
	ldr	r3, [sp, #40]
	cmp	r3, #0
	beq	.L107
	ldr	r0, [r5]
	bl	NameStr
	bl	quote_identifier
	ldr	r1, .L112+80
	mov	r2, r0
	add	r0, sp, #76
	bl	appendStringInfo
.L14:
	ldr	r3, [r7, #8]
	cmp	r3, #0
	bgt	.L56
	b	.L35
.L18:
	cmp	r10, #0
	add	r8, r4, #1
	bne	.L108
	cmp	r6, #0
	beq	.L109
.L97:
	mov	r0, r6
	bl	lfirst
	mov	r1, r6
	mov	r5, r0
	ldr	r0, [sp, #20]
	bl	lnext
	ldr	r3, [sp, #148]
	mov	r2, r10
	str	r3, [sp]
	mov	r6, r0
	mov	r3, r10
	mov	r0, r5
	ldr	r1, [sp, #24]
	str	r10, [sp, #4]
	bl	deparse_expression_pretty
	cmp	r9, r8
	mov	r2, r0
	bne	.L22
	b	.L21
.L108:
	mov	r2, #0
	mov	r1, r10
	ldr	r0, [sp, #32]
	bl	get_attname
	cmp	r9, r8
	beq	.L45
.L46:
	add	r2, sp, #84
	str	r2, [sp]
	mov	r1, r10
	ldr	r0, [sp, #32]
	add	r3, sp, #88
	add	r2, sp, #80
	bl	get_atttypetypmodcoll
	b	.L20
.L23:
	ldr	r1, .L112+84
	add	r0, sp, #76
	bl	appendStringInfo
	b	.L22
.L103:
	mov	r2, #0
	mov	r1, r10
	ldr	r0, [sp, #32]
	bl	get_attname
.L45:
	bl	quote_identifier
	mov	r1, r0
	add	r0, sp, #76
	bl	appendStringInfoString
	b	.L46
.L27:
	ldr	r3, [sp, #56]
	ldr	r2, [sp, #64]
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r10, [r3, fp]
	ldr	r5, [r2, fp]
	mov	r0, r10
	bl	OidIsValid
	cmp	r0, #0
	beq	.L28
	ldr	r2, [sp, #84]
	cmp	r2, r10
	beq	.L28
	mov	r0, r10
	bl	generate_collation_name
	ldr	r1, .L112+88
	mov	r2, r0
	add	r0, sp, #76
	bl	appendStringInfo
.L28:
	ldr	r3, [sp, #60]
	ldr	r1, [sp, #80]
	ldr	r3, [r3]
	add	r2, sp, #76
	ldr	r0, [r3, fp]
	bl	get_opclass_name
	ldr	r3, [sp, #68]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L30
	ldr	r3, .L112+92
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L110
	ldr	r3, .L112+96
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L111
.L30:
	ldr	r3, [sp, #40]
	cmp	r3, #0
	beq	.L25
	ldr	r2, [sp, #80]
	ldr	r0, [r3, r4, lsl #2]
	mov	r1, r2
	bl	generate_operator_name
	ldr	r1, .L112+100
	mov	r2, r0
	add	r0, sp, #76
	bl	appendStringInfo
	b	.L25
.L109:
	ldr	r3, .L112+8
	ldr	r1, .L112+104
	ldr	r0, [r3]
	bl	elog
	b	.L97
.L104:
	ldr	r3, .L112+8
	ldr	r1, .L112+104
	ldr	r0, [r3]
	bl	elog
	b	.L94
.L101:
	ldr	r0, .L112+4
	ldr	r2, [r6]
	ldr	r1, [sp, #36]
	add	r3, sp, #88
	ldr	r0, [r0]
	bl	SysCacheGetAttr
	ldr	r3, [sp, #88]
	mov	r6, r0
	clz	r0, r3
	lsr	r0, r0, #5
	bl	Assert
	mov	r0, r6
	bl	TextDatumGetCString
	mov	r6, r0
	bl	stringToNode
	mov	r3, r0
	mov	r0, r6
	str	r3, [sp, #20]
	bl	pfree
	b	.L7
.L100:
	ldr	r3, .L112+8
	ldr	r2, [r4]
	ldr	r0, [r3]
	ldr	r1, .L112+108
	bl	elog
	b	.L5
.L99:
	ldr	r3, .L112+8
	ldr	r2, [sp, #52]
	ldr	r0, [r3]
	ldr	r1, .L112+112
	bl	elog
	b	.L4
.L110:
	ldr	r1, .L112+116
	add	r0, sp, #76
	bl	appendStringInfoString
	ldr	r3, .L112+96
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L30
	ldr	r1, .L112+120
	add	r0, sp, #76
	bl	appendStringInfoString
	b	.L30
.L107:
	ldr	r2, [r7, #20]
	ldr	r3, .L112+124
	ldr	r8, .L112+44
	cmp	r2, #0
	ldr	r0, [r4, #8]
	movne	fp, r3
	moveq	fp, r8
	bl	NameStr
	bl	quote_identifier
	ldr	r3, .L112+128
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	ldr	r1, [sp, #144]
	mov	r4, r0
	cmp	r2, r3
	cmpeq	r1, #0
	ldr	r2, .L112+132
	ldr	r3, .L112+136
	moveq	r8, r2
	ldr	r3, [r3]
	ldr	r2, [sp, #148]
	tst	r2, r3
	beq	.L12
	ldr	r3, .L112+40
	mov	r0, r10
	ldr	r1, [r3]
	bl	generate_relation_name
	mov	r3, r0
.L13:
	ldr	r0, [r5]
	str	r3, [sp, #28]
	bl	NameStr
	bl	quote_identifier
	ldr	r3, [sp, #28]
	str	r0, [sp, #8]
	str	r3, [sp, #4]
	mov	r2, fp
	mov	r3, r4
	ldr	r1, .L112+140
	str	r8, [sp]
	add	r0, sp, #76
	bl	appendStringInfo
	b	.L14
.L111:
	ldr	r1, .L112+144
	add	r0, sp, #76
	bl	appendStringInfoString
	b	.L30
.L12:
	mov	r0, r10
	bl	generate_qualified_relation_name
	mov	r3, r0
	b	.L13
.L106:
	bl	__stack_chk_fail
.L113:
	.align	2
.L112:
	.word	.LC22
	.word	INDEXRELID
	.word	ERROR
	.word	.LC3
	.word	Anum_pg_index_indcollation
	.word	Anum_pg_index_indclass
	.word	Anum_pg_index_indoption
	.word	RELOID
	.word	AMOID
	.word	Anum_pg_index_indexprs
	.word	NIL
	.word	.LC1
	.word	.LC16
	.word	.LC8
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	Anum_pg_index_indpred
	.word	.LC20
	.word	.LC21
	.word	.LC7
	.word	.LC10
	.word	.LC11
	.word	INDOPTION_DESC
	.word	INDOPTION_NULLS_FIRST
	.word	.LC15
	.word	.LC9
	.word	.LC5
	.word	.LC4
	.word	.LC12
	.word	.LC13
	.word	.LC0
	.word	RELKIND_PARTITIONED_INDEX
	.word	.LC2
	.word	PRETTYFLAG_SCHEMA
	.word	.LC6
	.word	.LC14
	.size	pg_get_indexdef_worker, .-pg_get_indexdef_worker
	.comm	RELOID,4,4
	.comm	RELKIND_PARTITIONED_INDEX,4,4
	.comm	PRETTYFLAG_SCHEMA,4,4
	.comm	NIL,4,4
	.comm	INDOPTION_NULLS_FIRST,4,4
	.comm	INDOPTION_DESC,4,4
	.comm	INDEXRELID,4,4
	.comm	ERROR,4,4
	.comm	Anum_pg_index_indpred,4,4
	.comm	Anum_pg_index_indoption,4,4
	.comm	Anum_pg_index_indexprs,4,4
	.comm	Anum_pg_index_indcollation,4,4
	.comm	Anum_pg_index_indclass,4,4
	.comm	AMOID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
