	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RenameRewriteRule              ## -- Begin function RenameRewriteRule
	.p2align	4, 0x90
_RenameRewriteRule:                     ## @RenameRewriteRule
	.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	%rdx, %r12
	movq	%rsi, %r15
	movq	_AccessExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RangeVarCallbackForRenameRule@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_RangeVarGetRelidExtended
	movl	%eax, %r13d
	movq	_NoLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_relation_open
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_RewriteRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_RULERELNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r13d, %edi
	callq	_ObjectIdGetDatum
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_PointerGetDatum
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_SearchSysCacheCopy2
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_UNDEFINED_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_RelationGetRelationName
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movq	%r14, %rdi
	callq	_GETSTRUCT
	movq	%rax, %rbx
	movl	12(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edi
	movq	%r12, %rsi
	callq	_IsDefinedRewriteRule
	testq	%rax, %rax
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	je	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_DUPLICATE_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	%r13d, %edi
	callq	_RelationGetRelationName
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_4:
	movq	_CMD_SELECT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$48, %rax
	cmpq	%rax, (%rbx)
	jne	LBB0_6
## %bb.5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_INVALID_OBJECT_DEFINITION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_6:
	addq	$8, %rbx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_namestrcpy
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%r14, %rdx
	callq	_CatalogTupleUpdate
	movq	%r14, %rdi
	callq	_heap_freetuple
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_table_close
	movl	%r13d, %edi
	callq	_CacheInvalidateRelcache
	movq	_RewriteRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_ObjectAddressSet
	movq	_NoLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_relation_close                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AccessExclusiveLock,4,2        ## @AccessExclusiveLock
	.comm	_RangeVarCallbackForRenameRule,4,2 ## @RangeVarCallbackForRenameRule
	.comm	_NoLock,4,2                     ## @NoLock
	.comm	_RewriteRelationId,4,2          ## @RewriteRelationId
	.comm	_RowExclusiveLock,4,2           ## @RowExclusiveLock
	.comm	_RULERELNAME,4,2                ## @RULERELNAME
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_UNDEFINED_OBJECT,4,2   ## @ERRCODE_UNDEFINED_OBJECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rule \"%s\" for relation \"%s\" does not exist"

	.comm	_ERRCODE_DUPLICATE_OBJECT,4,2   ## @ERRCODE_DUPLICATE_OBJECT
L_.str.1:                               ## @.str.1
	.asciz	"rule \"%s\" for relation \"%s\" already exists"

	.comm	_CMD_SELECT,8,3                 ## @CMD_SELECT
	.comm	_ERRCODE_INVALID_OBJECT_DEFINITION,4,2 ## @ERRCODE_INVALID_OBJECT_DEFINITION
L_.str.2:                               ## @.str.2
	.asciz	"renaming an ON SELECT rule is not allowed"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RenameRewriteRule              ; -- Begin function RenameRewriteRule
	.p2align	2
_RenameRewriteRule:                     ; @RenameRewriteRule
	.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, x2
	mov	x23, x1
Lloh0:
	adrp	x8, _AccessExclusiveLock@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AccessExclusiveLock@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _RangeVarCallbackForRenameRule@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RangeVarCallbackForRenameRule@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	w2, #0
	mov	x4, #0
	bl	_RangeVarGetRelidExtended
	mov	x24, x0
Lloh6:
	adrp	x8, _NoLock@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NoLock@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_relation_open
	mov	x19, x0
Lloh9:
	adrp	x27, _RewriteRelationId@GOTPAGE
Lloh10:
	ldr	x27, [x27, _RewriteRelationId@GOTPAGEOFF]
	ldr	w0, [x27]
Lloh11:
	adrp	x28, _RowExclusiveLock@GOTPAGE
Lloh12:
	ldr	x28, [x28, _RowExclusiveLock@GOTPAGEOFF]
	ldr	w1, [x28]
	bl	_table_open
	mov	x21, x0
Lloh13:
	adrp	x8, _RULERELNAME@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RULERELNAME@GOTPAGEOFF]
