	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RemovePolicyById               ## -- Begin function RemovePolicyById
	.p2align	4, 0x90
_RemovePolicyById:                      ## @RemovePolicyById
	.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	%edi, %ebx
	movq	_PolicyRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movq	%rax, %r13
	movq	_Anum_pg_policy_oid@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_BTEqualStrategyNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_F_OIDEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_ObjectIdGetDatum
	leaq	-60(%rbp), %rbx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	callq	_ScanKeyInit
	movq	_PolicyOidIndexId@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movq	%rbx, %r9
	callq	_systable_beginscan
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_systable_getnext
	movq	%rax, %r12
	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
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_elog
LBB0_2:
	movq	%r12, %rdi
	callq	_GETSTRUCT
	movl	(%rax), %edi
	movq	_AccessExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_RELKIND_RELATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.3:
	movq	_RELKIND_PARTITIONED_TABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_WRONG_OBJECT_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	%r13, %rdi
	callq	_RelationGetRelationName
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_5:
	movq	_allowSystemTableMods@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_8
## %bb.6:
	movq	%r13, %rdi
	callq	_IsSystemRelation
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	%r13, %rdi
	callq	_RelationGetRelationName
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_8:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_CatalogTupleDelete
	movl	%r15d, %edi
	callq	_systable_endscan
	movq	%r13, %rdi
	callq	_CacheInvalidateRelcache
	movq	_NoLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_table_close
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_table_close
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PolicyRelationId,4,2           ## @PolicyRelationId
	.comm	_RowExclusiveLock,4,2           ## @RowExclusiveLock
	.comm	_Anum_pg_policy_oid,4,2         ## @Anum_pg_policy_oid
	.comm	_BTEqualStrategyNumber,4,2      ## @BTEqualStrategyNumber
	.comm	_F_OIDEQ,4,2                    ## @F_OIDEQ
	.comm	_PolicyOidIndexId,4,2           ## @PolicyOidIndexId
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not find tuple for policy %u"

	.comm	_AccessExclusiveLock,4,2        ## @AccessExclusiveLock
	.comm	_RELKIND_RELATION,8,3           ## @RELKIND_RELATION
	.comm	_RELKIND_PARTITIONED_TABLE,8,3  ## @RELKIND_PARTITIONED_TABLE
	.comm	_ERRCODE_WRONG_OBJECT_TYPE,4,2  ## @ERRCODE_WRONG_OBJECT_TYPE
L_.str.1:                               ## @.str.1
	.asciz	"\"%s\" is not a table"

	.comm	_allowSystemTableMods,4,2       ## @allowSystemTableMods
	.comm	_ERRCODE_INSUFFICIENT_PRIVILEGE,4,2 ## @ERRCODE_INSUFFICIENT_PRIVILEGE
L_.str.2:                               ## @.str.2
	.asciz	"permission denied: \"%s\" is a system catalog"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RemovePolicyById               ; -- Begin function RemovePolicyById
	.p2align	2
_RemovePolicyById:                      ; @RemovePolicyById
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x0
Lloh0:
	adrp	x8, _PolicyRelationId@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PolicyRelationId@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x24, _RowExclusiveLock@GOTPAGE
