	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RenameSchema                   ## -- Begin function RenameSchema
	.p2align	4, 0x90
_RenameSchema:                          ## @RenameSchema
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_NamespaceRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_NAMESPACENAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_CStringGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SearchSysCacheCopy1
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_UNDEFINED_SCHEMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movq	%r13, %rdi
	callq	_GETSTRUCT
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	4(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_get_namespace_oid
	movl	%eax, %edi
	callq	_OidIsValid
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_DUPLICATE_SCHEMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_4:
	xorl	%eax, %eax
	callq	_GetUserId
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_pg_namespace_ownercheck
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	_ACLCHECK_NOT_OWNER@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_OBJECT_SCHEMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_aclcheck_error
LBB0_6:
	movq	_MyDatabaseId@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	xorl	%eax, %eax
	callq	_GetUserId
	movq	_ACL_CREATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_pg_database_aclcheck
	movq	%rax, %rbx
	movq	_ACLCHECK_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_8
## %bb.7:
	movq	_OBJECT_DATABASE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%r15), %edi
	callq	_get_database_name
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%rax, %rdx
	callq	_aclcheck_error
LBB0_8:
	movq	_allowSystemTableMods@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_11
## %bb.9:
	movq	%r12, %rdi
	callq	_IsReservedName
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_RESERVED_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.2(%rip), %rdi
	movq	%r12, %rsi
	callq	_errmsg
	leaq	L_.str.3(%rip), %rdi
	callq	_errdetail
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_11:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_namestrcpy
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	movq	%r13, %rsi
	movq	%r13, %rdx
	callq	_CatalogTupleUpdate
	movq	_NamespaceRelationId@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	%r15d, %edi
	callq	_table_close
	movq	%r13, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_heap_freetuple                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NamespaceRelationId,4,2        ## @NamespaceRelationId
	.comm	_RowExclusiveLock,4,2           ## @RowExclusiveLock
	.comm	_NAMESPACENAME,4,2              ## @NAMESPACENAME
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_UNDEFINED_SCHEMA,4,2   ## @ERRCODE_UNDEFINED_SCHEMA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"schema \"%s\" does not exist"

	.comm	_ERRCODE_DUPLICATE_SCHEMA,4,2   ## @ERRCODE_DUPLICATE_SCHEMA
L_.str.1:                               ## @.str.1
	.asciz	"schema \"%s\" already exists"

	.comm	_ACLCHECK_NOT_OWNER,8,3         ## @ACLCHECK_NOT_OWNER
	.comm	_OBJECT_SCHEMA,4,2              ## @OBJECT_SCHEMA
	.comm	_MyDatabaseId,4,2               ## @MyDatabaseId
	.comm	_ACL_CREATE,4,2                 ## @ACL_CREATE
	.comm	_ACLCHECK_OK,8,3                ## @ACLCHECK_OK
	.comm	_OBJECT_DATABASE,4,2            ## @OBJECT_DATABASE
	.comm	_allowSystemTableMods,4,2       ## @allowSystemTableMods
	.comm	_ERRCODE_RESERVED_NAME,4,2      ## @ERRCODE_RESERVED_NAME
L_.str.2:                               ## @.str.2
	.asciz	"unacceptable schema name \"%s\""

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

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RenameSchema                   ; -- Begin function RenameSchema
	.p2align	2
_RenameSchema:                          ; @RenameSchema
	.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	x21, x1
	mov	x24, x0
Lloh0:
	adrp	x26, _NamespaceRelationId@GOTPAGE
