	.file	"extr_tablecmds.c_renameatt_check.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"cannot rename column of typed table"
	.align 8
.LC1:
	.string	"\"%s\" is not a table, view, materialized view, composite type, index, or foreign table"
	.align 8
.LC2:
	.string	"permission denied: \"%s\" is a system catalog"
	.text
	.p2align 4
	.type	renameatt_check, @function
renameatt_check:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	cmp	QWORD PTR 8[rsi], 0
	mov	rbx, rsi
	movzx	r12d, BYTE PTR [rsi]
	je	.L2
	test	edx, edx
	je	.L19
.L2:
	cmp	BYTE PTR RELKIND_RELATION[rip], r12b
	je	.L3
	cmp	BYTE PTR RELKIND_VIEW[rip], r12b
	je	.L3
	cmp	BYTE PTR RELKIND_MATVIEW[rip], r12b
	je	.L3
	cmp	BYTE PTR RELKIND_COMPOSITE_TYPE[rip], r12b
	je	.L3
	cmp	BYTE PTR RELKIND_INDEX[rip], r12b
	je	.L3
	cmp	BYTE PTR RELKIND_PARTITIONED_INDEX[rip], r12b
	je	.L3
	cmp	BYTE PTR RELKIND_FOREIGN_TABLE[rip], r12b
	je	.L3
	cmp	BYTE PTR RELKIND_PARTITIONED_TABLE[rip], r12b
	jne	.L20
	.p2align 4,,10
	.p2align 3
.L3:
	xor	eax, eax
	call	GetUserId@PLT
	mov	edi, ebp
	mov	esi, eax
	call	pg_class_ownercheck@PLT
	test	eax, eax
	je	.L21
.L4:
	mov	eax, DWORD PTR allowSystemTableMods[rip]
	test	eax, eax
	je	.L22
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	rsi, rbx
	mov	edi, ebp
	call	IsSystemClass@PLT
	test	rax, rax
	je	.L1
	mov	edi, DWORD PTR ERRCODE_INSUFFICIENT_PRIVILEGE[rip]
	call	errcode@PLT
	mov	edi, DWORD PTR 4[rbx]
	call	NameStr@PLT
	lea	rdi, .LC2[rip]
	mov	esi, eax
	xor	eax, eax
	call	errmsg@PLT
	mov	edi, DWORD PTR ERROR[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	esi, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	ereport@PLT
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rbx]
	call	NameStr@PLT
	mov	edi, ebp
	mov	r12d, eax
	call	get_rel_relkind@PLT
	mov	edi, eax
	call	get_relkind_objtype@PLT
	mov	edi, DWORD PTR ACLCHECK_NOT_OWNER[rip]
	mov	edx, r12d
	mov	esi, eax
	call	aclcheck_error@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edi, DWORD PTR ERRCODE_WRONG_OBJECT_TYPE[rip]
	call	errcode@PLT
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	errmsg@PLT
	mov	edi, DWORD PTR ERROR[rip]
	mov	esi, eax
	call	ereport@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L20:
	mov	edi, DWORD PTR ERRCODE_WRONG_OBJECT_TYPE[rip]
	call	errcode@PLT
	mov	edi, DWORD PTR 4[rbx]
	call	NameStr@PLT
	lea	rdi, .LC1[rip]
	mov	esi, eax
	xor	eax, eax
	call	errmsg@PLT
	mov	edi, DWORD PTR ERROR[rip]
	mov	esi, eax
	call	ereport@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	renameatt_check, .-renameatt_check
	.comm	allowSystemTableMods,4,4
	.comm	RELKIND_VIEW,1,1
	.comm	RELKIND_RELATION,1,1
	.comm	RELKIND_PARTITIONED_TABLE,1,1
	.comm	RELKIND_PARTITIONED_INDEX,1,1
	.comm	RELKIND_MATVIEW,1,1
	.comm	RELKIND_INDEX,1,1
	.comm	RELKIND_FOREIGN_TABLE,1,1
	.comm	RELKIND_COMPOSITE_TYPE,1,1
	.comm	ERROR,4,4
	.comm	ERRCODE_WRONG_OBJECT_TYPE,4,4
	.comm	ERRCODE_INSUFFICIENT_PRIVILEGE,4,4
	.comm	ACLCHECK_NOT_OWNER,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_tablecmds.c_renameatt_check.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"cannot rename column of typed table\000"
	.align	2
.LC1:
	.ascii	"\"%s\" is not a table, view, materialized view, com"
	.ascii	"posite type, index, or foreign table\000"
	.align	2