Lloh4:
	ldr	x24, [x24, _RowExclusiveLock@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_table_open
	mov	x19, x0
Lloh5:
	adrp	x8, _Anum_pg_policy_oid@GOTPAGE
Lloh6:
	ldr	x8, [x8, _Anum_pg_policy_oid@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
Lloh8:
	adrp	x8, _BTEqualStrategyNumber@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BTEqualStrategyNumber@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
Lloh11:
	adrp	x8, _F_OIDEQ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _F_OIDEQ@GOTPAGEOFF]
Lloh13:
	ldr	w23, [x8]
	mov	x0, x22
	bl	_ObjectIdGetDatum
	mov	x4, x0
	add	x0, sp, #12
	mov	x1, x20
	mov	x2, x21
	mov	x3, x23
	bl	_ScanKeyInit
Lloh14:
	adrp	x8, _PolicyOidIndexId@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PolicyOidIndexId@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x5, sp, #12
	mov	x0, x19
	mov	w2, #1
	mov	x3, #0
	mov	w4, #1
	bl	_systable_beginscan
	mov	x20, x0
	bl	_systable_getnext
	mov	x21, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_2
; %bb.1:
Lloh17:
	adrp	x8, _ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_elog
LBB0_2:
	mov	x0, x21
	bl	_GETSTRUCT
	ldr	w0, [x0]
Lloh22:
	adrp	x8, _AccessExclusiveLock@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AccessExclusiveLock@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	bl	_table_open
	mov	x22, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh25:
	adrp	x9, _RELKIND_RELATION@GOTPAGE
Lloh26:
	ldr	x9, [x9, _RELKIND_RELATION@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
Lloh28:
	adrp	x10, _RELKIND_PARTITIONED_TABLE@GOTPAGE
Lloh29:
	ldr	x10, [x10, _RELKIND_PARTITIONED_TABLE@GOTPAGEOFF]
Lloh30:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_4
; %bb.3:
Lloh31:
	adrp	x8, _ERROR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh33:
	ldr	w23, [x8]
Lloh34:
	adrp	x8, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x22
	bl	_RelationGetRelationName
	mov	x1, x0
Lloh37:
	adrp	x0, l_.str.1@PAGE
Lloh38:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
LBB0_4:
Lloh39:
	adrp	x8, _allowSystemTableMods@GOTPAGE
Lloh40:
	ldr	x8, [x8, _allowSystemTableMods@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	cbnz	w8, LBB0_7
; %bb.5:
	mov	x0, x22
	bl	_IsSystemRelation
	cbz	x0, LBB0_7
; %bb.6:
Lloh42:
	adrp	x8, _ERROR@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh44:
	ldr	w23, [x8]
Lloh45:
	adrp	x8, _ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x22
	bl	_RelationGetRelationName
	mov	x1, x0
Lloh48:
	adrp	x0, l_.str.2@PAGE
Lloh49:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
LBB0_7:
	mov	x0, x19
	mov	x1, x21
	bl	_CatalogTupleDelete
	mov	x0, x20
	bl	_systable_endscan
	mov	x0, x22
	bl	_CacheInvalidateRelcache
Lloh50:
	adrp	x8, _NoLock@GOTPAGE
Lloh51:
	ldr	x8, [x8, _NoLock@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_table_close
	ldr	w1, [x24]
	mov	x0, x19
	bl	_table_close
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_PolicyRelationId,4,2           ; @PolicyRelationId
	.comm	_RowExclusiveLock,4,2           ; @RowExclusiveLock
	.comm	_Anum_pg_policy_oid,4,2         ; @Anum_pg_policy_oid
	.comm	_BTEqualStrategyNumber,4,2      ; @BTEqualStrategyNumber
	.comm	_F_OIDEQ,4,2                    ; @F_OIDEQ
	.comm	_PolicyOidIndexId,4,2           ; @PolicyOidIndexId
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not find tuple for policy %u"

	.comm	_AccessExclusiveLock,4,2        ; @AccessExclusiveLock
	.comm	_RELKIND_RELATION,8,3           ; @RELKIND_RELATION
	.comm	_RELKIND_PARTITIONED_TABLE,8,3  ; @RELKIND_PARTITIONED_TABLE
	.comm	_ERRCODE_WRONG_OBJECT_TYPE,4,2  ; @ERRCODE_WRONG_OBJECT_TYPE
l_.str.1:                               ; @.str.1
	.asciz	"\"%s\" is not a table"

	.comm	_allowSystemTableMods,4,2       ; @allowSystemTableMods
	.comm	_ERRCODE_INSUFFICIENT_PRIVILEGE,4,2 ; @ERRCODE_INSUFFICIENT_PRIVILEGE
l_.str.2:                               ; @.str.2
	.asciz	"permission denied: \"%s\" is a system catalog"

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