	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_class_aclmask               ## -- Begin function pg_class_aclmask
	.p2align	4, 0x90
_pg_class_aclmask:                      ## @pg_class_aclmask
	.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	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, %r14d
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movl	%edi, %r15d
	movq	_RELOID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_ObjectIdGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SearchSysCache1
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_UNDEFINED_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movl	%r13d, %edi
	callq	_GETSTRUCT
	movq	_ACL_INSERT@GOTPCREL(%rip), %rdx
	movq	_ACL_UPDATE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ecx
	orl	(%rdx), %ecx
	movq	_ACL_DELETE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	%rax, %rbx
	movq	_ACL_TRUNCATE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_ACL_USAGE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%r14d, %r12d
	testl	%r14d, %ecx
	je	LBB0_3
## %bb.4:
	movq	%rsi, %r14
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_IsSystemClass
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movl	(%rbx), %eax
	movq	_RELKIND_VIEW@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_3
## %bb.6:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_superuser_arg
	testq	%rax, %rax
	jne	LBB0_3
## %bb.7:
	movq	_allowSystemTableMods@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_3
## %bb.8:
	movl	(%r14), %eax
	movq	_ACL_INSERT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_ACL_DELETE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_ACL_TRUNCATE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_ACL_USAGE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	notl	%eax
	movl	%r12d, %r14d
	andl	%eax, %r14d
	jmp	LBB0_9
LBB0_3:
	movl	%r12d, %r14d
LBB0_9:
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	callq	_superuser_arg
	testq	%rax, %rax
	je	LBB0_10
LBB0_19:
	movl	%r13d, %edi
	callq	_ReleaseSysCache
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	4(%rbx), %r15d
	movq	_RELOID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_Anum_pg_class_relacl@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rcx
	movl	%r13d, %esi
	callq	_SysCacheGetAttr
	cmpl	$0, -56(%rbp)
	je	LBB0_15
## %bb.11:
	cmpl	$128, (%rbx)
	jne	LBB0_14
## %bb.12:
	movq	_OBJECT_SEQUENCE@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_15:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_DatumGetAclP
	movq	%rax, %rbx
	jmp	LBB0_16
LBB0_14:
	movq	_OBJECT_TABLE@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_acldefault
	movq	%rax, %rbx
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_16:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	callq	_aclmask
	movl	%eax, %r14d
	testq	%rbx, %rbx
	je	LBB0_19
## %bb.17:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_DatumGetPointer
	cmpq	%rbx, %rax
	je	LBB0_19
## %bb.18:
	movq	%rbx, %rdi
	callq	_pfree
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_RELOID,4,2                     ## @RELOID
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_UNDEFINED_TABLE,4,2    ## @ERRCODE_UNDEFINED_TABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"relation with OID %u does not exist"

	.comm	_ACL_INSERT,4,2                 ## @ACL_INSERT
	.comm	_ACL_UPDATE,4,2                 ## @ACL_UPDATE
	.comm	_ACL_DELETE,4,2                 ## @ACL_DELETE
	.comm	_ACL_TRUNCATE,4,2               ## @ACL_TRUNCATE
	.comm	_ACL_USAGE,4,2                  ## @ACL_USAGE
	.comm	_RELKIND_VIEW,4,2               ## @RELKIND_VIEW
	.comm	_allowSystemTableMods,4,2       ## @allowSystemTableMods
	.comm	_Anum_pg_class_relacl,4,2       ## @Anum_pg_class_relacl
	.comm	_OBJECT_SEQUENCE,4,2            ## @OBJECT_SEQUENCE
	.comm	_OBJECT_TABLE,4,2               ## @OBJECT_TABLE
	.comm	_DEBUG2,4,2                     ## @DEBUG2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_class_aclmask               ; -- Begin function pg_class_aclmask
	.p2align	2