Lloh15:
	ldr	w22, [x8]
	mov	x0, x24
	bl	_ObjectIdGetDatum
	mov	x25, x0
	mov	x0, x23
	bl	_PointerGetDatum
	mov	x2, x0
	mov	x0, x22
	mov	x1, x25
	bl	_SearchSysCacheCopy2
	mov	x22, x0
	bl	_HeapTupleIsValid
Lloh16:
	adrp	x26, _ERROR@GOTPAGE
Lloh17:
	ldr	x26, [x26, _ERROR@GOTPAGEOFF]
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w25, [x26]
Lloh18:
	adrp	x8, _ERRCODE_UNDEFINED_OBJECT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERRCODE_UNDEFINED_OBJECT@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x19
	bl	_RelationGetRelationName
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x23, x0, [sp]
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x25
	bl	_ereport
LBB0_2:
	mov	x0, x22
	bl	_GETSTRUCT
	mov	x25, x0
	ldr	w23, [x0, #12]
	mov	x0, x24
	mov	x1, x20
	bl	_IsDefinedRewriteRule
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w24, [x26]
Lloh23:
	adrp	x8, _ERRCODE_DUPLICATE_OBJECT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERRCODE_DUPLICATE_OBJECT@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x19
	bl	_RelationGetRelationName
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x20, x0, [sp]
Lloh26:
	adrp	x0, l_.str.1@PAGE
Lloh27:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
LBB0_4:
	ldr	x8, [x25]
Lloh28:
	adrp	x9, _CMD_SELECT@GOTPAGE
Lloh29:
	ldr	x9, [x9, _CMD_SELECT@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	add	x9, x9, #48
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldr	w24, [x26]
Lloh31:
	adrp	x8, _ERRCODE_INVALID_OBJECT_DEFINITION@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ERRCODE_INVALID_OBJECT_DEFINITION@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_errcode
Lloh34:
	adrp	x0, l_.str.2@PAGE
Lloh35:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
LBB0_6:
	add	x0, x25, #8
	mov	x1, x20
	bl	_namestrcpy
	mov	x0, x21
	mov	x1, x22
	mov	x2, x22
	bl	_CatalogTupleUpdate
	mov	x0, x22
	bl	_heap_freetuple
	ldr	w1, [x28]
	mov	x0, x21
	bl	_table_close
	mov	x0, x19
	bl	_CacheInvalidateRelcache
	ldr	w1, [x27]
	mov	x2, x23
	bl	_ObjectAddressSet
Lloh36:
	adrp	x8, _NoLock@GOTPAGE
Lloh37:
	ldr	x8, [x8, _NoLock@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_relation_close
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.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 AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_AccessExclusiveLock,4,2        ; @AccessExclusiveLock
	.comm	_RangeVarCallbackForRenameRule,4,2 ; @RangeVarCallbackForRenameRule
	.comm	_NoLock,4,2                     ; @NoLock
	.comm	_RewriteRelationId,4,2          ; @RewriteRelationId
	.comm	_RowExclusiveLock,4,2           ; @RowExclusiveLock
	.comm	_RULERELNAME,4,2                ; @RULERELNAME
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_UNDEFINED_OBJECT,4,2   ; @ERRCODE_UNDEFINED_OBJECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rule \"%s\" for relation \"%s\" does not exist"

	.comm	_ERRCODE_DUPLICATE_OBJECT,4,2   ; @ERRCODE_DUPLICATE_OBJECT
l_.str.1:                               ; @.str.1
	.asciz	"rule \"%s\" for relation \"%s\" already exists"

	.comm	_CMD_SELECT,8,3                 ; @CMD_SELECT
	.comm	_ERRCODE_INVALID_OBJECT_DEFINITION,4,2 ; @ERRCODE_INVALID_OBJECT_DEFINITION
l_.str.2:                               ; @.str.2
	.asciz	"renaming an ON SELECT rule is not allowed"

.subsections_via_symbols
