	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RenameEnumLabel                ## -- Begin function RenameEnumLabel
	.p2align	4, 0x90
_RenameEnumLabel:                       ## @RenameEnumLabel
	.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
	movq	%rdx, %r15
	movq	%rsi, %r14
	movl	%edi, %r13d
	movq	%rdx, %rdi
	callq	_strlen
	movq	_NAMEDATALEN@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %eax
	jl	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movq	%r14, %r12
	movl	(%rax), %r14d
	movq	_ERRCODE_INVALID_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	callq	_errmsg
	movl	(%rbx), %esi
	decl	%esi
	leaq	L_.str.1(%rip), %rdi
	callq	_errdetail
	movl	%r14d, %edi
	movq	%r12, %r14
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movq	_TypeRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	%r13d, %esi
	xorl	%edx, %edx
	callq	_LockDatabaseObject
	movq	_EnumRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RowExclusiveLock@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_table_open
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_ENUMTYPOIDNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r13d, %edi
	callq	_ObjectIdGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SearchSysCacheList1
	movq	%rax, %r13
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.3:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rax,%r13,8), %r14
	movq	%r14, %rdi
	callq	_GETSTRUCT
	movq	%rax, %r15
	movl	(%rax), %edi
	callq	_NameStr
	movl	%eax, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_strcmp
	testq	%rax, %rax
	cmoveq	%r14, %rbx
	movl	(%r15), %edi
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	callq	_NameStr
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_strcmp
	testq	%rax, %rax
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$1, %ecx
	cmovel	%ecx, %r12d
	incq	%r13
	cmpq	%r13, %rax
	jne	LBB0_4
## %bb.5:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	testq	%rbx, %rbx
	movq	_RowExclusiveLock@GOTPCREL(%rip), %r12
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_7
LBB0_6:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INVALID_PARAMETER_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	xorl	%ebx, %ebx
LBB0_7:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_9
## %bb.8:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_DUPLICATE_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.3(%rip), %rdi
	movq	%r15, %rsi
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_9:
	movq	%rbx, %rdi
	callq	_heap_copytuple
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_GETSTRUCT
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_ReleaseCatCacheList
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_namestrcpy
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	callq	_CatalogTupleUpdate
	movq	%rbx, %rdi
	callq	_heap_freetuple
	movl	(%r12), %esi
	movl	%r14d, %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_table_close                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NAMEDATALEN,4,2                ## @NAMEDATALEN
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INVALID_NAME,4,2       ## @ERRCODE_INVALID_NAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid enum label \"%s\""

L_.str.1:                               ## @.str.1
	.asciz	"Labels must be %d characters or less."

	.comm	_TypeRelationId,4,2             ## @TypeRelationId
	.comm	_ExclusiveLock,4,2              ## @ExclusiveLock
	.comm	_EnumRelationId,4,2             ## @EnumRelationId
	.comm	_RowExclusiveLock,4,2           ## @RowExclusiveLock
	.comm	_ENUMTYPOIDNAME,4,2             ## @ENUMTYPOIDNAME
	.comm	_ERRCODE_INVALID_PARAMETER_VALUE,4,2 ## @ERRCODE_INVALID_PARAMETER_VALUE
L_.str.2:                               ## @.str.2
	.asciz	"\"%s\" is not an existing enum label"

	.comm	_ERRCODE_DUPLICATE_OBJECT,4,2   ## @ERRCODE_DUPLICATE_OBJECT
L_.str.3:                               ## @.str.3
	.asciz	"enum label \"%s\" already exists"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RenameEnumLabel                ; -- Begin function RenameEnumLabel
	.p2align	2
_RenameEnumLabel:                       ; @RenameEnumLabel
	.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	x21, x1
	mov	x22, x0
	mov	x0, x2
	bl	_strlen
Lloh0:
	adrp	x23, _NAMEDATALEN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NAMEDATALEN@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh2:
	adrp	x25, _ERROR@GOTPAGE
Lloh3:
	ldr	x25, [x25, _ERROR@GOTPAGEOFF]
	cmp	w0, w8
	b.lt	LBB0_2
; %bb.1:
	ldr	w20, [x25]
Lloh4:
	adrp	x8, _ERRCODE_INVALID_NAME@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ERRCODE_INVALID_NAME@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_errcode
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_errmsg
	ldr	w8, [x23]
	sub	w1, w8, #1
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errdetail
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_2:
Lloh11:
	adrp	x8, _TypeRelationId@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TypeRelationId@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _ExclusiveLock@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ExclusiveLock@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	mov	x1, x22
	mov	w2, #0
	bl	_LockDatabaseObject