_pg_class_aclmask:                      ; @pg_class_aclmask
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	w3, [sp, #8]                    ; 4-byte Folded Spill
	mov	x19, x2
	mov	x22, x1
	mov	x24, x0
Lloh0:
	adrp	x8, _RELOID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RELOID@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	bl	_ObjectIdGetDatum
	mov	x1, x0
	mov	x0, x20
	bl	_SearchSysCache1
	mov	x20, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
Lloh6:
	adrp	x8, _ERRCODE_UNDEFINED_TABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERRCODE_UNDEFINED_TABLE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_errcode
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x24
	bl	_errmsg
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
LBB0_2:
	mov	x0, x20
	bl	_GETSTRUCT
	mov	x23, x0
Lloh11:
	adrp	x26, _ACL_INSERT@GOTPAGE
Lloh12:
	ldr	x26, [x26, _ACL_INSERT@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh13:
	adrp	x27, _ACL_UPDATE@GOTPAGE
Lloh14:
	ldr	x27, [x27, _ACL_UPDATE@GOTPAGEOFF]
	ldr	w9, [x27]
Lloh15:
	adrp	x28, _ACL_DELETE@GOTPAGE
Lloh16:
	ldr	x28, [x28, _ACL_DELETE@GOTPAGEOFF]
	orr	w8, w9, w8
	ldr	w9, [x28]
	orr	w8, w8, w9
Lloh17:
	adrp	x21, _ACL_TRUNCATE@GOTPAGE
Lloh18:
	ldr	x21, [x21, _ACL_TRUNCATE@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w8, w8, w9
Lloh19:
	adrp	x25, _ACL_USAGE@GOTPAGE
Lloh20:
	ldr	x25, [x25, _ACL_USAGE@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w8, w8, w9
	tst	w8, w19
	b.eq	LBB0_8
; %bb.3:
	mov	x0, x24
	mov	x1, x23
	bl	_IsSystemClass
	cbz	x0, LBB0_8
; %bb.4:
	ldr	w8, [x23]
Lloh21:
	adrp	x9, _RELKIND_VIEW@GOTPAGE
Lloh22:
	ldr	x9, [x9, _RELKIND_VIEW@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_8
; %bb.5:
	mov	x0, x22
	bl	_superuser_arg
	cbnz	x0, LBB0_8
; %bb.6:
Lloh24:
	adrp	x8, _allowSystemTableMods@GOTPAGE
Lloh25:
	ldr	x8, [x8, _allowSystemTableMods@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cbnz	w8, LBB0_8
; %bb.7:
	ldr	w8, [x26]
	ldr	w9, [x27]
	orr	w8, w9, w8
	ldr	w9, [x28]
	orr	w8, w8, w9
	ldr	w9, [x21]
	orr	w8, w8, w9
	ldr	w9, [x25]
	orr	w8, w8, w9
	bic	w19, w19, w8
LBB0_8:
	mov	x0, x22
	bl	_superuser_arg
	cbz	x0, LBB0_10
LBB0_9:
	mov	x0, x20
	bl	_ReleaseSysCache
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_10:
	ldr	w24, [x23, #4]
Lloh27:
	adrp	x8, _RELOID@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RELOID@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x8, _Anum_pg_class_relacl@GOTPAGE
Lloh31:
	ldr	x8, [x8, _Anum_pg_class_relacl@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x1, x20
	bl	_SysCacheGetAttr
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_13
; %bb.11:
	ldr	w8, [x23]
	cmp	w8, #128
	b.ne	LBB0_14
; %bb.12:
Lloh33:
	adrp	x8, _OBJECT_SEQUENCE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _OBJECT_SEQUENCE@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
	mov	x25, x0
	bl	_DatumGetAclP
	mov	x23, x0
	b	LBB0_16
LBB0_14:
Lloh35:
	adrp	x8, _OBJECT_TABLE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _OBJECT_TABLE@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	mov	x1, x24
	bl	_acldefault
	mov	x23, x0
	mov	x25, #0
LBB0_16:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x24
	mov	x3, x19
	ldr	w4, [sp, #8]                    ; 4-byte Folded Reload
	bl	_aclmask
	mov	x19, x0
	cbz	x23, LBB0_9
; %bb.17:
	mov	x0, x25
	bl	_DatumGetPointer
	cmp	x0, x23
	b.eq	LBB0_9
; %bb.18:
	mov	x0, x23
	bl	_pfree
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_RELOID,4,2                     ; @RELOID
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_UNDEFINED_TABLE,4,2    ; @ERRCODE_UNDEFINED_TABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"relation with OID %u does not exist"

	.comm	_ACL_INSERT,4,2                 ; @ACL_INSERT
	.comm	_ACL_UPDATE,4,2                 ; @ACL_UPDATE
	.comm	_ACL_DELETE,4,2                 ; @ACL_DELETE
	.comm	_ACL_TRUNCATE,4,2               ; @ACL_TRUNCATE
	.comm	_ACL_USAGE,4,2                  ; @ACL_USAGE
	.comm	_RELKIND_VIEW,4,2               ; @RELKIND_VIEW
	.comm	_allowSystemTableMods,4,2       ; @allowSystemTableMods
	.comm	_Anum_pg_class_relacl,4,2       ; @Anum_pg_class_relacl
	.comm	_OBJECT_SEQUENCE,4,2            ; @OBJECT_SEQUENCE
	.comm	_OBJECT_TABLE,4,2               ; @OBJECT_TABLE
	.comm	_DEBUG2,4,2                     ; @DEBUG2
.subsections_via_symbols