Lloh1:
	ldr	x26, [x26, _NamespaceRelationId@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh2:
	adrp	x8, _RowExclusiveLock@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RowExclusiveLock@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_table_open
	mov	x19, x0
Lloh5:
	adrp	x8, _NAMESPACENAME@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NAMESPACENAME@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	mov	x0, x24
	bl	_CStringGetDatum
	mov	x1, x0
	mov	x0, x20
	bl	_SearchSysCacheCopy1
	mov	x20, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
Lloh11:
	adrp	x8, _ERRCODE_UNDEFINED_SCHEMA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERRCODE_UNDEFINED_SCHEMA@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_errcode
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x24
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
LBB0_2:
	mov	x0, x20
	bl	_GETSTRUCT
	mov	x23, x0
	ldr	w22, [x0, #4]
	mov	x0, x21
	mov	w1, #1
	bl	_get_namespace_oid
	bl	_OidIsValid
	cbz	x0, LBB0_4
; %bb.3:
Lloh16:
	adrp	x8, _ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w25, [x8]
Lloh19:
	adrp	x8, _ERRCODE_DUPLICATE_SCHEMA@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ERRCODE_DUPLICATE_SCHEMA@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_errcode
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_errmsg
	mov	x1, x0
	mov	x0, x25
	bl	_ereport
LBB0_4:
	bl	_GetUserId
	mov	x1, x0
	mov	x0, x22
	bl	_pg_namespace_ownercheck
	cbnz	w0, LBB0_6
; %bb.5:
Lloh24:
	adrp	x8, _ACLCHECK_NOT_OWNER@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ACLCHECK_NOT_OWNER@GOTPAGEOFF]
Lloh26:
	ldr	x0, [x8]
Lloh27:
	adrp	x8, _OBJECT_SCHEMA@GOTPAGE
Lloh28:
	ldr	x8, [x8, _OBJECT_SCHEMA@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x2, x24
	bl	_aclcheck_error
LBB0_6:
Lloh30:
	adrp	x27, _MyDatabaseId@GOTPAGE
Lloh31:
	ldr	x27, [x27, _MyDatabaseId@GOTPAGEOFF]
	ldr	w24, [x27]
	bl	_GetUserId
	mov	x1, x0
Lloh32:
	adrp	x8, _ACL_CREATE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ACL_CREATE@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	x0, x24
	bl	_pg_database_aclcheck
Lloh35:
	adrp	x8, _ACLCHECK_OK@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ACLCHECK_OK@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.7:
	mov	x24, x0
Lloh38:
	adrp	x8, _OBJECT_DATABASE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _OBJECT_DATABASE@GOTPAGEOFF]
Lloh40:
	ldr	w25, [x8]
	ldr	w0, [x27]
	bl	_get_database_name
	mov	x2, x0
	mov	x0, x24
	mov	x1, x25
	bl	_aclcheck_error
LBB0_8:
Lloh41:
	adrp	x8, _allowSystemTableMods@GOTPAGE
Lloh42:
	ldr	x8, [x8, _allowSystemTableMods@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	cbnz	w8, LBB0_11
; %bb.9:
	mov	x0, x21
	bl	_IsReservedName
	cbz	x0, LBB0_11
; %bb.10:
Lloh44:
	adrp	x8, _ERROR@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh46:
	ldr	w24, [x8]
Lloh47:
	adrp	x8, _ERRCODE_RESERVED_NAME@GOTPAGE
Lloh48:
	ldr	x8, [x8, _ERRCODE_RESERVED_NAME@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
	bl	_errcode
Lloh50:
	adrp	x0, l_.str.2@PAGE
Lloh51:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	bl	_errmsg
Lloh52:
	adrp	x0, l_.str.3@PAGE
Lloh53:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_errdetail
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
LBB0_11:
	mov	x0, x23
	mov	x1, x21
	bl	_namestrcpy
	mov	x0, x19
	mov	x1, x20
	mov	x2, x20
	bl	_CatalogTupleUpdate
	ldr	w0, [x26]
	mov	x1, x22
	mov	w2, #0
	bl	_InvokeObjectPostAlterHook
	ldr	w1, [x26]
	mov	x2, x22
	bl	_ObjectAddressSet
Lloh54:
	adrp	x8, _NoLock@GOTPAGE
Lloh55:
	ldr	x8, [x8, _NoLock@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_table_close
	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	_heap_freetuple
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_NamespaceRelationId,4,2        ; @NamespaceRelationId
	.comm	_RowExclusiveLock,4,2           ; @RowExclusiveLock
	.comm	_NAMESPACENAME,4,2              ; @NAMESPACENAME
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_UNDEFINED_SCHEMA,4,2   ; @ERRCODE_UNDEFINED_SCHEMA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"schema \"%s\" does not exist"

	.comm	_ERRCODE_DUPLICATE_SCHEMA,4,2   ; @ERRCODE_DUPLICATE_SCHEMA
l_.str.1:                               ; @.str.1
	.asciz	"schema \"%s\" already exists"

	.comm	_ACLCHECK_NOT_OWNER,8,3         ; @ACLCHECK_NOT_OWNER
	.comm	_OBJECT_SCHEMA,4,2              ; @OBJECT_SCHEMA
	.comm	_MyDatabaseId,4,2               ; @MyDatabaseId
	.comm	_ACL_CREATE,4,2                 ; @ACL_CREATE
	.comm	_ACLCHECK_OK,8,3                ; @ACLCHECK_OK
	.comm	_OBJECT_DATABASE,4,2            ; @OBJECT_DATABASE
	.comm	_allowSystemTableMods,4,2       ; @allowSystemTableMods
	.comm	_ERRCODE_RESERVED_NAME,4,2      ; @ERRCODE_RESERVED_NAME
l_.str.2:                               ; @.str.2
	.asciz	"unacceptable schema name \"%s\""

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

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