	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_largeobject_aclmask_snapshot ## -- Begin function pg_largeobject_aclmask_snapshot
	.p2align	4, 0x90
_pg_largeobject_aclmask_snapshot:       ## @pg_largeobject_aclmask_snapshot
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movl	%ecx, %r14d
	movl	%edx, %r13d
	movl	%esi, %ebx
	movl	%edi, %r12d
	movl	%esi, %edi
	callq	_superuser_arg
	testq	%rax, %rax
	jne	LBB0_10
## %bb.1:
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movq	_LargeObjectMetadataRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_AccessShareLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movl	%eax, %r13d
	movq	_Anum_pg_largeobject_metadata_oid@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_BTEqualStrategyNumber@GOTPCREL(%rip), %rax
	movl	%r12d, %edi
	movl	(%rax), %r12d
	movq	_F_OIDEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	callq	_ObjectIdGetDatum
	leaq	-72(%rbp), %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	movl	%r13d, %r12d
	movl	%r14d, %ecx
	movl	%eax, %r8d
	callq	_ScanKeyInit
	movq	_LargeObjectMetadataOidIndexId@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	movl	$1, %edx
	movl	%r15d, %ecx
	movl	$1, %r8d
	leaq	-72(%rbp), %r9
	callq	_systable_beginscan
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_systable_getnext
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_UNDEFINED_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_3:
	movl	%r15d, %edi
	callq	_GETSTRUCT
	movl	(%rax), %r13d
	movq	_Anum_pg_largeobject_metadata_lomacl@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r12d, %edi
	callq	_RelationGetDescr
	leaq	-68(%rbp), %rcx
	movl	%r15d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_heap_getattr
	cmpl	$0, -68(%rbp)
	movl	%r12d, -64(%rbp)                ## 4-byte Spill
	je	LBB0_5
## %bb.4:
	movq	_OBJECT_LARGEOBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_acldefault
	movq	%rax, %r14
	xorl	%r15d, %r15d
	jmp	LBB0_6
LBB0_5:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_DatumGetAclP
	movq	%rax, %r14
LBB0_6:
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movq	_AccessShareLock@GOTPCREL(%rip), %r12
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	%r14, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
	callq	_aclmask
	movl	%eax, %r13d
	testq	%r14, %r14
	je	LBB0_9
## %bb.7:
	movq	%r15, %rdi
	callq	_DatumGetPointer
	cmpq	%r14, %rax
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_pfree
LBB0_9:
	movl	%ebx, %edi
	callq	_systable_endscan
	movl	(%r12), %esi
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	callq	_table_close
LBB0_10:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LargeObjectMetadataRelationId,4,2 ## @LargeObjectMetadataRelationId
	.comm	_AccessShareLock,4,2            ## @AccessShareLock
	.comm	_Anum_pg_largeobject_metadata_oid,4,2 ## @Anum_pg_largeobject_metadata_oid
	.comm	_BTEqualStrategyNumber,4,2      ## @BTEqualStrategyNumber
	.comm	_F_OIDEQ,4,2                    ## @F_OIDEQ
	.comm	_LargeObjectMetadataOidIndexId,4,2 ## @LargeObjectMetadataOidIndexId
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_UNDEFINED_OBJECT,4,2   ## @ERRCODE_UNDEFINED_OBJECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"large object %u does not exist"

	.comm	_Anum_pg_largeobject_metadata_lomacl,4,2 ## @Anum_pg_largeobject_metadata_lomacl
	.comm	_OBJECT_LARGEOBJECT,4,2         ## @OBJECT_LARGEOBJECT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_largeobject_aclmask_snapshot ; -- Begin function pg_largeobject_aclmask_snapshot
	.p2align	2
_pg_largeobject_aclmask_snapshot:       ; @pg_largeobject_aclmask_snapshot
	.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
	mov	x23, x4
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x24, x0
	mov	x0, x1
	bl	_superuser_arg
	cbnz	x0, LBB0_10
; %bb.1:
Lloh0:
	adrp	x8, _LargeObjectMetadataRelationId@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LargeObjectMetadataRelationId@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x28, _AccessShareLock@GOTPAGE
Lloh4:
	ldr	x28, [x28, _AccessShareLock@GOTPAGEOFF]
	ldr	w1, [x28]
	bl	_table_open
	mov	x20, x0
