	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EnableDisableRule              ## -- Begin function EnableDisableRule
	.p2align	4, 0x90
_EnableDisableRule:                     ## @EnableDisableRule
	.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
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r15
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	callq	_RelationGetRelid
	movq	%rax, %r14
	movq	_RewriteRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RowExclusiveLock@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_table_open
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_RULERELNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r14, %rdi
	callq	_ObjectIdGetDatum
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_PointerGetDatum
	movl	%r13d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_SearchSysCacheCopy2
	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_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	%r14, %rdi
	callq	_get_rel_name
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movq	%r13, %rdi
	callq	_GETSTRUCT
	movq	%rax, %rbx
	movq	(%rax), %r15
	xorl	%edi, %edi
	cmpq	%r14, %r15
	sete	%dil
	callq	_Assert
	xorl	%eax, %eax
	callq	_GetUserId
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_pg_class_ownercheck
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_ACLCHECK_NOT_OWNER@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r15, %rdi
	callq	_get_rel_relkind
	movl	%eax, %edi
	callq	_get_relkind_objtype
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_get_rel_name
	movl	%r14d, %edi
	movl	%r12d, %esi
	movq	_RowExclusiveLock@GOTPCREL(%rip), %r12
	movl	%eax, %edx
	callq	_aclcheck_error
LBB0_4:
	movl	12(%rbx), %edi
	callq	_DatumGetChar
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpb	%cl, %al
	jne	LBB0_5
## %bb.6:
	movq	_RewriteRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	xorl	%edx, %edx
	callq	_InvokeObjectPostAlterHook
	movq	%r13, %rdi
	callq	_heap_freetuple
	movl	(%r12), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_table_close                    ## TAILCALL
LBB0_5:
	movsbl	%cl, %edi
	callq	_CharGetDatum
	movl	%eax, 12(%rbx)
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	movq	%r13, %rsi
	movq	%r13, %rdx
	callq	_CatalogTupleUpdate
	movq	_RewriteRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	xorl	%edx, %edx
	callq	_InvokeObjectPostAlterHook
	movq	%r13, %rdi
	callq	_heap_freetuple
	movl	(%r12), %esi
	movl	%r14d, %edi
	callq	_table_close
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CacheInvalidateRelcache        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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	_ACLCHECK_NOT_OWNER,4,2         ## @ACLCHECK_NOT_OWNER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EnableDisableRule              ; -- Begin function EnableDisableRule
	.p2align	2
_EnableDisableRule:                     ; @EnableDisableRule
	.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, x2
	mov	x23, x1
	mov	x19, x0
	bl	_RelationGetRelid
	mov	x24, x0
Lloh0:
	adrp	x28, _RewriteRelationId@GOTPAGE
Lloh1:
	ldr	x28, [x28, _RewriteRelationId@GOTPAGEOFF]
	ldr	w0, [x28]
Lloh2:
	adrp	x27, _RowExclusiveLock@GOTPAGE
Lloh3:
	ldr	x27, [x27, _RowExclusiveLock@GOTPAGEOFF]
	ldr	w1, [x27]
	bl	_table_open
	mov	x20, x0
Lloh4:
	adrp	x8, _RULERELNAME@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RULERELNAME@GOTPAGEOFF]
Lloh6:
	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
	cbnz	w0, LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w25, [x8]
Lloh10:
	adrp	x8, _ERRCODE_UNDEFINED_OBJECT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERRCODE_UNDEFINED_OBJECT@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x24
	bl	_get_rel_name
	mov	x2, x0
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_errmsg
	mov	x1, x0
	mov	x0, x25
	bl	_ereport
LBB0_2:
	mov	x0, x22
	bl	_GETSTRUCT
	mov	x23, x0
	ldr	x25, [x0]
	cmp	x25, x24
	cset	w0, eq
	bl	_Assert
	bl	_GetUserId
	mov	x1, x0
	mov	x0, x25
	bl	_pg_class_ownercheck
	cbnz	w0, LBB0_4
; %bb.3:
Lloh15:
	adrp	x8, _ACLCHECK_NOT_OWNER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ACLCHECK_NOT_OWNER@GOTPAGEOFF]
Lloh17:
	ldr	w24, [x8]
	mov	x0, x25
	bl	_get_rel_relkind
	bl	_get_relkind_objtype
	mov	x26, x0
	mov	x0, x25
	bl	_get_rel_name
	mov	x2, x0
	mov	x0, x24
	mov	x1, x26
	bl	_aclcheck_error
LBB0_4:
	ldr	w0, [x23, #12]
	bl	_DatumGetChar
	cmp	w0, w21
	b.ne	LBB0_6
; %bb.5:
	ldr	w0, [x28]
	ldr	w1, [x23, #8]
	mov	w2, #0
	bl	_InvokeObjectPostAlterHook
	mov	x0, x22
	bl	_heap_freetuple
	ldr	w1, [x27]
	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_6:
	mov	x0, x21
	bl	_CharGetDatum
	str	w0, [x23, #12]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x22
	bl	_CatalogTupleUpdate
	ldr	w0, [x28]
	ldr	w1, [x23, #8]
	mov	w2, #0
	bl	_InvokeObjectPostAlterHook
	mov	x0, x22
	bl	_heap_freetuple
	ldr	w1, [x27]
	mov	x0, x20
	bl	_table_close
	mov	x0, x19
	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	_CacheInvalidateRelcache
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.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	_ACLCHECK_NOT_OWNER,4,2         ; @ACLCHECK_NOT_OWNER
.subsections_via_symbols
