	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_relation_privileges
_check_relation_privileges:             ## @check_relation_privileges
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movq	%rdi, %r15
	callq	_get_rel_relkind
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_sepgsql_getenforce
	testq	%rax, %rax
	jle	LBB0_6
## %bb.1:
	movq	_SEPG_DB_TABLE__UPDATE@GOTPCREL(%rip), %rax
	movq	_SEPG_DB_TABLE__INSERT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_SEPG_DB_TABLE__DELETE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	testl	%ebx, %ecx
	je	LBB0_4
## %bb.2:
	movq	%r15, %rdi
	callq	_IsCatalogRelationOid
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_4:
	movq	_RELKIND_TOASTVALUE@GOTPCREL(%rip), %rax
	cmpb	(%rax), %r14b
	jne	LBB0_6
## %bb.5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_6:
	movq	_RelationRelationId@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	%r15, -40(%rbp)
	movq	$0, -48(%rbp)
	leaq	-48(%rbp), %rdi
	callq	_getObjectIdentity
	movq	%rax, %rdi
	callq	_pfree
	movl	$1, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEPG_DB_TABLE__UPDATE,4,2      ## @SEPG_DB_TABLE__UPDATE
	.comm	_SEPG_DB_TABLE__INSERT,4,2      ## @SEPG_DB_TABLE__INSERT
	.comm	_SEPG_DB_TABLE__DELETE,4,2      ## @SEPG_DB_TABLE__DELETE
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INSUFFICIENT_PRIVILEGE,4,2 ## @ERRCODE_INSUFFICIENT_PRIVILEGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SELinux: hardwired security policy violation"

	.comm	_RELKIND_TOASTVALUE,1,0         ## @RELKIND_TOASTVALUE
	.comm	_RelationRelationId,8,3         ## @RelationRelationId
	.comm	_SEPG_CLASS_DB_TABLE,4,2        ## @SEPG_CLASS_DB_TABLE
	.comm	_SEPG_DB_TABLE__SELECT,4,2      ## @SEPG_DB_TABLE__SELECT
	.comm	_SEPG_CLASS_DB_SEQUENCE,4,2     ## @SEPG_CLASS_DB_SEQUENCE
	.comm	_SEPG_DB_SEQUENCE__GET_VALUE,4,2 ## @SEPG_DB_SEQUENCE__GET_VALUE
	.comm	_SEPG_CLASS_DB_VIEW,4,2         ## @SEPG_CLASS_DB_VIEW
	.comm	_SEPG_DB_VIEW__EXPAND,4,2       ## @SEPG_DB_VIEW__EXPAND
	.comm	_SEPG_DB_COLUMN__SELECT,4,2     ## @SEPG_DB_COLUMN__SELECT
	.comm	_SEPG_DB_COLUMN__INSERT,4,2     ## @SEPG_DB_COLUMN__INSERT
	.comm	_SEPG_DB_COLUMN__UPDATE,4,2     ## @SEPG_DB_COLUMN__UPDATE
	.comm	_FirstLowInvalidHeapAttributeNumber,8,3 ## @FirstLowInvalidHeapAttributeNumber
	.comm	_SEPG_CLASS_DB_COLUMN,4,2       ## @SEPG_CLASS_DB_COLUMN
	.no_dead_strip	_check_relation_privileges
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_relation_privileges
_check_relation_privileges:             ; @check_relation_privileges
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x21, x4
	mov	x19, x0
	bl	_get_rel_relkind
	mov	x20, x0
	bl	_sepgsql_getenforce
	cmp	x0, #1
	b.lt	LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _SEPG_DB_TABLE__UPDATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEPG_DB_TABLE__UPDATE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SEPG_DB_TABLE__INSERT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SEPG_DB_TABLE__INSERT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _SEPG_DB_TABLE__DELETE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SEPG_DB_TABLE__DELETE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
	tst	w8, w21
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_IsCatalogRelationOid
	cbz	x0, LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
Lloh12:
	adrp	x8, _ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_errcode
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_4:
Lloh17:
	adrp	x8, _RELKIND_TOASTVALUE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RELKIND_TOASTVALUE@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w20, uxtb
	b.ne	LBB0_6
; %bb.5:
Lloh19:
	adrp	x8, _ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w20, [x8]
Lloh22:
	adrp	x8, _ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_errcode
Lloh25:
	adrp	x0, l_.str@PAGE
Lloh26:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_6:
Lloh27:
	adrp	x8, _RelationRelationId@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RelationRelationId@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	stp	x19, x8, [sp, #16]
	str	xzr, [sp, #8]
	add	x0, sp, #8
	bl	_getObjectIdentity
	bl	_pfree
	mov	w0, #1
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_SEPG_DB_TABLE__UPDATE,4,2      ; @SEPG_DB_TABLE__UPDATE
	.comm	_SEPG_DB_TABLE__INSERT,4,2      ; @SEPG_DB_TABLE__INSERT
	.comm	_SEPG_DB_TABLE__DELETE,4,2      ; @SEPG_DB_TABLE__DELETE
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INSUFFICIENT_PRIVILEGE,4,2 ; @ERRCODE_INSUFFICIENT_PRIVILEGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SELinux: hardwired security policy violation"

	.comm	_RELKIND_TOASTVALUE,1,0         ; @RELKIND_TOASTVALUE
	.comm	_RelationRelationId,8,3         ; @RelationRelationId
	.comm	_SEPG_CLASS_DB_TABLE,4,2        ; @SEPG_CLASS_DB_TABLE
	.comm	_SEPG_DB_TABLE__SELECT,4,2      ; @SEPG_DB_TABLE__SELECT
	.comm	_SEPG_CLASS_DB_SEQUENCE,4,2     ; @SEPG_CLASS_DB_SEQUENCE
	.comm	_SEPG_DB_SEQUENCE__GET_VALUE,4,2 ; @SEPG_DB_SEQUENCE__GET_VALUE
	.comm	_SEPG_CLASS_DB_VIEW,4,2         ; @SEPG_CLASS_DB_VIEW
	.comm	_SEPG_DB_VIEW__EXPAND,4,2       ; @SEPG_DB_VIEW__EXPAND
	.comm	_SEPG_DB_COLUMN__SELECT,4,2     ; @SEPG_DB_COLUMN__SELECT
	.comm	_SEPG_DB_COLUMN__INSERT,4,2     ; @SEPG_DB_COLUMN__INSERT
	.comm	_SEPG_DB_COLUMN__UPDATE,4,2     ; @SEPG_DB_COLUMN__UPDATE
	.comm	_FirstLowInvalidHeapAttributeNumber,8,3 ; @FirstLowInvalidHeapAttributeNumber
	.comm	_SEPG_CLASS_DB_COLUMN,4,2       ; @SEPG_CLASS_DB_COLUMN
	.no_dead_strip	_check_relation_privileges
.subsections_via_symbols