.LC2:
	.ascii	"permission denied: \"%s\" is a system catalog\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	renameatt_check, %function
renameatt_check:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	clz	r2, r2
	ldr	r3, [r1, #8]
	lsr	r2, r2, #5
	cmp	r3, #0
	moveq	r2, #0
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r2, #0
	mov	r4, r1
	mov	r5, r0
	ldrb	r6, [r1]	@ zero_extendqisi2
	bne	.L16
.L2:
	ldr	r3, .L19
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, r6
	beq	.L3
	ldr	r3, .L19+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, r6
	beq	.L3
	ldr	r3, .L19+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, r6
	beq	.L3
	ldr	r3, .L19+12
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, r6
	beq	.L3
	ldr	r3, .L19+16
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, r6
	beq	.L3
	ldr	r3, .L19+20
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, r6
	beq	.L3
	ldr	r3, .L19+24
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, r6
	beq	.L3
	ldr	r3, .L19+28
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, r6
	bne	.L17
.L3:
	bl	GetUserId
	mov	r1, r0
	mov	r0, r5
	bl	pg_class_ownercheck
	cmp	r0, #0
	beq	.L18
.L4:
	ldr	r3, .L19+32
	ldr	r3, [r3]
	cmp	r3, #0
	popne	{r4, r5, r6, r7, r8, pc}
	mov	r0, r5
	mov	r1, r4
	bl	IsSystemClass
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r2, .L19+36
	ldr	r3, .L19+40
	ldr	r0, [r2]
	ldr	r5, [r3]
	bl	errcode
	ldr	r0, [r4, #4]
	bl	NameStr
	mov	r1, r0
	ldr	r0, .L19+44
	bl	errmsg
	mov	r1, r0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	ereport
.L18:
	ldr	r3, .L19+48
	mov	r0, r5
	ldr	r7, [r3]
	bl	get_rel_relkind
	bl	get_relkind_objtype
	mov	r6, r0
	ldr	r0, [r4, #4]
	bl	NameStr
	mov	r1, r6
	mov	r2, r0
	mov	r0, r7
	bl	aclcheck_error
	b	.L4
.L16:
	ldr	r2, .L19+52
	ldr	r3, .L19+40
	ldr	r0, [r2]
	ldr	r7, [r3]
	bl	errcode
	ldr	r0, .L19+56
	bl	errmsg
	mov	r1, r0
	mov	r0, r7
	bl	ereport
	b	.L2
.L17:
	ldr	r2, .L19+52
	ldr	r3, .L19+40
	ldr	r0, [r2]
	ldr	r6, [r3]
	bl	errcode
	ldr	r0, [r4, #4]
	bl	NameStr
	mov	r1, r0
	ldr	r0, .L19+60
	bl	errmsg
	mov	r1, r0
	mov	r0, r6
	bl	ereport
	b	.L3
.L20:
	.align	2
.L19:
	.word	RELKIND_RELATION
	.word	RELKIND_VIEW
	.word	RELKIND_MATVIEW
	.word	RELKIND_COMPOSITE_TYPE
	.word	RELKIND_INDEX
	.word	RELKIND_PARTITIONED_INDEX
	.word	RELKIND_FOREIGN_TABLE
	.word	RELKIND_PARTITIONED_TABLE
	.word	allowSystemTableMods
	.word	ERRCODE_INSUFFICIENT_PRIVILEGE
	.word	ERROR
	.word	.LC2
	.word	ACLCHECK_NOT_OWNER
	.word	ERRCODE_WRONG_OBJECT_TYPE
	.word	.LC0
	.word	.LC1
	.size	renameatt_check, .-renameatt_check
	.comm	allowSystemTableMods,4,4
	.comm	RELKIND_VIEW,1,1
	.comm	RELKIND_RELATION,1,1
	.comm	RELKIND_PARTITIONED_TABLE,1,1
	.comm	RELKIND_PARTITIONED_INDEX,1,1
	.comm	RELKIND_MATVIEW,1,1
	.comm	RELKIND_INDEX,1,1
	.comm	RELKIND_FOREIGN_TABLE,1,1
	.comm	RELKIND_COMPOSITE_TYPE,1,1
	.comm	ERROR,4,4
	.comm	ERRCODE_WRONG_OBJECT_TYPE,4,4
	.comm	ERRCODE_INSUFFICIENT_PRIVILEGE,4,4
	.comm	ACLCHECK_NOT_OWNER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
