	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RenameRelationInternal         ## -- Begin function RenameRelationInternal
	.p2align	4, 0x90
_RenameRelationInternal:                ## @RenameRelationInternal
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	testl	%ecx, %ecx
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	jne	LBB0_1
## %bb.2:
	movq	_AccessExclusiveLock@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_ShareUpdateExclusiveLock@GOTPCREL(%rip), %rax
LBB0_3:
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_relation_open
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_RelationGetNamespace
	movl	%eax, %r15d
	movq	_RelationRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_RELOID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_ObjectIdGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SearchSysCacheCopy1
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_elog
LBB0_5:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	%r12, %rdi
	callq	_GETSTRUCT
	movq	%rax, %rbx
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movl	%r15d, %esi
	callq	_get_relname_relid
	movq	_InvalidOid@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	je	LBB0_7
## %bb.6:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_ERRCODE_DUPLICATE_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	callq	_errmsg
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_ereport
LBB0_7:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_namestrcpy
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r12, %rdx
	callq	_CatalogTupleUpdate
	movq	_RelationRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rcx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	callq	_InvokeObjectPostAlterHookArg
	movq	%r12, %rdi
	callq	_heap_freetuple
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_table_close
	movq	(%r13), %rax
	movl	8(%rax), %edi
	callq	_OidIsValid
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	(%r13), %rax
	movl	8(%rax), %edi
	movq	%r14, %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_RenameTypeInternal
LBB0_9:
	movq	(%r13), %rax
	movq	(%rax), %rax
	movq	_RELKIND_INDEX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.10:
	movq	_RELKIND_PARTITIONED_INDEX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
LBB0_11:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_get_index_constraint
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_OidIsValid
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_RenameConstraintById
LBB0_13:
	movq	_NoLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_relation_close                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ShareUpdateExclusiveLock,4,2   ## @ShareUpdateExclusiveLock
	.comm	_AccessExclusiveLock,4,2        ## @AccessExclusiveLock
	.comm	_RelationRelationId,4,2         ## @RelationRelationId
	.comm	_RowExclusiveLock,4,2           ## @RowExclusiveLock
	.comm	_RELOID,4,2                     ## @RELOID
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cache lookup failed for relation %u"

	.comm	_InvalidOid,8,3                 ## @InvalidOid
	.comm	_ERRCODE_DUPLICATE_TABLE,4,2    ## @ERRCODE_DUPLICATE_TABLE
L_.str.1:                               ## @.str.1
	.asciz	"relation \"%s\" already exists"

	.comm	_RELKIND_INDEX,8,3              ## @RELKIND_INDEX
	.comm	_RELKIND_PARTITIONED_INDEX,8,3  ## @RELKIND_PARTITIONED_INDEX
	.comm	_NoLock,4,2                     ## @NoLock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RenameRelationInternal         ; -- Begin function RenameRelationInternal
	.p2align	2
_RenameRelationInternal:                ; @RenameRelationInternal
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _ShareUpdateExclusiveLock@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ShareUpdateExclusiveLock@GOTPAGEOFF]
Lloh2:
	adrp	x9, _AccessExclusiveLock@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AccessExclusiveLock@GOTPAGEOFF]
	cmp	w3, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	bl	_relation_open
	mov	x20, x0
	bl	_RelationGetNamespace
	mov	x22, x0
Lloh4:
	adrp	x8, _RelationRelationId@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RelationRelationId@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x27, _RowExclusiveLock@GOTPAGE
Lloh8:
	ldr	x27, [x27, _RowExclusiveLock@GOTPAGEOFF]
	ldr	w1, [x27]
	bl	_table_open
	mov	x24, x0
Lloh9:
	adrp	x8, _RELOID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RELOID@GOTPAGEOFF]
Lloh11:
	ldr	w25, [x8]
	mov	x0, x21
	bl	_ObjectIdGetDatum
	mov	x1, x0
	mov	x0, x25
	bl	_SearchSysCacheCopy1
	mov	x25, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_elog
LBB0_2:
	mov	x0, x25
	bl	_GETSTRUCT
	mov	x26, x0
	mov	x0, x19
	mov	x1, x22
	bl	_get_relname_relid
Lloh17:
	adrp	x28, _InvalidOid@GOTPAGE
Lloh18:
	ldr	x28, [x28, _InvalidOid@GOTPAGEOFF]
	ldr	x8, [x28]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.3:
Lloh19:
	adrp	x8, _ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w27, [x8]
Lloh22:
	adrp	x8, _ERRCODE_DUPLICATE_TABLE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ERRCODE_DUPLICATE_TABLE@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_errcode
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_errmsg
	mov	x1, x0
	mov	x0, x27
Lloh27:
	adrp	x27, _RowExclusiveLock@GOTPAGE
Lloh28:
	ldr	x27, [x27, _RowExclusiveLock@GOTPAGEOFF]
	bl	_ereport
LBB0_4:
	mov	x0, x26
	mov	x1, x19
	bl	_namestrcpy
	mov	x0, x24
	mov	x1, x25
	mov	x2, x25
	bl	_CatalogTupleUpdate
Lloh29:
	adrp	x8, _RelationRelationId@GOTPAGE
Lloh30:
	ldr	x8, [x8, _RelationRelationId@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	ldr	x3, [x28]
	mov	x1, x21
	mov	w2, #0
	mov	x4, x23
	bl	_InvokeObjectPostAlterHookArg
	mov	x0, x25
	bl	_heap_freetuple
	ldr	w1, [x27]
	mov	x0, x24
	bl	_table_close
	ldr	x8, [x20]
	ldr	w0, [x8, #8]
	bl	_OidIsValid
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x8, [x20]
	ldr	w0, [x8, #8]
	mov	x1, x19
	mov	x2, x22
	bl	_RenameTypeInternal
LBB0_6:
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh32:
	adrp	x9, _RELKIND_INDEX@GOTPAGE
Lloh33:
	ldr	x9, [x9, _RELKIND_INDEX@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
Lloh35:
	adrp	x10, _RELKIND_PARTITIONED_INDEX@GOTPAGE
Lloh36:
	ldr	x10, [x10, _RELKIND_PARTITIONED_INDEX@GOTPAGEOFF]
Lloh37:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_9
; %bb.7:
	mov	x0, x21
	bl	_get_index_constraint
	mov	x21, x0
	bl	_OidIsValid
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x21
	mov	x1, x19
	bl	_RenameConstraintById
LBB0_9:
Lloh38:
	adrp	x8, _NoLock@GOTPAGE
Lloh39:
	ldr	x8, [x8, _NoLock@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_relation_close
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_ShareUpdateExclusiveLock,4,2   ; @ShareUpdateExclusiveLock
	.comm	_AccessExclusiveLock,4,2        ; @AccessExclusiveLock
	.comm	_RelationRelationId,4,2         ; @RelationRelationId
	.comm	_RowExclusiveLock,4,2           ; @RowExclusiveLock
	.comm	_RELOID,4,2                     ; @RELOID
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cache lookup failed for relation %u"

	.comm	_InvalidOid,8,3                 ; @InvalidOid
	.comm	_ERRCODE_DUPLICATE_TABLE,4,2    ; @ERRCODE_DUPLICATE_TABLE
l_.str.1:                               ; @.str.1
	.asciz	"relation \"%s\" already exists"

	.comm	_RELKIND_INDEX,8,3              ; @RELKIND_INDEX
	.comm	_RELKIND_PARTITIONED_INDEX,8,3  ; @RELKIND_PARTITIONED_INDEX
	.comm	_NoLock,4,2                     ; @NoLock
.subsections_via_symbols
