	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ATSimplePermissions
_ATSimplePermissions:                   ## @ATSimplePermissions
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$7, %eax
	ja	LBB0_1
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	movq	_ATT_TABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_1:
	xorl	%eax, %eax
	testl	%esi, %eax
	jne	LBB0_13
	jmp	LBB0_12
LBB0_4:
	movq	_ATT_VIEW@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_7:
	movq	_ATT_PARTITIONED_INDEX@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_5:
	movq	_ATT_MATVIEW@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	movq	_ATT_INDEX@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_ATT_FOREIGN_TABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_ATT_COMPOSITE_TYPE@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	testl	%esi, %eax
	jne	LBB0_13
LBB0_12:
	movq	%r14, %rdi
	callq	_ATWrongRelkindError
LBB0_13:
	movq	%r14, %rdi
	callq	_RelationGetRelid
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_GetUserId
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_pg_class_ownercheck
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:
	movq	_ACLCHECK_NOT_OWNER@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_get_relkind_objtype
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_RelationGetRelationName
	movl	%r15d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_aclcheck_error
LBB0_15:
	movq	_allowSystemTableMods@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_16
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	%r14, %rdi
	callq	_IsSystemRelation
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	%r14, %rdi
	callq	_RelationGetRelationName
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ereport                        ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_7
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_9
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_ATT_TABLE,4,2                  ## @ATT_TABLE
	.comm	_ATT_VIEW,4,2                   ## @ATT_VIEW
	.comm	_ATT_MATVIEW,4,2                ## @ATT_MATVIEW
	.comm	_ATT_INDEX,4,2                  ## @ATT_INDEX
	.comm	_ATT_PARTITIONED_INDEX,4,2      ## @ATT_PARTITIONED_INDEX
	.comm	_ATT_COMPOSITE_TYPE,4,2         ## @ATT_COMPOSITE_TYPE
	.comm	_ATT_FOREIGN_TABLE,4,2          ## @ATT_FOREIGN_TABLE
	.comm	_ACLCHECK_NOT_OWNER,4,2         ## @ACLCHECK_NOT_OWNER
	.comm	_allowSystemTableMods,4,2       ## @allowSystemTableMods
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INSUFFICIENT_PRIVILEGE,4,2 ## @ERRCODE_INSUFFICIENT_PRIVILEGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"permission denied: \"%s\" is a system catalog"

	.no_dead_strip	_ATSimplePermissions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ATSimplePermissions
_ATSimplePermissions:                   ; @ATSimplePermissions
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	ldr	x8, [x0]
	ldr	w8, [x8]
	sub	w8, w8, #128
	cmp	w8, #7
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _ATT_TABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ATT_TABLE@GOTPAGEOFF]
	b	LBB0_10
LBB0_3:
	mov	w8, #0
	tst	w8, w1
	b.ne	LBB0_12
	b	LBB0_11
LBB0_4:
Lloh4:
	adrp	x8, _ATT_VIEW@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ATT_VIEW@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
Lloh6:
	adrp	x8, _ATT_PARTITIONED_INDEX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATT_PARTITIONED_INDEX@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
Lloh8:
	adrp	x8, _ATT_MATVIEW@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ATT_MATVIEW@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
Lloh10:
	adrp	x8, _ATT_INDEX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ATT_INDEX@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh12:
	adrp	x8, _ATT_FOREIGN_TABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ATT_FOREIGN_TABLE@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh14:
	adrp	x8, _ATT_COMPOSITE_TYPE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ATT_COMPOSITE_TYPE@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	tst	w8, w1
	b.ne	LBB0_12
LBB0_11:
	mov	x0, x19
	bl	_ATWrongRelkindError
LBB0_12:
	mov	x0, x19
	bl	_RelationGetRelid
	mov	x20, x0
	bl	_GetUserId
	mov	x1, x0
	mov	x0, x20
	bl	_pg_class_ownercheck
	cbnz	w0, LBB0_14
; %bb.13:
Lloh16:
	adrp	x8, _ACLCHECK_NOT_OWNER@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ACLCHECK_NOT_OWNER@GOTPAGEOFF]
Lloh18:
	ldr	w20, [x8]
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_get_relkind_objtype
	mov	x21, x0
	mov	x0, x19
	bl	_RelationGetRelationName
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_aclcheck_error
LBB0_14:
Lloh19:
	adrp	x8, _allowSystemTableMods@GOTPAGE
Lloh20:
	ldr	x8, [x8, _allowSystemTableMods@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cbz	w8, LBB0_16
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_16:
	mov	x0, x19
	bl	_IsSystemRelation
	cbz	x0, LBB0_15
; %bb.17:
Lloh22:
	adrp	x8, _ERROR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh24:
	ldr	w20, [x8]
Lloh25:
	adrp	x8, _ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x19
	bl	_RelationGetRelationName
	mov	x1, x0
Lloh28:
	adrp	x0, l_.str@PAGE
Lloh29:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ereport
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_ATT_TABLE,4,2                  ; @ATT_TABLE
	.comm	_ATT_VIEW,4,2                   ; @ATT_VIEW
	.comm	_ATT_MATVIEW,4,2                ; @ATT_MATVIEW
	.comm	_ATT_INDEX,4,2                  ; @ATT_INDEX
	.comm	_ATT_PARTITIONED_INDEX,4,2      ; @ATT_PARTITIONED_INDEX
	.comm	_ATT_COMPOSITE_TYPE,4,2         ; @ATT_COMPOSITE_TYPE
	.comm	_ATT_FOREIGN_TABLE,4,2          ; @ATT_FOREIGN_TABLE
	.comm	_ACLCHECK_NOT_OWNER,4,2         ; @ACLCHECK_NOT_OWNER
	.comm	_allowSystemTableMods,4,2       ; @allowSystemTableMods
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INSUFFICIENT_PRIVILEGE,4,2 ; @ERRCODE_INSUFFICIENT_PRIVILEGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"permission denied: \"%s\" is a system catalog"

	.no_dead_strip	_ATSimplePermissions
.subsections_via_symbols
