	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RenameTypeInternal             ## -- Begin function RenameTypeInternal
	.p2align	4, 0x90
_RenameTypeInternal:                    ## @RenameTypeInternal
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	_TypeRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_TYPEOID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_ObjectIdGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SearchSysCacheCopy1
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_elog
LBB0_2:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_GETSTRUCT
	movq	%rax, %r14
	xorl	%edi, %edi
	cmpq	%r13, (%rax)
	sete	%dil
	callq	_Assert
	movq	8(%r14), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_TYPENAMENSP@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_Anum_pg_type_oid@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_CStringGetDatum
	movq	%r13, %rdi
	movl	%eax, %r13d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_ObjectIdGetDatum
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_GetSysCacheOid2
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_OidIsValid
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%r12, %rdi
	callq	_get_typisdefined
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_moveArrayTypeName
	testq	%rax, %rax
	jne	LBB0_6
LBB0_5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_DUPLICATE_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_6:
	addq	$16, %r14
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_namestrcpy
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	callq	_CatalogTupleUpdate
	movq	_TypeRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_InvokeObjectPostAlterHook
	movq	%rbx, %rdi
	callq	_heap_freetuple
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_table_close
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_OidIsValid
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	cmpq	%r12, %rbx
	je	LBB0_8
## %bb.9:
	movq	%r15, %rdi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_makeArrayTypeName
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movq	%r14, %rdx
	callq	_RenameTypeInternal
	movq	%r15, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pfree                          ## TAILCALL
LBB0_8:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TypeRelationId,4,2             ## @TypeRelationId
	.comm	_RowExclusiveLock,4,2           ## @RowExclusiveLock
	.comm	_TYPEOID,4,2                    ## @TYPEOID
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cache lookup failed for type %u"

	.comm	_TYPENAMENSP,4,2                ## @TYPENAMENSP
	.comm	_Anum_pg_type_oid,4,2           ## @Anum_pg_type_oid
	.comm	_ERRCODE_DUPLICATE_OBJECT,4,2   ## @ERRCODE_DUPLICATE_OBJECT
L_.str.1:                               ## @.str.1
	.asciz	"type \"%s\" already exists"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RenameTypeInternal             ; -- Begin function RenameTypeInternal
	.p2align	2
_RenameTypeInternal:                    ; @RenameTypeInternal
	.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	x19, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _TypeRelationId@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TypeRelationId@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _RowExclusiveLock@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RowExclusiveLock@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_table_open
	mov	x21, x0
Lloh6:
	adrp	x8, _TYPEOID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TYPEOID@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
	mov	x0, x22
	bl	_ObjectIdGetDatum
	mov	x1, x0
	mov	x0, x23
	bl	_SearchSysCacheCopy1
	mov	x23, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_elog
LBB0_2:
	mov	x0, x23
	bl	_GETSTRUCT
	mov	x26, x0
	ldr	x8, [x0]
	cmp	x8, x19
	cset	w0, eq
	bl	_Assert
	ldr	x24, [x26, #8]
Lloh14:
	adrp	x8, _TYPENAMENSP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TYPENAMENSP@GOTPAGEOFF]
Lloh16:
	ldr	w25, [x8]
Lloh17:
	adrp	x8, _Anum_pg_type_oid@GOTPAGE
Lloh18:
	ldr	x8, [x8, _Anum_pg_type_oid@GOTPAGEOFF]
Lloh19:
	ldr	w27, [x8]
	mov	x0, x20
	bl	_CStringGetDatum
	mov	x28, x0
	mov	x0, x19
	bl	_ObjectIdGetDatum
	mov	x3, x0
	mov	x0, x25
	mov	x1, x27
	mov	x2, x28
	bl	_GetSysCacheOid2
	mov	x25, x0
	bl	_OidIsValid
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, x25
	bl	_get_typisdefined
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x25
	mov	x1, x20
	mov	x2, x19
	bl	_moveArrayTypeName
	cbnz	x0, LBB0_6
LBB0_5:
Lloh20:
	adrp	x8, _ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w27, [x8]
Lloh23:
	adrp	x8, _ERRCODE_DUPLICATE_OBJECT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERRCODE_DUPLICATE_OBJECT@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_errcode
Lloh26:
	adrp	x0, l_.str.1@PAGE
Lloh27:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_errmsg
	mov	x1, x0
	mov	x0, x27
	bl	_ereport
LBB0_6:
	add	x0, x26, #16
	mov	x1, x20
	bl	_namestrcpy
	mov	x0, x21
	mov	x1, x23
	mov	x2, x23
	bl	_CatalogTupleUpdate
Lloh28:
	adrp	x8, _TypeRelationId@GOTPAGE
Lloh29:
	ldr	x8, [x8, _TypeRelationId@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	mov	x1, x22
	mov	w2, #0
	bl	_InvokeObjectPostAlterHook
	mov	x0, x23
	bl	_heap_freetuple
Lloh31:
	adrp	x8, _RowExclusiveLock@GOTPAGE
Lloh32:
	ldr	x8, [x8, _RowExclusiveLock@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_table_close
	mov	x0, x24
	bl	_OidIsValid
	cmp	x0, #0
	ccmp	x24, x25, #4, ne
	b.ne	LBB0_8
; %bb.7:
	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
	ret
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	bl	_makeArrayTypeName
	mov	x20, x0
	mov	x0, x24
	mov	x1, x20
	mov	x2, x19
	bl	_RenameTypeInternal
	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	_pfree
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_TypeRelationId,4,2             ; @TypeRelationId
	.comm	_RowExclusiveLock,4,2           ; @RowExclusiveLock
	.comm	_TYPEOID,4,2                    ; @TYPEOID
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cache lookup failed for type %u"

	.comm	_TYPENAMENSP,4,2                ; @TYPENAMENSP
	.comm	_Anum_pg_type_oid,4,2           ; @Anum_pg_type_oid
	.comm	_ERRCODE_DUPLICATE_OBJECT,4,2   ; @ERRCODE_DUPLICATE_OBJECT
l_.str.1:                               ; @.str.1
	.asciz	"type \"%s\" already exists"

.subsections_via_symbols