Lloh5:
	adrp	x8, _Anum_pg_largeobject_metadata_oid@GOTPAGE
Lloh6:
	ldr	x8, [x8, _Anum_pg_largeobject_metadata_oid@GOTPAGEOFF]
Lloh7:
	ldr	w25, [x8]
Lloh8:
	adrp	x8, _BTEqualStrategyNumber@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BTEqualStrategyNumber@GOTPAGEOFF]
Lloh10:
	ldr	w26, [x8]
Lloh11:
	adrp	x8, _F_OIDEQ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _F_OIDEQ@GOTPAGEOFF]
Lloh13:
	ldr	w27, [x8]
	mov	x0, x24
	bl	_ObjectIdGetDatum
	mov	x4, x0
	add	x0, sp, #12
	mov	x1, x25
	mov	x2, x26
	mov	x3, x27
	bl	_ScanKeyInit
Lloh14:
	adrp	x8, _LargeObjectMetadataOidIndexId@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LargeObjectMetadataOidIndexId@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x5, sp, #12
	mov	x0, x20
	mov	w2, #1
	mov	x3, x23
	mov	w4, #1
	bl	_systable_beginscan
	mov	x23, x0
	bl	_systable_getnext
	mov	x25, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_3
; %bb.2:
Lloh17:
	adrp	x8, _ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w26, [x8]
Lloh20:
	adrp	x8, _ERRCODE_UNDEFINED_OBJECT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERRCODE_UNDEFINED_OBJECT@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_errcode
Lloh23:
	adrp	x0, l_.str@PAGE
Lloh24:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x24
	bl	_errmsg
	mov	x1, x0
	mov	x0, x26
	bl	_ereport
LBB0_3:
	mov	x0, x25
	bl	_GETSTRUCT
	ldr	w24, [x0]
Lloh25:
	adrp	x8, _Anum_pg_largeobject_metadata_lomacl@GOTPAGE
Lloh26:
	ldr	x8, [x8, _Anum_pg_largeobject_metadata_lomacl@GOTPAGEOFF]
Lloh27:
	ldr	w26, [x8]
	mov	x0, x20
	bl	_RelationGetDescr
	mov	x2, x0
	add	x3, sp, #8
	mov	x0, x25
	mov	x1, x26
	bl	_heap_getattr
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_5
; %bb.4:
Lloh28:
	adrp	x8, _OBJECT_LARGEOBJECT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _OBJECT_LARGEOBJECT@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	mov	x1, x24
	bl	_acldefault
	mov	x25, x0
	mov	x26, #0
	b	LBB0_6
LBB0_5:
	mov	x26, x0
	bl	_DatumGetAclP
	mov	x25, x0
LBB0_6:
	mov	x0, x25
	mov	x1, x22
	mov	x2, x24
	mov	x3, x19
	mov	x4, x21
	bl	_aclmask
	mov	x19, x0
	cbz	x25, LBB0_9
; %bb.7:
	mov	x0, x26
	bl	_DatumGetPointer
	cmp	x0, x25
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x25
	bl	_pfree
LBB0_9:
	mov	x0, x23
	bl	_systable_endscan
	ldr	w1, [x28]
	mov	x0, x20
	bl	_table_close
LBB0_10:
	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
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_LargeObjectMetadataRelationId,4,2 ; @LargeObjectMetadataRelationId
	.comm	_AccessShareLock,4,2            ; @AccessShareLock
	.comm	_Anum_pg_largeobject_metadata_oid,4,2 ; @Anum_pg_largeobject_metadata_oid
	.comm	_BTEqualStrategyNumber,4,2      ; @BTEqualStrategyNumber
	.comm	_F_OIDEQ,4,2                    ; @F_OIDEQ
	.comm	_LargeObjectMetadataOidIndexId,4,2 ; @LargeObjectMetadataOidIndexId
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_UNDEFINED_OBJECT,4,2   ; @ERRCODE_UNDEFINED_OBJECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"large object %u does not exist"

	.comm	_Anum_pg_largeobject_metadata_lomacl,4,2 ; @Anum_pg_largeobject_metadata_lomacl
	.comm	_OBJECT_LARGEOBJECT,4,2         ; @OBJECT_LARGEOBJECT
.subsections_via_symbols
