	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function renameatt_check
_renameatt_check:                       ## @renameatt_check
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %r14d
	movb	(%rsi), %bl
	testl	%edx, %edx
	jne	LBB0_3
## %bb.1:
	cmpq	$0, 8(%r15)
	je	LBB0_3
## %bb.2:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_ERRCODE_WRONG_OBJECT_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_3:
	movq	_RELKIND_RELATION@GOTPCREL(%rip), %rax
	movq	_RELKIND_VIEW@GOTPCREL(%rip), %rcx
	movq	_RELKIND_MATVIEW@GOTPCREL(%rip), %rdx
	movq	_RELKIND_COMPOSITE_TYPE@GOTPCREL(%rip), %rsi
	movq	_RELKIND_INDEX@GOTPCREL(%rip), %rdi
	movq	_RELKIND_PARTITIONED_INDEX@GOTPCREL(%rip), %r8
	movq	_RELKIND_FOREIGN_TABLE@GOTPCREL(%rip), %r9
	movq	_RELKIND_PARTITIONED_TABLE@GOTPCREL(%rip), %r10
	movzbl	%bl, %ebx
	movd	%ebx, %xmm0
	punpcklbw	%xmm0, %xmm0            ## xmm0 = xmm0[0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7]
	movzbl	(%rax), %eax
	movd	%eax, %xmm1
	pinsrb	$1, (%rcx), %xmm1
	pinsrb	$2, (%rdx), %xmm1
	pinsrb	$3, (%rsi), %xmm1
	pinsrb	$4, (%rdi), %xmm1
	pinsrb	$5, (%r8), %xmm1
	pinsrb	$6, (%r9), %xmm1
	pshuflw	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0,4,5,6,7]
	pinsrb	$7, (%r10), %xmm1
	pcmpeqb	%xmm0, %xmm1
	pmovsxbw	%xmm1, %xmm0
	psllw	$15, %xmm0
	pmovmskb	%xmm0, %eax
	testl	$43690, %eax                    ## imm = 0xAAAA
	jne	LBB0_5
## %bb.4:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_WRONG_OBJECT_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	4(%r15), %edi
	callq	_NameStr
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_5:
	xorl	%eax, %eax
	callq	_GetUserId
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_pg_class_ownercheck
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	_ACLCHECK_NOT_OWNER@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r14d, %edi
	callq	_get_rel_relkind
	movl	%eax, %edi
	callq	_get_relkind_objtype
	movl	%eax, %ebx
	movl	4(%r15), %edi
	callq	_NameStr
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_aclcheck_error
LBB0_7:
	movq	_allowSystemTableMods@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_8
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_IsSystemClass
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	4(%r15), %edi
	callq	_NameStr
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ereport                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_WRONG_OBJECT_TYPE,4,2  ## @ERRCODE_WRONG_OBJECT_TYPE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot rename column of typed table"

	.comm	_RELKIND_RELATION,1,0           ## @RELKIND_RELATION
	.comm	_RELKIND_VIEW,1,0               ## @RELKIND_VIEW
	.comm	_RELKIND_MATVIEW,1,0            ## @RELKIND_MATVIEW
	.comm	_RELKIND_COMPOSITE_TYPE,1,0     ## @RELKIND_COMPOSITE_TYPE
	.comm	_RELKIND_INDEX,1,0              ## @RELKIND_INDEX
	.comm	_RELKIND_PARTITIONED_INDEX,1,0  ## @RELKIND_PARTITIONED_INDEX
	.comm	_RELKIND_FOREIGN_TABLE,1,0      ## @RELKIND_FOREIGN_TABLE
	.comm	_RELKIND_PARTITIONED_TABLE,1,0  ## @RELKIND_PARTITIONED_TABLE
L_.str.1:                               ## @.str.1
	.asciz	"\"%s\" is not a table, view, materialized view, composite type, index, or foreign table"

	.comm	_ACLCHECK_NOT_OWNER,4,2         ## @ACLCHECK_NOT_OWNER
	.comm	_allowSystemTableMods,4,2       ## @allowSystemTableMods
	.comm	_ERRCODE_INSUFFICIENT_PRIVILEGE,4,2 ## @ERRCODE_INSUFFICIENT_PRIVILEGE
L_.str.2:                               ## @.str.2
	.asciz	"permission denied: \"%s\" is a system catalog"

	.no_dead_strip	_renameatt_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function renameatt_check
_renameatt_check:                       ; @renameatt_check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	ldrb	w24, [x1]
Lloh0:
	adrp	x23, _ERROR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ERROR@GOTPAGEOFF]
Lloh2:
	adrp	x22, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGEOFF]
	cbnz	w2, LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w21, [x23]
	ldr	w0, [x22]
	bl	_errcode
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_3:
Lloh6:
	adrp	x8, _RELKIND_RELATION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RELKIND_RELATION@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh8:
	adrp	x9, _RELKIND_VIEW@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RELKIND_VIEW@GOTPAGEOFF]
	ldrb	w9, [x9]
