	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_enable_rls               ## -- Begin function check_enable_rls
	.p2align	4, 0x90
_check_enable_rls:                      ## @check_enable_rls
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r15
	testq	%rsi, %rsi
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_GetUserId
	movq	%rax, %r12
LBB0_2:
	movq	_FirstNormalObjectId@GOTPCREL(%rip), %rax
	movq	_RLS_NONE@GOTPCREL(%rip), %r13
	cmpq	%r15, (%rax)
	jg	LBB0_14
## %bb.3:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	_RELOID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_ObjectIdGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SearchSysCache1
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	je	LBB0_14
## %bb.4:
	movl	%ebx, %edi
	callq	_GETSTRUCT
	movl	4(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	(%rax), %r14d
	movl	%ebx, %edi
	callq	_ReleaseSysCache
	testl	%r14d, %r14d
	je	LBB0_14
## %bb.5:
	movq	%r12, %rdi
	callq	_has_bypassrls_privilege
	movq	_RLS_NONE_ENV@GOTPCREL(%rip), %r13
	testq	%rax, %rax
	je	LBB0_6
LBB0_14:
	movl	(%r13), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_pg_class_ownercheck
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_14
## %bb.8:
	xorl	%eax, %eax
	callq	_InNoForceRLSOperation
	testq	%rax, %rax
	jne	LBB0_14
LBB0_9:
	movq	_row_security@GOTPCREL(%rip), %rax
	movq	_RLS_ENABLED@GOTPCREL(%rip), %r13
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	orl	(%rax), %ecx
	jne	LBB0_14
## %bb.10:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	%r15, %rdi
	callq	_get_rel_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_errmsg
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.12:
	leaq	L_.str.1(%rip), %rdi
	callq	_errhint
	movl	%eax, %esi
	jmp	LBB0_13
LBB0_11:
	xorl	%esi, %esi
LBB0_13:
	movl	%r14d, %edi
	callq	_ereport
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_FirstNormalObjectId,8,3        ## @FirstNormalObjectId
	.comm	_RLS_NONE,4,2                   ## @RLS_NONE
	.comm	_RELOID,4,2                     ## @RELOID
	.comm	_RLS_NONE_ENV,4,2               ## @RLS_NONE_ENV
	.comm	_row_security,4,2               ## @row_security
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INSUFFICIENT_PRIVILEGE,4,2 ## @ERRCODE_INSUFFICIENT_PRIVILEGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"query would be affected by row-level security policy for table \"%s\""

L_.str.1:                               ## @.str.1
	.asciz	"To disable the policy for the table's owner, use ALTER TABLE NO FORCE ROW LEVEL SECURITY."

	.comm	_RLS_ENABLED,4,2                ## @RLS_ENABLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_enable_rls               ; -- Begin function check_enable_rls
	.p2align	2
_check_enable_rls:                      ; @check_enable_rls
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	cbnz	x1, LBB0_2
; %bb.1:
	bl	_GetUserId
	mov	x21, x0
LBB0_2:
Lloh0:
	adrp	x8, _FirstNormalObjectId@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FirstNormalObjectId@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x19
	b.gt	LBB0_7
; %bb.3:
Lloh3:
	adrp	x8, _RELOID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RELOID@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x0, x19
	bl	_ObjectIdGetDatum
	mov	x1, x0
	mov	x0, x22
	bl	_SearchSysCache1
	mov	x22, x0
	bl	_HeapTupleIsValid
	cbz	w0, LBB0_7
; %bb.4:
	mov	x0, x22
	bl	_GETSTRUCT
	ldp	w24, w23, [x0]
	mov	x0, x22
	bl	_ReleaseSysCache
	cbz	w24, LBB0_7
; %bb.5:
	mov	x0, x21
	bl	_has_bypassrls_privilege
	cbz	x0, LBB0_9
LBB0_6:
Lloh6:
	adrp	x8, _RLS_NONE_ENV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RLS_NONE_ENV@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x8, _RLS_NONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RLS_NONE@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x0, x19
	mov	x1, x21
	bl	_pg_class_ownercheck
	mov	x21, x0
	cbz	w0, LBB0_12
; %bb.10:
	cbz	w23, LBB0_6
; %bb.11:
	bl	_InNoForceRLSOperation
	cbnz	x0, LBB0_6
LBB0_12:
Lloh10:
	adrp	x8, _row_security@GOTPAGE
Lloh11:
	ldr	x8, [x8, _row_security@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	orr	w8, w8, w20
	cbnz	w8, LBB0_17
; %bb.13:
Lloh13:
	adrp	x8, _ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w20, [x8]
Lloh16:
	adrp	x8, _ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x19
	bl	_get_rel_name
	mov	x1, x0
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	cbz	w21, LBB0_15
; %bb.14:
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errhint
	mov	x1, x0
	b	LBB0_16
LBB0_15:
	mov	w1, #0
LBB0_16:
	mov	x0, x20
	bl	_ereport
LBB0_17:
Lloh23:
	adrp	x8, _RLS_ENABLED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _RLS_ENABLED@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_FirstNormalObjectId,8,3        ; @FirstNormalObjectId
	.comm	_RLS_NONE,4,2                   ; @RLS_NONE
	.comm	_RELOID,4,2                     ; @RELOID
	.comm	_RLS_NONE_ENV,4,2               ; @RLS_NONE_ENV
	.comm	_row_security,4,2               ; @row_security
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INSUFFICIENT_PRIVILEGE,4,2 ; @ERRCODE_INSUFFICIENT_PRIVILEGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"query would be affected by row-level security policy for table \"%s\""

l_.str.1:                               ; @.str.1
	.asciz	"To disable the policy for the table's owner, use ALTER TABLE NO FORCE ROW LEVEL SECURITY."

	.comm	_RLS_ENABLED,4,2                ; @RLS_ENABLED
.subsections_via_symbols
