	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_type_aclmask                ## -- Begin function pg_type_aclmask
	.p2align	4, 0x90
_pg_type_aclmask:                       ## @pg_type_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, %ebx
	movl	%edx, %r15d
	movl	%esi, %r13d
	movl	%edi, %r14d
	movl	%esi, %edi
	callq	_superuser_arg
	testq	%rax, %rax
	jne	LBB0_15
## %bb.1:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	_TYPEOID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_ObjectIdGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SearchSysCache1
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_UNDEFINED_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_3:
	movl	%r12d, %edi
	callq	_GETSTRUCT
	movq	%rax, %rbx
	movl	8(%rax), %edi
	callq	_OidIsValid
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	cmpl	$-1, (%rbx)
	jne	LBB0_8
## %bb.5:
	movl	8(%rbx), %r14d
	movl	%r12d, %edi
	callq	_ReleaseSysCache
	movq	_TYPEOID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_ObjectIdGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SearchSysCache1
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	callq	_elog
LBB0_7:
	movl	%r12d, %edi
	callq	_GETSTRUCT
	movq	%rax, %rbx
LBB0_8:
	movl	4(%rbx), %ebx
	movq	_TYPEOID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_Anum_pg_type_typacl@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-52(%rbp), %rcx
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	%r12d, %esi
	callq	_SysCacheGetAttr
	cmpl	$0, -52(%rbp)
	je	LBB0_10
## %bb.9:
	movq	_OBJECT_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_acldefault
	movq	%rax, %r12
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_10:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_DatumGetAclP
	movq	%rax, %r12
LBB0_11:
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	callq	_aclmask
	movl	%eax, %r15d
	testq	%r12, %r12
	je	LBB0_14
## %bb.12:
	movq	%r14, %rdi
	callq	_DatumGetPointer
	cmpq	%r12, %rax
	je	LBB0_14
## %bb.13:
	movq	%r12, %rdi
	callq	_pfree
LBB0_14:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_ReleaseSysCache
LBB0_15:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TYPEOID,4,2                    ## @TYPEOID
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_UNDEFINED_OBJECT,4,2   ## @ERRCODE_UNDEFINED_OBJECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"type with OID %u does not exist"

L_.str.1:                               ## @.str.1
	.asciz	"cache lookup failed for type %u"

	.comm	_Anum_pg_type_typacl,4,2        ## @Anum_pg_type_typacl
	.comm	_OBJECT_TYPE,4,2                ## @OBJECT_TYPE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_type_aclmask                ; -- Begin function pg_type_aclmask
	.p2align	2
_pg_type_aclmask:                       ; @pg_type_aclmask
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x23, x0
	mov	x0, x1
	bl	_superuser_arg
	cbnz	x0, LBB0_15
; %bb.1:
Lloh0:
	adrp	x25, _TYPEOID@GOTPAGE
Lloh1:
	ldr	x25, [x25, _TYPEOID@GOTPAGEOFF]
	ldr	w22, [x25]
	mov	x0, x23
	bl	_ObjectIdGetDatum
	mov	x1, x0
	mov	x0, x22
	bl	_SearchSysCache1
	mov	x22, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w24, [x8]
Lloh5:
	adrp	x8, _ERRCODE_UNDEFINED_OBJECT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERRCODE_UNDEFINED_OBJECT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_errcode
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
LBB0_3:
	mov	x0, x22
	bl	_GETSTRUCT
	mov	x23, x0
	ldr	w0, [x0, #8]
	bl	_OidIsValid
	cbz	x0, LBB0_8
; %bb.4:
	ldr	w8, [x23]
	cmn	w8, #1
	b.ne	LBB0_8
; %bb.5:
	ldr	w23, [x23, #8]
	mov	x0, x22
	bl	_ReleaseSysCache
	ldr	w22, [x25]
	mov	x0, x23
	bl	_ObjectIdGetDatum
	mov	x1, x0
	mov	x0, x22
	bl	_SearchSysCache1
	mov	x22, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_7
; %bb.6:
Lloh10:
	adrp	x8, _ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x23
	bl	_elog
LBB0_7:
	mov	x0, x22
	bl	_GETSTRUCT
	mov	x23, x0
LBB0_8:
	ldr	w23, [x23, #4]
	ldr	w0, [x25]
Lloh15:
	adrp	x8, _Anum_pg_type_typacl@GOTPAGE
Lloh16:
	ldr	x8, [x8, _Anum_pg_type_typacl@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x1, x22
	bl	_SysCacheGetAttr
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_10
; %bb.9:
Lloh18:
	adrp	x8, _OBJECT_TYPE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _OBJECT_TYPE@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_acldefault
	mov	x24, x0
	mov	x25, #0
	b	LBB0_11
LBB0_10:
	mov	x25, x0
	bl	_DatumGetAclP
	mov	x24, x0
LBB0_11:
	mov	x0, x24
	mov	x1, x21
	mov	x2, x23
	mov	x3, x19
	mov	x4, x20
	bl	_aclmask
	mov	x19, x0
	cbz	x24, LBB0_14
; %bb.12:
	mov	x0, x25
	bl	_DatumGetPointer
	cmp	x0, x24
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x24
	bl	_pfree
LBB0_14:
	mov	x0, x22
	bl	_ReleaseSysCache
LBB0_15:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_TYPEOID,4,2                    ; @TYPEOID
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_UNDEFINED_OBJECT,4,2   ; @ERRCODE_UNDEFINED_OBJECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"type with OID %u does not exist"

l_.str.1:                               ; @.str.1
	.asciz	"cache lookup failed for type %u"

	.comm	_Anum_pg_type_typacl,4,2        ; @Anum_pg_type_typacl
	.comm	_OBJECT_TYPE,4,2                ; @OBJECT_TYPE
.subsections_via_symbols
