	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_attribute_aclcheck_all      ## -- Begin function pg_attribute_aclcheck_all
	.p2align	4, 0x90
_pg_attribute_aclcheck_all:             ## @pg_attribute_aclcheck_all
	.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
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	_RELOID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	callq	_ObjectIdGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SearchSysCache1
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%ebx, %edi
	callq	_GETSTRUCT
	movl	(%rax), %r13d
	movl	%ebx, %edi
	callq	_ReleaseSysCache
	movq	_ACLCHECK_NO_PRIV@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	testl	%r13d, %r13d
	jle	LBB0_14
## %bb.3:
	negl	%r13d
	movl	$1, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r15d, %edi
	callq	_ReleaseSysCache
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	leal	(%r12,%r13), %eax
	incl	%eax
	movl	%r12d, %ecx
	incl	%ecx
	movl	%ecx, %r12d
	cmpl	$1, %eax
	je	LBB0_14
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_ATTNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_ObjectIdGetDatum
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_Int16GetDatum
	movl	%r15d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_SearchSysCache2
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	je	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r15d, %edi
	callq	_GETSTRUCT
	cmpq	$0, (%rax)
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_Anum_pg_attribute_attacl@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	xorl	%edx, %edx
	callq	_heap_attisnull
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r15d, %edi
	callq	_ReleaseSysCache
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_ACLCHECK_NO_PRIV@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	_ACLMASK_ALL@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_13
	jmp	LBB0_14
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_ACLMASK_ANY@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r12d, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	_pg_attribute_aclmask
	movq	%rax, %rbx
	movl	%r15d, %edi
	callq	_ReleaseSysCache
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_ACLCHECK_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	_ACLMASK_ANY@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_13
	jmp	LBB0_14
LBB0_1:
	movq	_ACLCHECK_NO_PRIV@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_14:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RELOID,4,2                     ## @RELOID
	.comm	_ACLCHECK_NO_PRIV,4,2           ## @ACLCHECK_NO_PRIV
	.comm	_ATTNUM,4,2                     ## @ATTNUM
	.comm	_Anum_pg_attribute_attacl,4,2   ## @Anum_pg_attribute_attacl
	.comm	_ACLMASK_ANY,8,3                ## @ACLMASK_ANY
	.comm	_ACLCHECK_OK,4,2                ## @ACLCHECK_OK
	.comm	_ACLMASK_ALL,8,3                ## @ACLMASK_ALL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_attribute_aclcheck_all      ; -- Begin function pg_attribute_aclcheck_all
	.p2align	2
_pg_attribute_aclcheck_all:             ; @pg_attribute_aclcheck_all
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _RELOID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RELOID@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	bl	_ObjectIdGetDatum
	mov	x1, x0
	mov	x0, x23
	bl	_SearchSysCache1
	mov	x23, x0
	bl	_HeapTupleIsValid
	cbz	w0, LBB0_13
; %bb.1:
	mov	x0, x23
	bl	_GETSTRUCT
	ldr	w27, [x0]
	mov	x0, x23
	bl	_ReleaseSysCache
Lloh3:
	adrp	x8, _ACLCHECK_NO_PRIV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACLCHECK_NO_PRIV@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	cmp	w27, #1
	b.lt	LBB0_14
; %bb.2:
	mov	w23, #0
Lloh6:
	adrp	x28, _ATTNUM@GOTPAGE
Lloh7:
	ldr	x28, [x28, _ATTNUM@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x25
	bl	_ReleaseSysCache
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w27, w23
	b.eq	LBB0_14
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	w23, w23, #1
	ldr	w25, [x28]
	mov	x0, x22
	bl	_ObjectIdGetDatum
	mov	x26, x0
	mov	x0, x23
	bl	_Int16GetDatum
	mov	x2, x0
	mov	x0, x25
	mov	x1, x26
	bl	_SearchSysCache2
	mov	x25, x0
	bl	_HeapTupleIsValid
	cbz	w0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x25
	bl	_GETSTRUCT
	ldr	x8, [x0]
	cbnz	x8, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh8:
	adrp	x8, _Anum_pg_attribute_attacl@GOTPAGE
Lloh9:
	ldr	x8, [x8, _Anum_pg_attribute_attacl@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x25
	mov	x2, #0
	bl	_heap_attisnull
	cbz	x0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x25
	bl	_ReleaseSysCache
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh11:
	adrp	x8, _ACLCHECK_NO_PRIV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ACLCHECK_NO_PRIV@GOTPAGEOFF]
Lloh13:
	ldr	w24, [x8]
Lloh14:
	adrp	x8, _ACLMASK_ALL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ACLMASK_ALL@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh16:
	adrp	x8, _ACLMASK_ANY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ACLMASK_ANY@GOTPAGEOFF]
Lloh18:
	ldr	x4, [x8]
	mov	x0, x22
	mov	x1, x23
	mov	x2, x21
	mov	x3, x20
	bl	_pg_attribute_aclmask
	mov	x24, x0
	mov	x0, x25
	bl	_ReleaseSysCache
	cbz	x24, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh19:
	adrp	x8, _ACLCHECK_OK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ACLCHECK_OK@GOTPAGEOFF]
Lloh21:
	ldr	w24, [x8]
Lloh22:
	adrp	x8, _ACLMASK_ANY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ACLMASK_ANY@GOTPAGEOFF]
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x8]
	cmp	x8, x19
	b.ne	LBB0_4
	b	LBB0_14
LBB0_13:
Lloh24:
	adrp	x8, _ACLCHECK_NO_PRIV@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ACLCHECK_NO_PRIV@GOTPAGEOFF]
Lloh26:
	ldr	w24, [x8]
LBB0_14:
	mov	x0, x24
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_RELOID,4,2                     ; @RELOID
	.comm	_ACLCHECK_NO_PRIV,4,2           ; @ACLCHECK_NO_PRIV
	.comm	_ATTNUM,4,2                     ; @ATTNUM
	.comm	_Anum_pg_attribute_attacl,4,2   ; @Anum_pg_attribute_attacl
	.comm	_ACLMASK_ANY,8,3                ; @ACLMASK_ANY
	.comm	_ACLCHECK_OK,4,2                ; @ACLCHECK_OK
	.comm	_ACLMASK_ALL,8,3                ; @ACLMASK_ALL
.subsections_via_symbols
