	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RenameTableSpace               ## -- Begin function RenameTableSpace
	.p2align	4, 0x90
_RenameTableSpace:                      ## @RenameTableSpace
	.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	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	_TableSpaceRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movl	%eax, %r14d
	movq	_Anum_pg_tablespace_spcname@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_BTEqualStrategyNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_F_NAMEEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_CStringGetDatum
	leaq	-52(%rbp), %rbx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	callq	_ScanKeyInit
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movl	%r14d, %edi
	movl	$1, %esi
	movq	%rbx, %rdx
	callq	_table_beginscan_catalog
	movl	%eax, %r13d
	movq	_ForwardScanDirection@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_heap_getnext
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_HeapTupleIsValid
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_UNDEFINED_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movq	%rbx, %rdi
	callq	_heap_copytuple
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_GETSTRUCT
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	4(%rax), %ebx
	movl	%r13d, %edi
	callq	_table_endscan
	xorl	%eax, %eax
	callq	_GetUserId
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_pg_tablespace_ownercheck
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_ACLCHECK_NO_PRIV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OBJECT_TABLESPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_aclcheck_error
LBB0_4:
	movq	_allowSystemTableMods@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_7
## %bb.5:
	movq	%r12, %rdi
	callq	_IsReservedName
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_RESERVED_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	callq	_errmsg
	leaq	L_.str.2(%rip), %rdi
	callq	_errdetail
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_7:
	movq	_Anum_pg_tablespace_spcname@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_BTEqualStrategyNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_F_NAMEEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r12, %rdi
	callq	_CStringGetDatum
	leaq	-52(%rbp), %r12
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	callq	_ScanKeyInit
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edi
	movl	$1, %esi
	movq	%r12, %rdx
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	callq	_table_beginscan_catalog
	movl	%eax, %ebx
	movq	_ForwardScanDirection@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_heap_getnext
	movq	%rax, %rdi
	callq	_HeapTupleIsValid
	testq	%rax, %rax
	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	%r12, %rsi
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_9:
	movl	%ebx, %edi
	callq	_table_endscan
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_namestrcpy
	movl	%r13d, %edi
	movq	%r15, %rsi
	movq	%r15, %rdx
	callq	_CatalogTupleUpdate
	movq	_TableSpaceRelationId@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_InvokeObjectPostAlterHook
	movl	(%r14), %esi
	movl	%ebx, %edx
	callq	_ObjectAddressSet
	movq	_NoLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_table_close
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TableSpaceRelationId,4,2       ## @TableSpaceRelationId
	.comm	_RowExclusiveLock,4,2           ## @RowExclusiveLock
	.comm	_Anum_pg_tablespace_spcname,4,2 ## @Anum_pg_tablespace_spcname
	.comm	_BTEqualStrategyNumber,4,2      ## @BTEqualStrategyNumber
	.comm	_F_NAMEEQ,4,2                   ## @F_NAMEEQ
	.comm	_ForwardScanDirection,4,2       ## @ForwardScanDirection
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_UNDEFINED_OBJECT,4,2   ## @ERRCODE_UNDEFINED_OBJECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tablespace \"%s\" does not exist"

	.comm	_ACLCHECK_NO_PRIV,4,2           ## @ACLCHECK_NO_PRIV
	.comm	_OBJECT_TABLESPACE,4,2          ## @OBJECT_TABLESPACE
	.comm	_allowSystemTableMods,4,2       ## @allowSystemTableMods
	.comm	_ERRCODE_RESERVED_NAME,4,2      ## @ERRCODE_RESERVED_NAME
L_.str.1:                               ## @.str.1
	.asciz	"unacceptable tablespace name \"%s\""

L_.str.2:                               ## @.str.2
	.asciz	"The prefix \"pg_\" is reserved for system tablespaces."

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

	.comm	_NoLock,4,2                     ## @NoLock
	.comm	_WARNING,4,2                    ## @WARNING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RenameTableSpace               ; -- Begin function RenameTableSpace
	.p2align	2
_RenameTableSpace:                      ; @RenameTableSpace
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	mov	x24, x0
Lloh0:
	adrp	x8, _TableSpaceRelationId@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TableSpaceRelationId@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _RowExclusiveLock@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RowExclusiveLock@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_table_open
	mov	x19, x0
Lloh6:
	adrp	x8, _Anum_pg_tablespace_spcname@GOTPAGE