Lloh17:
	adrp	x8, _EnumRelationId@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EnumRelationId@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x24, _RowExclusiveLock@GOTPAGE
Lloh21:
	ldr	x24, [x24, _RowExclusiveLock@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_table_open
	mov	x20, x0
Lloh22:
	adrp	x8, _ENUMTYPOIDNAME@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENUMTYPOIDNAME@GOTPAGEOFF]
Lloh24:
	ldr	w23, [x8]
	mov	x0, x22
	bl	_ObjectIdGetDatum
	mov	x1, x0
	mov	x0, x23
	bl	_SearchSysCacheList1
	mov	x22, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.3:
	mov	x27, #0
	mov	w28, #0
	mov	x23, #0
	lsl	x26, x8, #3
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	ldr	x24, [x8, x27]
	mov	x0, x24
	bl	_GETSTRUCT
	mov	x25, x0
	ldr	w0, [x0]
	bl	_NameStr
	mov	x1, x21
	bl	_strcmp
	cmp	x0, #0
	csel	x23, x24, x23, eq
	ldr	w0, [x25]
	bl	_NameStr
	mov	x1, x19
	bl	_strcmp
	cmp	x0, #0
	csinc	w28, w28, wzr, ne
	add	x27, x27, #8
	cmp	x26, x27
	b.ne	LBB0_4
; %bb.5:
Lloh25:
	adrp	x24, _RowExclusiveLock@GOTPAGE
Lloh26:
	ldr	x24, [x24, _RowExclusiveLock@GOTPAGEOFF]
Lloh27:
	adrp	x25, _ERROR@GOTPAGE
Lloh28:
	ldr	x25, [x25, _ERROR@GOTPAGEOFF]
	cbz	x23, LBB0_10
; %bb.6:
	cbz	w28, LBB0_8
LBB0_7:
	ldr	w21, [x25]
Lloh29:
	adrp	x8, _ERRCODE_DUPLICATE_OBJECT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ERRCODE_DUPLICATE_OBJECT@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_errcode
Lloh32:
	adrp	x0, l_.str.3@PAGE
Lloh33:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_8:
	mov	x0, x23
	bl	_heap_copytuple
	mov	x21, x0
	bl	_GETSTRUCT
	mov	x23, x0
	mov	x0, x22
	bl	_ReleaseCatCacheList
	mov	x0, x23
	mov	x1, x19
	bl	_namestrcpy
	mov	x0, x20
	mov	x1, x21
	mov	x2, x21
	bl	_CatalogTupleUpdate
	mov	x0, x21
	bl	_heap_freetuple
	ldr	w1, [x24]
	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	_table_close
LBB0_9:
	mov	w28, #0
LBB0_10:
	ldr	w23, [x25]
Lloh34:
	adrp	x8, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	bl	_errcode
Lloh37:
	adrp	x0, l_.str.2@PAGE
Lloh38:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	bl	_errmsg
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
	mov	x23, #0
	cbnz	w28, LBB0_7
	b	LBB0_8
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_NAMEDATALEN,4,2                ; @NAMEDATALEN
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INVALID_NAME,4,2       ; @ERRCODE_INVALID_NAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid enum label \"%s\""

l_.str.1:                               ; @.str.1
	.asciz	"Labels must be %d characters or less."

	.comm	_TypeRelationId,4,2             ; @TypeRelationId
	.comm	_ExclusiveLock,4,2              ; @ExclusiveLock
	.comm	_EnumRelationId,4,2             ; @EnumRelationId
	.comm	_RowExclusiveLock,4,2           ; @RowExclusiveLock
	.comm	_ENUMTYPOIDNAME,4,2             ; @ENUMTYPOIDNAME
	.comm	_ERRCODE_INVALID_PARAMETER_VALUE,4,2 ; @ERRCODE_INVALID_PARAMETER_VALUE
l_.str.2:                               ; @.str.2
	.asciz	"\"%s\" is not an existing enum label"

	.comm	_ERRCODE_DUPLICATE_OBJECT,4,2   ; @ERRCODE_DUPLICATE_OBJECT
l_.str.3:                               ; @.str.3
	.asciz	"enum label \"%s\" already exists"

.subsections_via_symbols
