	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AlterPolicy                    ## -- Begin function AlterPolicy
	.p2align	4, 0x90
_AlterPolicy:                           ## @AlterPolicy
	.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	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, -160(%rbp)                ## 8-byte Spill
	movq	%rsp, -216(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$0, -60(%rbp)
	movq	_NIL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	_Natts_pg_policy@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r14d
	leaq	(,%r14,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %r12d
	leaq	(,%r12,4), %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -200(%rbp)                ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -120(%rbp)                ## 8-byte Spill
	movq	24(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	leaq	-60(%rbp), %rsi
	callq	_policy_role_list_to_array
	movq	%rax, %r15
	movl	-60(%rbp), %esi
	movq	_OIDOID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$8, %ecx
	movl	$1, %r8d
	movl	$105, %r9d
	callq	_construct_array
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	xorl	%r15d, %r15d
LBB0_3:
	movl	20(%r13), %edi
	movq	_AccessExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RangeVarCallbackForPolicy@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edx, %edx
	movq	%r13, %r8
	callq	_RangeVarGetRelidExtended
	movq	%rax, %rdi
	movq	_NoLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, -192(%rbp)                ## 8-byte Spill
	callq	_relation_open
	movl	%eax, %ebx
	cmpq	$0, (%r13)
	je	LBB0_4
## %bb.5:
	xorl	%edi, %edi
	callq	_make_parsestate
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %r14
	movq	%rax, %r13
	movq	_AccessShareLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_addRangeTableEntryForRelation
	movq	%r13, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	movl	$1, %r8d
	callq	_addRTEtoQuery
	movq	(%r14), %rdi
	callq	_copyObject
	movq	_EXPR_KIND_POLICY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_transformWhereClause
	movq	%r13, %rdi
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	callq	_assign_expr_collations
	movq	(%r13), %rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movq	%r13, %rdi
	movq	%r14, %r13
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	callq	_free_parsestate
	jmp	LBB0_6
LBB0_4:
	xorl	%eax, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	%rax, -152(%rbp)                ## 8-byte Spill
LBB0_6:
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	cmpq	$0, 8(%r13)
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	movq	%r15, -208(%rbp)                ## 8-byte Spill
	je	LBB0_7
## %bb.8:
	xorl	%edi, %edi
	callq	_make_parsestate
	movq	%rax, %rbx
	movq	_AccessShareLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_addRangeTableEntryForRelation
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	movl	$1, %r8d
	callq	_addRTEtoQuery
	movq	8(%r13), %rdi
	callq	_copyObject
	movq	_EXPR_KIND_POLICY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_transformWhereClause
	movq	%rbx, %rdi
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	callq	_assign_expr_collations
	movq	(%rbx), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_free_parsestate
	jmp	LBB0_9
LBB0_7:
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
LBB0_9:
	shll	$2, %r14d
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_memset
	shll	$2, %r12d
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_memset
	movq	-200(%rbp), %rdi                ## 8-byte Reload
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_memset
	movq	_PolicyRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	_Anum_pg_policy_polrelid@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_BTEqualStrategyNumber@GOTPCREL(%rip), %r13
	movl	(%r13), %r12d
	movq	_F_OIDEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-192(%rbp), %rdi                ## 8-byte Reload
	callq	_ObjectIdGetDatum
	leaq	-56(%rbp), %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	callq	_ScanKeyInit
	leaq	-52(%rbp), %rbx
	movq	_Anum_pg_policy_polname@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%r13), %r12d
	movq	_F_NAMEEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	-104(%rbp), %r15                ## 8-byte Reload
	movl	16(%r15), %edi
	callq	_CStringGetDatum
	movq	%rbx, %rdi
	movl	-72(%rbp), %ebx                 ## 4-byte Reload
	movl	%r14d, %esi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	callq	_ScanKeyInit
	movq	_PolicyPolrelidPolnameIndexId@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	movl	$1, %edx
	xorl	%ecx, %ecx
	movl	$2, %r8d
	leaq	-56(%rbp), %r9
	callq	_systable_beginscan
	movl	%eax, -164(%rbp)                ## 4-byte Spill
	movl	%eax, %edi
	callq	_systable_getnext
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	movq	%r15, %r13
	jne	LBB0_11
## %bb.10:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_UNDEFINED_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	16(%r13), %ebx
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	callq	_RelationGetRelationName
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r14d, %edi
	movl	-72(%rbp), %ebx                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_ereport
LBB0_11:
	movq	_Anum_pg_policy_polcmd@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ebx, %edi
	callq	_RelationGetDescr
	leaq	-168(%rbp), %rcx
	movq	%r12, -184(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_heap_getattr
	movl	%eax, %ebx
	xorl	%edi, %edi
	cmpl	$0, -168(%rbp)
	sete	%dil
	callq	_Assert
	movl	%ebx, %edi
	callq	_DatumGetChar
	movl	%eax, %ebx
	movq	_ACL_SELECT_CHR@GOTPCREL(%rip), %rax
	cmpb	(%rax), %bl
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	-208(%rbp), %r15                ## 8-byte Reload
	je	LBB0_13
## %bb.12:
	movq	_ACL_DELETE_CHR@GOTPCREL(%rip), %rax
	cmpb	(%rax), %bl
	jne	LBB0_15
LBB0_13:
	cmpq	$0, 8(%r13)
	je	LBB0_15
## %bb.14:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_SYNTAX_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r14d, %edi
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_ereport
LBB0_15:
	movq	_ACL_INSERT_CHR@GOTPCREL(%rip), %rax
	cmpb	(%rax), %bl
	movq	-120(%rbp), %r12                ## 8-byte Reload
	jne	LBB0_18
## %bb.16:
	cmpq	$0, (%r13)
	je	LBB0_18
## %bb.17:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_SYNTAX_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_18:
	movq	-184(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rdi
	callq	_GETSTRUCT
	movq	(%rax), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	-176(%rbp), %rdi                ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.19:
	movq	_Anum_pg_policy_polroles@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %rax
	movl	$1, -4(%r12,%rax,4)
	callq	_PointerGetDatum
	movslq	(%rbx), %rcx
	movl	%eax, -4(%r14,%rcx,4)
	jmp	LBB0_24
LBB0_20:
	movq	_Anum_pg_policy_polroles@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	callq	_RelationGetDescr
	leaq	-144(%rbp), %rcx
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_heap_getattr
	movl	%eax, %ebx
	xorl	%edi, %edi
	cmpl	$0, -144(%rbp)
	sete	%dil
	callq	_Assert
	movl	%ebx, %edi
	callq	_DatumGetArrayTypePCopy
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_ARR_DATA_PTR
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_ARR_DIMS
	movl	(%rax), %edi
	movl	%edi, -60(%rbp)
	shll	$2, %edi
	callq	_palloc
	movq	%rax, %r15
	cmpl	$0, -60(%rbp)
	jle	LBB0_23
## %bb.21:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%rbx,8), %rdi
	callq	_ObjectIdGetDatum
	movl	%eax, (%r15,%rbx,4)
	incq	%rbx
	movslq	-60(%rbp), %rax
	cmpq	%rax, %rbx
	jl	LBB0_22
LBB0_23:
	movq	-80(%rbp), %r14                 ## 8-byte Reload
LBB0_24:
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.25:
	movq	_Anum_pg_policy_polqual@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %rax
	movl	$1, -4(%r12,%rax,4)
	callq	_nodeToString
	movl	%eax, %edi
	callq	_CStringGetTextDatum
	movslq	(%rbx), %rcx
	movl	%eax, -4(%r14,%rcx,4)
	jmp	LBB0_29
LBB0_26:
	movq	_Anum_pg_policy_polqual@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	callq	_RelationGetDescr
	leaq	-144(%rbp), %rcx
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_heap_getattr
	cmpl	$0, -144(%rbp)
	je	LBB0_28
## %bb.27:
	xorl	%eax, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_29
LBB0_28:
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_make_parsestate
	movq	%rax, %r12
	movl	%ebx, %edi
	callq	_TextDatumGetCString
	movq	%rax, %rdi
	callq	_stringToNode
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	_AccessShareLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_addRangeTableEntryForRelation
	movq	(%r12), %rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	movq	-120(%rbp), %r12                ## 8-byte Reload
	callq	_free_parsestate
LBB0_29:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_31
## %bb.30:
	movq	_Anum_pg_policy_polwithcheck@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %rax
	movl	$1, -4(%r12,%rax,4)
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	callq	_nodeToString
	movl	%eax, %edi
	callq	_CStringGetTextDatum
	movslq	(%rbx), %rcx
	movl	%eax, -4(%r14,%rcx,4)
	jmp	LBB0_35
LBB0_31:
	movq	_Anum_pg_policy_polwithcheck@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	callq	_RelationGetDescr
	leaq	-144(%rbp), %rcx
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_heap_getattr
	cmpl	$0, -144(%rbp)
	je	LBB0_33
## %bb.32:
	xorl	%ebx, %ebx
	jmp	LBB0_34
LBB0_33:
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_make_parsestate
	movq	%rax, %r12
	movl	%ebx, %edi
	callq	_TextDatumGetCString
	movq	%rax, %rdi
	callq	_stringToNode
	movq	%rax, %rbx
	movq	_AccessShareLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_addRangeTableEntryForRelation
	movq	(%r12), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	movq	-120(%rbp), %r12                ## 8-byte Reload
	callq	_free_parsestate
LBB0_34:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
LBB0_35:
	movl	-72(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_RelationGetDescr
	movq	-184(%rbp), %rdi                ## 8-byte Reload
	movl	%eax, %esi
	movq	%r14, %rdx
	movq	-200(%rbp), %rcx                ## 8-byte Reload
	movq	%r12, %r8
	callq	_heap_modify_tuple
	movl	%ebx, %edi
	movq	%rax, %rsi
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdx
	callq	_CatalogTupleUpdate
	movq	_PolicyRelationId@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	-104(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_deleteDependencyRecordsFor
	movq	_RelationRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -128(%rbp)
	movq	-192(%rbp), %rax                ## 8-byte Reload
	movq	%rax, -144(%rbp)
	movq	$0, -136(%rbp)
	movl	(%r12), %eax
	movq	-160(%rbp), %rbx                ## 8-byte Reload
	movl	%eax, 16(%rbx)
	movq	%r13, (%rbx)
	movq	$0, 8(%rbx)
	movq	_DEPENDENCY_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-144(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_recordDependencyOn
	movq	_DEPENDENCY_NORMAL@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movq	%rbx, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	-152(%rbp), %rdx                ## 8-byte Reload
	callq	_recordDependencyOnExpr
	movl	(%r14), %ecx
	movq	%rbx, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	callq	_recordDependencyOnExpr
	movl	(%r12), %edi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_deleteSharedDependencyRecordsFor
	movq	_AuthIdRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -128(%rbp)
	movq	$0, -136(%rbp)
	cmpl	$0, -60(%rbp)
	jle	LBB0_40
## %bb.36:
	xorl	%ebx, %ebx
	movq	_ACL_ID_PUBLIC@GOTPCREL(%rip), %r14
	movq	_SHARED_DEPENDENCY_POLICY@GOTPCREL(%rip), %r13
	leaq	-144(%rbp), %r12
	jmp	LBB0_37
	.p2align	4, 0x90
LBB0_39:                                ##   in Loop: Header=BB0_37 Depth=1
	incq	%rbx
	movslq	-60(%rbp), %rax
	cmpq	%rax, %rbx
	jge	LBB0_40
LBB0_37:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%rbx,4), %edi
	callq	_DatumGetObjectId
	movq	%rax, -144(%rbp)
	cmpq	(%r14), %rax
	je	LBB0_39
## %bb.38:                              ##   in Loop: Header=BB0_37 Depth=1
	movl	(%r13), %edx
	movq	-160(%rbp), %rdi                ## 8-byte Reload
	movq	%r12, %rsi
	callq	_recordSharedDependencyOn
	jmp	LBB0_39
LBB0_40:
	movq	_PolicyRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	xorl	%edx, %edx
	callq	_InvokeObjectPostAlterHook
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_heap_freetuple
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_CacheInvalidateRelcache
	movl	-164(%rbp), %edi                ## 4-byte Reload
	callq	_systable_endscan
	movq	_NoLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_relation_close
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	callq	_table_close
	movq	-216(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_42
## %bb.41:
	movq	-160(%rbp), %rax                ## 8-byte Reload
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_42:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NIL,8,3                        ## @NIL
	.comm	_Natts_pg_policy,4,2            ## @Natts_pg_policy
	.comm	_OIDOID,4,2                     ## @OIDOID
	.comm	_AccessExclusiveLock,4,2        ## @AccessExclusiveLock
	.comm	_RangeVarCallbackForPolicy,4,2  ## @RangeVarCallbackForPolicy
	.comm	_NoLock,4,2                     ## @NoLock
	.comm	_AccessShareLock,4,2            ## @AccessShareLock
	.comm	_EXPR_KIND_POLICY,4,2           ## @EXPR_KIND_POLICY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"POLICY"

	.comm	_PolicyRelationId,4,2           ## @PolicyRelationId
	.comm	_RowExclusiveLock,4,2           ## @RowExclusiveLock
	.comm	_Anum_pg_policy_polrelid,4,2    ## @Anum_pg_policy_polrelid
	.comm	_BTEqualStrategyNumber,4,2      ## @BTEqualStrategyNumber
	.comm	_F_OIDEQ,4,2                    ## @F_OIDEQ
	.comm	_Anum_pg_policy_polname,4,2     ## @Anum_pg_policy_polname
	.comm	_F_NAMEEQ,4,2                   ## @F_NAMEEQ
	.comm	_PolicyPolrelidPolnameIndexId,4,2 ## @PolicyPolrelidPolnameIndexId
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_UNDEFINED_OBJECT,4,2   ## @ERRCODE_UNDEFINED_OBJECT
L_.str.1:                               ## @.str.1
	.asciz	"policy \"%s\" for table \"%s\" does not exist"

	.comm	_Anum_pg_policy_polcmd,4,2      ## @Anum_pg_policy_polcmd
	.comm	_ACL_SELECT_CHR,1,0             ## @ACL_SELECT_CHR
	.comm	_ACL_DELETE_CHR,1,0             ## @ACL_DELETE_CHR
	.comm	_ERRCODE_SYNTAX_ERROR,4,2       ## @ERRCODE_SYNTAX_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"only USING expression allowed for SELECT, DELETE"

	.comm	_ACL_INSERT_CHR,1,0             ## @ACL_INSERT_CHR
L_.str.3:                               ## @.str.3
	.asciz	"only WITH CHECK expression allowed for INSERT"

	.comm	_Anum_pg_policy_polroles,4,2    ## @Anum_pg_policy_polroles
	.comm	_Anum_pg_policy_polqual,4,2     ## @Anum_pg_policy_polqual
	.comm	_Anum_pg_policy_polwithcheck,4,2 ## @Anum_pg_policy_polwithcheck
	.comm	_RelationRelationId,4,2         ## @RelationRelationId
	.comm	_DEPENDENCY_AUTO,4,2            ## @DEPENDENCY_AUTO
	.comm	_DEPENDENCY_NORMAL,4,2          ## @DEPENDENCY_NORMAL
	.comm	_AuthIdRelationId,4,2           ## @AuthIdRelationId
	.comm	_ACL_ID_PUBLIC,8,3              ## @ACL_ID_PUBLIC
	.comm	_SHARED_DEPENDENCY_POLICY,4,2   ## @SHARED_DEPENDENCY_POLICY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AlterPolicy                    ; -- Begin function AlterPolicy
	.p2align	2
_AlterPolicy:                           ; @AlterPolicy
	.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
	sub	sp, sp, #160
	mov	x23, x0
	mov	x19, x8
	mov	x8, sp
	stur	x8, [x29, #-208]                ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	stur	wzr, [x29, #-108]
Lloh3:
	adrp	x8, _NIL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NIL@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	stur	x8, [x29, #-160]                ; 8-byte Folded Spill
Lloh6:
	adrp	x12, _Natts_pg_policy@GOTPAGE
Lloh7:
	ldr	x12, [x12, _Natts_pg_policy@GOTPAGEOFF]
	ldr	w8, [x12]
	stur	x8, [x29, #-192]                ; 8-byte Folded Spill
	lsl	x8, x8, #2
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x24, x9, x8
	mov	sp, x24
	ldr	w26, [x12]
	lsl	x8, x26, #2
	mov	x9, x8
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x7fffffff0
	sub	x28, x9, x12
	mov	sp, x28
	mov	x9, x8
Lloh12:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh13:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x8, x8, x12
	mov	sp, x8
	ldr	x0, [x0, #24]
	stur	x8, [x29, #-176]                ; 8-byte Folded Spill
	cbz	x0, LBB0_2
; %bb.1:
	sub	x1, x29, #108
	bl	_policy_role_list_to_array
	mov	x21, x0
	ldur	w1, [x29, #-108]
Lloh14:
	adrp	x8, _OIDOID@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OIDOID@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	w3, #8
	mov	w4, #1
	mov	w5, #105
	bl	_construct_array
	stur	x0, [x29, #-240]                ; 8-byte Folded Spill
	b	LBB0_3
LBB0_2:
	stur	xzr, [x29, #-240]               ; 8-byte Folded Spill
	mov	x21, #0
LBB0_3:
	ldr	w0, [x23, #20]
Lloh17:
	adrp	x8, _AccessExclusiveLock@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AccessExclusiveLock@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _RangeVarCallbackForPolicy@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RangeVarCallbackForPolicy@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	mov	w2, #0
	mov	x4, x23
	bl	_RangeVarGetRelidExtended
Lloh23:
	adrp	x8, _NoLock@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NoLock@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	stur	x0, [x29, #-184]                ; 8-byte Folded Spill
	bl	_relation_open
	mov	x25, x0
	ldr	x8, [x23]
Lloh26:
	adrp	x27, _AccessShareLock@GOTPAGE
Lloh27:
	ldr	x27, [x27, _AccessShareLock@GOTPAGEOFF]
Lloh28:
	adrp	x22, _EXPR_KIND_POLICY@GOTPAGE
Lloh29:
	ldr	x22, [x22, _EXPR_KIND_POLICY@GOTPAGEOFF]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, #0
	bl	_make_parsestate
	mov	x20, x0
	ldr	w2, [x27]
	mov	x1, x25
	mov	x3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_addRangeTableEntryForRelation
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	mov	w3, #1
	mov	w4, #1
	bl	_addRTEtoQuery
	ldr	x0, [x23]
	bl	_copyObject
	mov	x1, x0
	ldr	w2, [x22]
Lloh30:
	adrp	x3, l_.str@PAGE
Lloh31:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_transformWhereClause
	mov	x1, x0
	mov	x0, x20
	stur	x1, [x29, #-152]                ; 8-byte Folded Spill
	bl	_assign_expr_collations
	ldr	x8, [x20]
	stur	x8, [x29, #-200]                ; 8-byte Folded Spill
	mov	x0, x20
	bl	_free_parsestate
	b	LBB0_6
LBB0_5:
	stur	xzr, [x29, #-152]               ; 8-byte Folded Spill
	ldur	x8, [x29, #-160]                ; 8-byte Folded Reload
	stur	x8, [x29, #-200]                ; 8-byte Folded Spill
LBB0_6:
	stur	x24, [x29, #-168]               ; 8-byte Folded Spill
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, #0
	bl	_make_parsestate
	mov	x20, x0
Lloh32:
	adrp	x8, _AccessShareLock@GOTPAGE
Lloh33:
	ldr	x8, [x8, _AccessShareLock@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	x24, x25
	mov	x1, x25
	mov	x3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_addRangeTableEntryForRelation
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	mov	w3, #1
	mov	w4, #1
	bl	_addRTEtoQuery
	ldr	x0, [x23, #8]
	bl	_copyObject
	mov	x1, x0
	ldr	w2, [x22]
Lloh35:
	adrp	x3, l_.str@PAGE
Lloh36:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_transformWhereClause
	mov	x1, x0
	mov	x0, x20
	stur	x1, [x29, #-232]                ; 8-byte Folded Spill
	bl	_assign_expr_collations
	ldr	x8, [x20]
	stur	x8, [x29, #-160]                ; 8-byte Folded Spill
	mov	x0, x20
	bl	_free_parsestate
	b	LBB0_9
LBB0_8:
	mov	x24, x25
	stur	xzr, [x29, #-232]               ; 8-byte Folded Spill
LBB0_9:
	ldur	x8, [x29, #-192]                ; 8-byte Folded Reload
	lsl	w2, w8, #2
	ldur	x0, [x29, #-168]                ; 8-byte Folded Reload
	mov	w1, #0
	bl	_memset
	lsl	w20, w26, #2
	ldur	x0, [x29, #-176]                ; 8-byte Folded Reload
	mov	w1, #0
	mov	x2, x20
	bl	_memset
	stur	x28, [x29, #-216]               ; 8-byte Folded Spill
	mov	x0, x28
	mov	w1, #0
	mov	x2, x20
	bl	_memset
Lloh37:
	adrp	x8, _PolicyRelationId@GOTPAGE
Lloh38:
	ldr	x8, [x8, _PolicyRelationId@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
Lloh40:
	adrp	x8, _RowExclusiveLock@GOTPAGE
Lloh41:
	ldr	x8, [x8, _RowExclusiveLock@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	bl	_table_open
	mov	x27, x0
Lloh43:
	adrp	x8, _Anum_pg_policy_polrelid@GOTPAGE
Lloh44:
	ldr	x8, [x8, _Anum_pg_policy_polrelid@GOTPAGEOFF]
Lloh45:
	ldr	w20, [x8]
Lloh46:
	adrp	x22, _BTEqualStrategyNumber@GOTPAGE
Lloh47:
	ldr	x22, [x22, _BTEqualStrategyNumber@GOTPAGEOFF]
	ldr	w26, [x22]
Lloh48:
	adrp	x8, _F_OIDEQ@GOTPAGE
Lloh49:
	ldr	x8, [x8, _F_OIDEQ@GOTPAGEOFF]
Lloh50:
	ldr	w28, [x8]
	ldur	x0, [x29, #-184]                ; 8-byte Folded Reload
	bl	_ObjectIdGetDatum
	mov	x4, x0
	sub	x25, x29, #104
	sub	x0, x29, #104
	mov	x1, x20
	mov	x2, x26
	mov	x3, x28
	bl	_ScanKeyInit
	add	x20, x25, #4
Lloh51:
	adrp	x8, _Anum_pg_policy_polname@GOTPAGE
Lloh52:
	ldr	x8, [x8, _Anum_pg_policy_polname@GOTPAGEOFF]
Lloh53:
	ldr	w26, [x8]
	ldr	w28, [x22]
Lloh54:
	adrp	x8, _F_NAMEEQ@GOTPAGE
Lloh55:
	ldr	x8, [x8, _F_NAMEEQ@GOTPAGEOFF]
Lloh56:
	ldr	w22, [x8]
	ldr	w0, [x23, #16]
	bl	_CStringGetDatum
	mov	x4, x0
	mov	x0, x20
	mov	x1, x26
	mov	x2, x28
	mov	x3, x22
	bl	_ScanKeyInit
Lloh57:
	adrp	x8, _PolicyPolrelidPolnameIndexId@GOTPAGE
Lloh58:
	ldr	x8, [x8, _PolicyPolrelidPolnameIndexId@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
	sub	x5, x29, #104
	mov	x0, x27
	mov	w2, #1
	mov	x3, #0
	mov	w4, #2
	bl	_systable_beginscan
	stur	w0, [x29, #-220]                ; 4-byte Folded Spill
	bl	_systable_getnext
	mov	x26, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_11
; %bb.10:
Lloh60:
	adrp	x8, _ERROR@GOTPAGE
Lloh61:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh62:
	ldr	w20, [x8]
Lloh63:
	adrp	x8, _ERRCODE_UNDEFINED_OBJECT@GOTPAGE
Lloh64:
	ldr	x8, [x8, _ERRCODE_UNDEFINED_OBJECT@GOTPAGEOFF]
Lloh65:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w22, [x23, #16]
	mov	x0, x24
	bl	_RelationGetRelationName
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x22, x0, [sp, #-16]!
Lloh66:
	adrp	x0, l_.str.1@PAGE
Lloh67:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	add	sp, sp, #16
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_11:
	stur	w24, [x29, #-192]               ; 4-byte Folded Spill
Lloh68:
	adrp	x8, _Anum_pg_policy_polcmd@GOTPAGE
Lloh69:
	ldr	x8, [x8, _Anum_pg_policy_polcmd@GOTPAGEOFF]
Lloh70:
	ldr	w20, [x8]
	mov	x0, x27
	bl	_RelationGetDescr
	mov	x2, x0
	sub	x3, x29, #140
	mov	x0, x26
	mov	x1, x20
	bl	_heap_getattr
	mov	x20, x0
	ldur	w8, [x29, #-140]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x20
	bl	_DatumGetChar
	mov	x20, x0
Lloh71:
	adrp	x8, _ACL_SELECT_CHR@GOTPAGE
Lloh72:
	ldr	x8, [x8, _ACL_SELECT_CHR@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w0, uxtb
	b.eq	LBB0_13
; %bb.12:
Lloh73:
	adrp	x8, _ACL_DELETE_CHR@GOTPAGE
Lloh74:
	ldr	x8, [x8, _ACL_DELETE_CHR@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w20, uxtb
	b.ne	LBB0_15
LBB0_13:
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_15
; %bb.14:
Lloh75:
	adrp	x8, _ERROR@GOTPAGE
Lloh76:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh77:
	ldr	w22, [x8]
Lloh78:
	adrp	x8, _ERRCODE_SYNTAX_ERROR@GOTPAGE
Lloh79:
	ldr	x8, [x8, _ERRCODE_SYNTAX_ERROR@GOTPAGEOFF]
Lloh80:
	ldr	w0, [x8]
	bl	_errcode
Lloh81:
	adrp	x0, l_.str.2@PAGE
Lloh82:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
LBB0_15:
Lloh83:
	adrp	x8, _ACL_INSERT_CHR@GOTPAGE
Lloh84:
	ldr	x8, [x8, _ACL_INSERT_CHR@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w20, uxtb
	ldp	x25, x24, [x29, #-176]          ; 16-byte Folded Reload
	b.ne	LBB0_18
; %bb.16:
	ldr	x8, [x23]
	cbz	x8, LBB0_18
; %bb.17:
Lloh85:
	adrp	x8, _ERROR@GOTPAGE
Lloh86:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh87:
	ldr	w20, [x8]
Lloh88:
	adrp	x8, _ERRCODE_SYNTAX_ERROR@GOTPAGE
Lloh89:
	ldr	x8, [x8, _ERRCODE_SYNTAX_ERROR@GOTPAGEOFF]
Lloh90:
	ldr	w0, [x8]
	bl	_errcode
Lloh91:
	adrp	x0, l_.str.3@PAGE
Lloh92:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_18:
	mov	x0, x26
	bl	_GETSTRUCT
	ldr	x23, [x0]
	ldur	x0, [x29, #-240]                ; 8-byte Folded Reload
	cbz	x0, LBB0_20
; %bb.19:
Lloh93:
	adrp	x20, _Anum_pg_policy_polroles@GOTPAGE
Lloh94:
	ldr	x20, [x20, _Anum_pg_policy_polroles@GOTPAGEOFF]
	ldrsw	x8, [x20]
	add	x8, x25, x8, lsl #2
	mov	w9, #1
	stur	w9, [x8, #-4]
	bl	_PointerGetDatum
	ldrsw	x8, [x20]
	add	x8, x24, x8, lsl #2
	stur	w0, [x8, #-4]
	b	LBB0_23
LBB0_20:
Lloh95:
	adrp	x8, _Anum_pg_policy_polroles@GOTPAGE
Lloh96:
	ldr	x8, [x8, _Anum_pg_policy_polroles@GOTPAGEOFF]
Lloh97:
	ldr	w20, [x8]
	mov	x0, x27
	bl	_RelationGetDescr
	mov	x2, x0
	sub	x3, x29, #136
	mov	x0, x26
	mov	x1, x20
	bl	_heap_getattr
	mov	x20, x0
	ldur	w8, [x29, #-136]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x20
	bl	_DatumGetArrayTypePCopy
	mov	x21, x0
	bl	_ARR_DATA_PTR
	mov	x20, x0
	mov	x0, x21
	bl	_ARR_DIMS
	ldr	w8, [x0]
	stur	w8, [x29, #-108]
	lsl	w0, w8, #2
	bl	_palloc
	mov	x21, x0
	ldur	w8, [x29, #-108]
	cmp	w8, #1
	b.lt	LBB0_23
; %bb.21:
	mov	x22, #0
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20, x22, lsl #3]
	bl	_ObjectIdGetDatum
	str	w0, [x21, x22, lsl #2]
	add	x22, x22, #1
	ldursw	x8, [x29, #-108]
	cmp	x22, x8
	b.lt	LBB0_22
LBB0_23:
	ldur	x0, [x29, #-152]                ; 8-byte Folded Reload
	cbz	x0, LBB0_25
; %bb.24:
Lloh98:
	adrp	x20, _Anum_pg_policy_polqual@GOTPAGE
Lloh99:
	ldr	x20, [x20, _Anum_pg_policy_polqual@GOTPAGEOFF]
	ldrsw	x8, [x20]
	add	x8, x25, x8, lsl #2
	mov	w9, #1
	stur	w9, [x8, #-4]
	bl	_nodeToString
	bl	_CStringGetTextDatum
	ldrsw	x8, [x20]
	add	x8, x24, x8, lsl #2
	stur	w0, [x8, #-4]
	b	LBB0_27
LBB0_25:
Lloh100:
	adrp	x8, _Anum_pg_policy_polqual@GOTPAGE
Lloh101:
	ldr	x8, [x8, _Anum_pg_policy_polqual@GOTPAGEOFF]
Lloh102:
	ldr	w20, [x8]
	mov	x0, x27
	bl	_RelationGetDescr
	mov	x2, x0
	sub	x3, x29, #136
	mov	x0, x26
	mov	x1, x20
	bl	_heap_getattr
	ldur	w8, [x29, #-136]
	cbz	w8, LBB0_29
; %bb.26:
	stur	xzr, [x29, #-152]               ; 8-byte Folded Spill
LBB0_27:
Lloh103:
	adrp	x28, _AccessShareLock@GOTPAGE
Lloh104:
	ldr	x28, [x28, _AccessShareLock@GOTPAGEOFF]
	ldur	x22, [x29, #-232]               ; 8-byte Folded Reload
	cbz	x22, LBB0_30
LBB0_28:
Lloh105:
	adrp	x20, _Anum_pg_policy_polwithcheck@GOTPAGE
Lloh106:
	ldr	x20, [x20, _Anum_pg_policy_polwithcheck@GOTPAGEOFF]
	ldrsw	x8, [x20]
	add	x8, x25, x8, lsl #2
	mov	w9, #1
	stur	w9, [x8, #-4]
	mov	x0, x22
	bl	_nodeToString
	bl	_CStringGetTextDatum
	ldrsw	x8, [x20]
	add	x8, x24, x8, lsl #2
	stur	w0, [x8, #-4]
	mov	x28, x22
	b	LBB0_33
LBB0_29:
	mov	x20, x0
	mov	x0, #0
	bl	_make_parsestate
	mov	x22, x0
	mov	x0, x20
	bl	_TextDatumGetCString
	bl	_stringToNode
	stur	x0, [x29, #-152]                ; 8-byte Folded Spill
Lloh107:
	adrp	x28, _AccessShareLock@GOTPAGE
Lloh108:
	ldr	x28, [x28, _AccessShareLock@GOTPAGEOFF]
	ldr	w2, [x28]
	mov	x0, x22
	ldur	w1, [x29, #-192]                ; 4-byte Folded Reload
	mov	x3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_addRangeTableEntryForRelation
	ldr	x8, [x22]
	stur	x8, [x29, #-200]                ; 8-byte Folded Spill
	mov	x0, x22
	bl	_free_parsestate
	ldur	x22, [x29, #-232]               ; 8-byte Folded Reload
	cbnz	x22, LBB0_28
LBB0_30:
Lloh109:
	adrp	x8, _Anum_pg_policy_polwithcheck@GOTPAGE
Lloh110:
	ldr	x8, [x8, _Anum_pg_policy_polwithcheck@GOTPAGEOFF]
Lloh111:
	ldr	w20, [x8]
	mov	x0, x27
	bl	_RelationGetDescr
	mov	x2, x0
	sub	x3, x29, #136
	mov	x0, x26
	mov	x1, x20
	bl	_heap_getattr
	ldur	w8, [x29, #-136]
	cbz	w8, LBB0_32
; %bb.31:
	mov	x28, #0
	b	LBB0_33
LBB0_32:
	mov	x20, x0
	mov	x0, #0
	bl	_make_parsestate
	mov	x22, x0
	mov	x0, x20
	bl	_TextDatumGetCString
	bl	_stringToNode
	ldr	w2, [x28]
	mov	x28, x0
	mov	x0, x22
	ldur	w1, [x29, #-192]                ; 4-byte Folded Reload
	mov	x3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_addRangeTableEntryForRelation
	ldr	x8, [x22]
	stur	x8, [x29, #-160]                ; 8-byte Folded Spill
	mov	x0, x22
	bl	_free_parsestate
LBB0_33:
	mov	x0, x27
	bl	_RelationGetDescr
	mov	x1, x0
	mov	x0, x26
	mov	x2, x24
	ldur	x3, [x29, #-216]                ; 8-byte Folded Reload
	mov	x4, x25
	bl	_heap_modify_tuple
	mov	x22, x0
	mov	x0, x27
	mov	x1, x22
	mov	x2, x22
	bl	_CatalogTupleUpdate
Lloh112:
	adrp	x26, _PolicyRelationId@GOTPAGE
Lloh113:
	ldr	x26, [x26, _PolicyRelationId@GOTPAGEOFF]
	ldr	w0, [x26]
	mov	x1, x23
	mov	w2, #0
	bl	_deleteDependencyRecordsFor
Lloh114:
	adrp	x8, _RelationRelationId@GOTPAGE
Lloh115:
	ldr	x8, [x8, _RelationRelationId@GOTPAGEOFF]
Lloh116:
	ldr	w8, [x8]
	stur	w8, [x29, #-120]
	ldur	x8, [x29, #-184]                ; 8-byte Folded Reload
	stp	x8, xzr, [x29, #-136]
	ldr	w8, [x26]
	str	w8, [x19, #16]
	stp	x23, xzr, [x19]
Lloh117:
	adrp	x8, _DEPENDENCY_AUTO@GOTPAGE
Lloh118:
	ldr	x8, [x8, _DEPENDENCY_AUTO@GOTPAGEOFF]
Lloh119:
	ldr	w2, [x8]
	sub	x1, x29, #136
	mov	x0, x19
	bl	_recordDependencyOn
Lloh120:
	adrp	x20, _DEPENDENCY_NORMAL@GOTPAGE
Lloh121:
	ldr	x20, [x20, _DEPENDENCY_NORMAL@GOTPAGEOFF]
	ldr	w3, [x20]
	mov	x0, x19
	ldur	x1, [x29, #-152]                ; 8-byte Folded Reload
	ldur	x2, [x29, #-200]                ; 8-byte Folded Reload
	bl	_recordDependencyOnExpr
	ldr	w3, [x20]
	mov	x0, x19
	mov	x1, x28
	ldur	x2, [x29, #-160]                ; 8-byte Folded Reload
	bl	_recordDependencyOnExpr
	ldr	w0, [x26]
	mov	x1, x23
	mov	w2, #0
	bl	_deleteSharedDependencyRecordsFor
Lloh122:
	adrp	x8, _AuthIdRelationId@GOTPAGE
Lloh123:
	ldr	x8, [x8, _AuthIdRelationId@GOTPAGEOFF]
Lloh124:
	ldr	w8, [x8]
	stur	w8, [x29, #-120]
	stur	xzr, [x29, #-128]
	ldur	w8, [x29, #-108]
	cmp	w8, #1
	b.lt	LBB0_38
; %bb.34:
	mov	x20, #0
Lloh125:
	adrp	x24, _ACL_ID_PUBLIC@GOTPAGE
Lloh126:
	ldr	x24, [x24, _ACL_ID_PUBLIC@GOTPAGEOFF]
Lloh127:
	adrp	x25, _SHARED_DEPENDENCY_POLICY@GOTPAGE
Lloh128:
	ldr	x25, [x25, _SHARED_DEPENDENCY_POLICY@GOTPAGEOFF]
	b	LBB0_36
LBB0_35:                                ;   in Loop: Header=BB0_36 Depth=1
	add	x20, x20, #1
	ldursw	x8, [x29, #-108]
	cmp	x20, x8
	b.ge	LBB0_38
LBB0_36:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, x20, lsl #2]
	bl	_DatumGetObjectId
	stur	x0, [x29, #-136]
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_35
; %bb.37:                               ;   in Loop: Header=BB0_36 Depth=1
	ldr	w2, [x25]
	sub	x1, x29, #136
	mov	x0, x19
	bl	_recordSharedDependencyOn
	b	LBB0_35
LBB0_38:
	ldr	w0, [x26]
	mov	x1, x23
	mov	w2, #0
	bl	_InvokeObjectPostAlterHook
	mov	x0, x22
	bl	_heap_freetuple
	ldur	w19, [x29, #-192]               ; 4-byte Folded Reload
	mov	x0, x19
	bl	_CacheInvalidateRelcache
	ldur	w0, [x29, #-220]                ; 4-byte Folded Reload
	bl	_systable_endscan
Lloh129:
	adrp	x8, _NoLock@GOTPAGE
Lloh130:
	ldr	x8, [x8, _NoLock@GOTPAGEOFF]
Lloh131:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_relation_close
Lloh132:
	adrp	x8, _RowExclusiveLock@GOTPAGE
Lloh133:
	ldr	x8, [x8, _RowExclusiveLock@GOTPAGEOFF]
Lloh134:
	ldr	w1, [x8]
	mov	x0, x27
	bl	_table_close
	ldur	x8, [x29, #-208]                ; 8-byte Folded Reload
	mov	sp, x8
	ldur	x8, [x29, #-96]
Lloh135:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh136:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh137:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_40
; %bb.39:
	sub	sp, x29, #80
	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
	ret
LBB0_40:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpAdd	Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGot	Lloh83, Lloh84
	.loh AdrpAdd	Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGot	Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGot	Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpLdrGot	Lloh103, Lloh104
	.loh AdrpLdrGot	Lloh105, Lloh106
	.loh AdrpLdrGot	Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh109, Lloh110, Lloh111
	.loh AdrpLdrGotLdr	Lloh122, Lloh123, Lloh124
	.loh AdrpLdrGot	Lloh120, Lloh121
	.loh AdrpLdrGotLdr	Lloh117, Lloh118, Lloh119
	.loh AdrpLdrGotLdr	Lloh114, Lloh115, Lloh116
	.loh AdrpLdrGot	Lloh112, Lloh113
	.loh AdrpLdrGot	Lloh127, Lloh128
	.loh AdrpLdrGot	Lloh125, Lloh126
	.loh AdrpLdrGotLdr	Lloh135, Lloh136, Lloh137
	.loh AdrpLdrGotLdr	Lloh132, Lloh133, Lloh134
	.loh AdrpLdrGotLdr	Lloh129, Lloh130, Lloh131
	.cfi_endproc
                                        ; -- End function
	.comm	_NIL,8,3                        ; @NIL
	.comm	_Natts_pg_policy,4,2            ; @Natts_pg_policy
	.comm	_OIDOID,4,2                     ; @OIDOID
	.comm	_AccessExclusiveLock,4,2        ; @AccessExclusiveLock
	.comm	_RangeVarCallbackForPolicy,4,2  ; @RangeVarCallbackForPolicy
	.comm	_NoLock,4,2                     ; @NoLock
	.comm	_AccessShareLock,4,2            ; @AccessShareLock
	.comm	_EXPR_KIND_POLICY,4,2           ; @EXPR_KIND_POLICY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"POLICY"

	.comm	_PolicyRelationId,4,2           ; @PolicyRelationId
	.comm	_RowExclusiveLock,4,2           ; @RowExclusiveLock
	.comm	_Anum_pg_policy_polrelid,4,2    ; @Anum_pg_policy_polrelid
	.comm	_BTEqualStrategyNumber,4,2      ; @BTEqualStrategyNumber
	.comm	_F_OIDEQ,4,2                    ; @F_OIDEQ
	.comm	_Anum_pg_policy_polname,4,2     ; @Anum_pg_policy_polname
	.comm	_F_NAMEEQ,4,2                   ; @F_NAMEEQ
	.comm	_PolicyPolrelidPolnameIndexId,4,2 ; @PolicyPolrelidPolnameIndexId
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_UNDEFINED_OBJECT,4,2   ; @ERRCODE_UNDEFINED_OBJECT
l_.str.1:                               ; @.str.1
	.asciz	"policy \"%s\" for table \"%s\" does not exist"

	.comm	_Anum_pg_policy_polcmd,4,2      ; @Anum_pg_policy_polcmd
	.comm	_ACL_SELECT_CHR,1,0             ; @ACL_SELECT_CHR
	.comm	_ACL_DELETE_CHR,1,0             ; @ACL_DELETE_CHR
	.comm	_ERRCODE_SYNTAX_ERROR,4,2       ; @ERRCODE_SYNTAX_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"only USING expression allowed for SELECT, DELETE"

	.comm	_ACL_INSERT_CHR,1,0             ; @ACL_INSERT_CHR
l_.str.3:                               ; @.str.3
	.asciz	"only WITH CHECK expression allowed for INSERT"

	.comm	_Anum_pg_policy_polroles,4,2    ; @Anum_pg_policy_polroles
	.comm	_Anum_pg_policy_polqual,4,2     ; @Anum_pg_policy_polqual
	.comm	_Anum_pg_policy_polwithcheck,4,2 ; @Anum_pg_policy_polwithcheck
	.comm	_RelationRelationId,4,2         ; @RelationRelationId
	.comm	_DEPENDENCY_AUTO,4,2            ; @DEPENDENCY_AUTO
	.comm	_DEPENDENCY_NORMAL,4,2          ; @DEPENDENCY_NORMAL
	.comm	_AuthIdRelationId,4,2           ; @AuthIdRelationId
	.comm	_ACL_ID_PUBLIC,8,3              ; @ACL_ID_PUBLIC
	.comm	_SHARED_DEPENDENCY_POLICY,4,2   ; @SHARED_DEPENDENCY_POLICY
.subsections_via_symbols
