	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AlterRelationNamespaceInternal ## -- Begin function AlterRelationNamespaceInternal
	.p2align	4, 0x90
_AlterRelationNamespaceInternal:        ## @AlterRelationNamespaceInternal
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r14
	movq	%rdx, %r13
	movq	%rsi, %r15
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	_RELOID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rsi, %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	%r15, %rdx
	callq	_elog
LBB0_2:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_GETSTRUCT
	movq	%rax, %rbx
	xorl	%edi, %edi
	cmpq	%r13, (%rax)
	sete	%dil
	callq	_Assert
	movq	_RelationRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -96(%rbp)
	movq	$0, -104(%rbp)
	leaq	-104(%rbp), %rdi
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	callq	_object_address_present
	movl	%eax, %r15d
	cmpq	%r14, %r13
	je	LBB0_9
## %bb.3:
	testl	%r15d, %r15d
	jne	LBB0_9
## %bb.4:
	movq	%r14, %r12
	movl	8(%rbx), %edi
	callq	_NameStr
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_get_relname_relid
	movq	_InvalidOid@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_DUPLICATE_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	8(%rbx), %edi
	callq	_NameStr
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_get_namespace_name
	leaq	L_.str.1(%rip), %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_6:
	movq	%r12, (%rbx)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, %rsi
	callq	_CatalogTupleUpdate
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_9
## %bb.7:
	movq	_RelationRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_NamespaceRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rcx
	movq	%r12, %r8
	callq	_changeDependencyFor
	cmpl	$1, %eax
	je	LBB0_9
## %bb.8:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	8(%rbx), %edi
	callq	_NameStr
	leaq	L_.str.2(%rip), %rsi
	movl	%r12d, %edi
	movq	%rax, %rdx
	callq	_elog
LBB0_9:
	testl	%r15d, %r15d
	jne	LBB0_11
## %bb.10:
	leaq	-104(%rbp), %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_add_exact_object_address
	movq	_RelationRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_InvokeObjectPostAlterHook
LBB0_11:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_heap_freetuple
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	_RelationRelationId,4,2         ## @RelationRelationId
	.comm	_InvalidOid,8,3                 ## @InvalidOid
	.comm	_ERRCODE_DUPLICATE_TABLE,4,2    ## @ERRCODE_DUPLICATE_TABLE
L_.str.1:                               ## @.str.1
	.asciz	"relation \"%s\" already exists in schema \"%s\""

	.comm	_NamespaceRelationId,4,2        ## @NamespaceRelationId
L_.str.2:                               ## @.str.2
	.asciz	"failed to change schema dependency for relation \"%s\""

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AlterRelationNamespaceInternal ; -- Begin function AlterRelationNamespaceInternal
	.p2align	2
_AlterRelationNamespaceInternal:        ; @AlterRelationNamespaceInternal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x5
	mov	x24, x4
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x25, x0
Lloh0:
	adrp	x8, _RELOID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RELOID@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x1
	bl	_ObjectIdGetDatum
	mov	x1, x0
	mov	x0, x21
	bl	_SearchSysCacheCopy1
	mov	x21, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_elog
LBB0_2:
	mov	x0, x21
	bl	_GETSTRUCT
	mov	x26, x0
	ldr	x8, [x0]
	cmp	x8, x23
	cset	w0, eq
	bl	_Assert
Lloh8:
	adrp	x28, _RelationRelationId@GOTPAGE
Lloh9:
	ldr	x28, [x28, _RelationRelationId@GOTPAGEOFF]
	ldr	w8, [x28]
	str	w8, [sp, #24]
	stp	xzr, x19, [sp, #8]
	add	x0, sp, #8
	mov	x1, x20
	bl	_object_address_present
	mov	x27, x0
	cmp	x23, x22
	b.eq	LBB0_9
; %bb.3:
	cbnz	w27, LBB0_9
; %bb.4:
	ldr	w0, [x26, #8]
	bl	_NameStr
	mov	x1, x22
	bl	_get_relname_relid
Lloh10:
	adrp	x8, _InvalidOid@GOTPAGE
Lloh11:
	ldr	x8, [x8, _InvalidOid@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.5:
Lloh13:
	adrp	x8, _ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
Lloh16:
	adrp	x8, _ERRCODE_DUPLICATE_TABLE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ERRCODE_DUPLICATE_TABLE@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w0, [x26, #8]
	bl	_NameStr
	mov	x28, x0
	mov	x0, x22
	bl	_get_namespace_name
	mov	x2, x0
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x28
Lloh21:
	adrp	x28, _RelationRelationId@GOTPAGE
Lloh22:
	ldr	x28, [x28, _RelationRelationId@GOTPAGEOFF]
	bl	_errmsg
	mov	x1, x0
	ldr	w0, [sp, #4]                    ; 4-byte Folded Reload
	bl	_ereport
LBB0_6:
	str	x22, [x26]
	mov	x0, x25
	mov	x1, x21
	mov	x2, x21
	bl	_CatalogTupleUpdate
	cbz	w24, LBB0_9
; %bb.7:
	ldr	w0, [x28]
Lloh23:
	adrp	x8, _NamespaceRelationId@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NamespaceRelationId@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x1, x19
	mov	x3, x23
	mov	x4, x22
	bl	_changeDependencyFor
	cmp	w0, #1
	b.eq	LBB0_9
; %bb.8:
Lloh26:
	adrp	x8, _ERROR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh28:
	ldr	w22, [x8]
	ldr	w0, [x26, #8]
	bl	_NameStr
	mov	x2, x0
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_elog
LBB0_9:
	cbnz	w27, LBB0_11
; %bb.10:
	add	x0, sp, #8
	mov	x1, x20
	bl	_add_exact_object_address
	ldr	w0, [x28]
	mov	x1, x19
	mov	w2, #0
	bl	_InvokeObjectPostAlterHook
LBB0_11:
	mov	x0, x21
	bl	_heap_freetuple
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.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	_RelationRelationId,4,2         ; @RelationRelationId
	.comm	_InvalidOid,8,3                 ; @InvalidOid
	.comm	_ERRCODE_DUPLICATE_TABLE,4,2    ; @ERRCODE_DUPLICATE_TABLE
l_.str.1:                               ; @.str.1
	.asciz	"relation \"%s\" already exists in schema \"%s\""

	.comm	_NamespaceRelationId,4,2        ; @NamespaceRelationId
l_.str.2:                               ; @.str.2
	.asciz	"failed to change schema dependency for relation \"%s\""

.subsections_via_symbols