Lloh10:
	adrp	x10, _RELKIND_MATVIEW@GOTPAGE
Lloh11:
	ldr	x10, [x10, _RELKIND_MATVIEW@GOTPAGEOFF]
	ldrb	w10, [x10]
Lloh12:
	adrp	x11, _RELKIND_COMPOSITE_TYPE@GOTPAGE
Lloh13:
	ldr	x11, [x11, _RELKIND_COMPOSITE_TYPE@GOTPAGEOFF]
	ldrb	w11, [x11]
Lloh14:
	adrp	x12, _RELKIND_INDEX@GOTPAGE
Lloh15:
	ldr	x12, [x12, _RELKIND_INDEX@GOTPAGEOFF]
	ldrb	w12, [x12]
Lloh16:
	adrp	x13, _RELKIND_PARTITIONED_INDEX@GOTPAGE
Lloh17:
	ldr	x13, [x13, _RELKIND_PARTITIONED_INDEX@GOTPAGEOFF]
	ldrb	w13, [x13]
Lloh18:
	adrp	x14, _RELKIND_FOREIGN_TABLE@GOTPAGE
Lloh19:
	ldr	x14, [x14, _RELKIND_FOREIGN_TABLE@GOTPAGEOFF]
	ldrb	w14, [x14]
Lloh20:
	adrp	x15, _RELKIND_PARTITIONED_TABLE@GOTPAGE
Lloh21:
	ldr	x15, [x15, _RELKIND_PARTITIONED_TABLE@GOTPAGEOFF]
	ldrb	w15, [x15]
	cmp	w24, w8
	ccmp	w24, w9, #4, ne
	ccmp	w24, w10, #4, ne
	ccmp	w24, w11, #4, ne
	ccmp	w24, w12, #4, ne
	ccmp	w24, w13, #4, ne
	ccmp	w24, w14, #4, ne
	ccmp	w24, w15, #4, ne
	b.eq	LBB0_5
; %bb.4:
	ldr	w21, [x23]
	ldr	w0, [x22]
	bl	_errcode
	ldr	w0, [x19, #4]
	bl	_NameStr
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_5:
	bl	_GetUserId
	mov	x1, x0
	mov	x0, x20
	bl	_pg_class_ownercheck
	cbnz	w0, LBB0_7
; %bb.6:
Lloh24:
	adrp	x8, _ACLCHECK_NOT_OWNER@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ACLCHECK_NOT_OWNER@GOTPAGEOFF]
Lloh26:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_get_rel_relkind
	bl	_get_relkind_objtype
	mov	x22, x0
	ldr	w0, [x19, #4]
	bl	_NameStr
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_aclcheck_error
LBB0_7:
Lloh27:
	adrp	x8, _allowSystemTableMods@GOTPAGE
Lloh28:
	ldr	x8, [x8, _allowSystemTableMods@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cbz	w8, LBB0_9
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
	mov	x0, x20
	mov	x1, x19
	bl	_IsSystemClass
	cbz	x0, LBB0_8
; %bb.10:
	ldr	w20, [x23]
Lloh30:
	adrp	x8, _ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w0, [x19, #4]
	bl	_NameStr
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh33:
	adrp	x0, l_.str.2@PAGE
Lloh34:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_ereport
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_WRONG_OBJECT_TYPE,4,2  ; @ERRCODE_WRONG_OBJECT_TYPE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot rename column of typed table"

	.comm	_RELKIND_RELATION,1,0           ; @RELKIND_RELATION
	.comm	_RELKIND_VIEW,1,0               ; @RELKIND_VIEW
	.comm	_RELKIND_MATVIEW,1,0            ; @RELKIND_MATVIEW
	.comm	_RELKIND_COMPOSITE_TYPE,1,0     ; @RELKIND_COMPOSITE_TYPE
	.comm	_RELKIND_INDEX,1,0              ; @RELKIND_INDEX
	.comm	_RELKIND_PARTITIONED_INDEX,1,0  ; @RELKIND_PARTITIONED_INDEX
	.comm	_RELKIND_FOREIGN_TABLE,1,0      ; @RELKIND_FOREIGN_TABLE
	.comm	_RELKIND_PARTITIONED_TABLE,1,0  ; @RELKIND_PARTITIONED_TABLE
l_.str.1:                               ; @.str.1
	.asciz	"\"%s\" is not a table, view, materialized view, composite type, index, or foreign table"

	.comm	_ACLCHECK_NOT_OWNER,4,2         ; @ACLCHECK_NOT_OWNER
	.comm	_allowSystemTableMods,4,2       ; @allowSystemTableMods
	.comm	_ERRCODE_INSUFFICIENT_PRIVILEGE,4,2 ; @ERRCODE_INSUFFICIENT_PRIVILEGE
l_.str.2:                               ; @.str.2
	.asciz	"permission denied: \"%s\" is a system catalog"

	.no_dead_strip	_renameatt_check
.subsections_via_symbols