Lloh7:
	ldr	x8, [x8, _Anum_pg_tablespace_spcname@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
Lloh9:
	adrp	x26, _BTEqualStrategyNumber@GOTPAGE
Lloh10:
	ldr	x26, [x26, _BTEqualStrategyNumber@GOTPAGEOFF]
	ldr	w22, [x26]
Lloh11:
	adrp	x27, _F_NAMEEQ@GOTPAGE
Lloh12:
	ldr	x27, [x27, _F_NAMEEQ@GOTPAGEOFF]
	ldr	w23, [x27]
	mov	x0, x24
	bl	_CStringGetDatum
	mov	x4, x0
	add	x0, sp, #12
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	bl	_ScanKeyInit
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #1
	bl	_table_beginscan_catalog
	mov	x25, x0
Lloh13:
	adrp	x28, _ForwardScanDirection@GOTPAGE
Lloh14:
	ldr	x28, [x28, _ForwardScanDirection@GOTPAGEOFF]
	ldr	w1, [x28]
	bl	_heap_getnext
	mov	x21, x0
	bl	_HeapTupleIsValid
	cbnz	x0, LBB0_2
; %bb.1:
Lloh15:
	adrp	x8, _ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w22, [x8]
Lloh18:
	adrp	x8, _ERRCODE_UNDEFINED_OBJECT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERRCODE_UNDEFINED_OBJECT@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_errcode
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x24
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
LBB0_2:
	mov	x0, x21
	bl	_heap_copytuple
	mov	x22, x0
	bl	_GETSTRUCT
	mov	x23, x0
	ldr	w21, [x0, #4]
	mov	x0, x25
	bl	_table_endscan
	bl	_GetUserId
	mov	x1, x0
	mov	x0, x21
	bl	_pg_tablespace_ownercheck
	cbnz	w0, LBB0_4
; %bb.3:
Lloh23:
	adrp	x8, _ACLCHECK_NO_PRIV@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ACLCHECK_NO_PRIV@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x8, _OBJECT_TABLESPACE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _OBJECT_TABLESPACE@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x2, x24
	bl	_aclcheck_error
LBB0_4:
Lloh29:
	adrp	x8, _allowSystemTableMods@GOTPAGE
Lloh30:
	ldr	x8, [x8, _allowSystemTableMods@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	cbnz	w8, LBB0_7
; %bb.5:
	mov	x0, x20
	bl	_IsReservedName
	cbz	x0, LBB0_7
; %bb.6:
Lloh32:
	adrp	x8, _ERROR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh34:
	ldr	w24, [x8]
Lloh35:
	adrp	x8, _ERRCODE_RESERVED_NAME@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ERRCODE_RESERVED_NAME@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	bl	_errcode
Lloh38:
	adrp	x0, l_.str.1@PAGE
Lloh39:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_errmsg
Lloh40:
	adrp	x0, l_.str.2@PAGE
Lloh41:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errdetail
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
LBB0_7:
Lloh42:
	adrp	x8, _Anum_pg_tablespace_spcname@GOTPAGE
Lloh43:
	ldr	x8, [x8, _Anum_pg_tablespace_spcname@GOTPAGEOFF]
Lloh44:
	ldr	w24, [x8]
	ldr	w25, [x26]
	ldr	w26, [x27]
	mov	x0, x20
	bl	_CStringGetDatum
	mov	x4, x0
	add	x0, sp, #12
	mov	x1, x24
	mov	x2, x25
	mov	x3, x26
	bl	_ScanKeyInit
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #1
	bl	_table_beginscan_catalog
	mov	x24, x0
	ldr	w1, [x28]
	bl	_heap_getnext
	bl	_HeapTupleIsValid
	cbz	x0, LBB0_9
; %bb.8:
Lloh45:
	adrp	x8, _ERROR@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh47:
	ldr	w25, [x8]
Lloh48:
	adrp	x8, _ERRCODE_DUPLICATE_OBJECT@GOTPAGE
Lloh49:
	ldr	x8, [x8, _ERRCODE_DUPLICATE_OBJECT@GOTPAGEOFF]
Lloh50:
	ldr	w0, [x8]
	bl	_errcode
Lloh51:
	adrp	x0, l_.str.3@PAGE
Lloh52:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_errmsg
	mov	x1, x0
	mov	x0, x25
	bl	_ereport
LBB0_9:
	mov	x0, x24
	bl	_table_endscan
	mov	x0, x23
	mov	x1, x20
	bl	_namestrcpy
	mov	x0, x19
	mov	x1, x22
	mov	x2, x22
	bl	_CatalogTupleUpdate
Lloh53:
	adrp	x20, _TableSpaceRelationId@GOTPAGE
Lloh54:
	ldr	x20, [x20, _TableSpaceRelationId@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	x1, x21
	mov	w2, #0
	bl	_InvokeObjectPostAlterHook
	ldr	w1, [x20]
	mov	x2, x21
	bl	_ObjectAddressSet
Lloh55:
	adrp	x8, _NoLock@GOTPAGE
Lloh56:
	ldr	x8, [x8, _NoLock@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_table_close
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_TableSpaceRelationId,4,2       ; @TableSpaceRelationId
	.comm	_RowExclusiveLock,4,2           ; @RowExclusiveLock
	.comm	_Anum_pg_tablespace_spcname,4,2 ; @Anum_pg_tablespace_spcname
	.comm	_BTEqualStrategyNumber,4,2      ; @BTEqualStrategyNumber
	.comm	_F_NAMEEQ,4,2                   ; @F_NAMEEQ
	.comm	_ForwardScanDirection,4,2       ; @ForwardScanDirection
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_UNDEFINED_OBJECT,4,2   ; @ERRCODE_UNDEFINED_OBJECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tablespace \"%s\" does not exist"

	.comm	_ACLCHECK_NO_PRIV,4,2           ; @ACLCHECK_NO_PRIV
	.comm	_OBJECT_TABLESPACE,4,2          ; @OBJECT_TABLESPACE
	.comm	_allowSystemTableMods,4,2       ; @allowSystemTableMods
	.comm	_ERRCODE_RESERVED_NAME,4,2      ; @ERRCODE_RESERVED_NAME
l_.str.1:                               ; @.str.1
	.asciz	"unacceptable tablespace name \"%s\""

l_.str.2:                               ; @.str.2
	.asciz	"The prefix \"pg_\" is reserved for system tablespaces."

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

	.comm	_NoLock,4,2                     ; @NoLock
	.comm	_WARNING,4,2                    ; @WARNING
.subsections_via_symbols
