	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cluster_rel                    ## -- Begin function cluster_rel
	.p2align	4, 0x90
_cluster_rel:                           ## @cluster_rel
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r12d
	movl	%edi, %ebx
	movq	_CLUOPT_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edx, %eax
	setne	-42(%rbp)                       ## 1-byte Folded Spill
	movq	_CLUOPT_RECHECK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	testl	%edx, %r15d
	setne	-41(%rbp)                       ## 1-byte Folded Spill
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	movq	_PROGRESS_COMMAND_CLUSTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_pgstat_progress_start_command
	movl	%r12d, %edi
	callq	_OidIsValid
	movq	_PROGRESS_CLUSTER_COMMAND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_PROGRESS_CLUSTER_COMMAND_VACUUM_FULL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_PROGRESS_CLUSTER_COMMAND_CLUSTER@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	callq	_pgstat_progress_update_param
	movq	_AccessExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_try_relation_open
	testq	%rax, %rax
	je	LBB0_22
## %bb.4:
	movq	%rax, %r13
	testl	%r14d, %r15d
	je	LBB0_12
## %bb.5:
	xorl	%eax, %eax
	callq	_GetUserId
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_pg_class_ownercheck
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	%r13, %rdi
	callq	_RELATION_IS_OTHER_TEMP
	testq	%rax, %rax
	jne	LBB0_6
## %bb.8:
	movl	%r12d, %edi
	callq	_OidIsValid
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	_RELOID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r12d, %edi
	callq	_ObjectIdGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SearchSysCacheExists1
	testl	%eax, %eax
	je	LBB0_6
## %bb.10:
	movq	_INDEXRELID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r12d, %edi
	callq	_ObjectIdGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SearchSysCache1
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	je	LBB0_6
## %bb.11:
	movl	%ebx, %edi
	callq	_GETSTRUCT
	movl	(%rax), %r14d
	movl	%ebx, %edi
	callq	_ReleaseSysCache
	testl	%r14d, %r14d
	je	LBB0_6
LBB0_12:
	movl	%r12d, %edi
	callq	_OidIsValid
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movq	(%r13), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_15
## %bb.14:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_FEATURE_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_15:
	movq	%r13, %rdi
	callq	_RELATION_IS_OTHER_TEMP
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movl	%r12d, %edi
	callq	_OidIsValid
	movq	%rax, %rbx
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_FEATURE_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	testq	%rbx, %rbx
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdi
	cmoveq	%rax, %rdi
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_17:
	movl	%r12d, %edi
	callq	_OidIsValid
	testq	%rax, %rax
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %rsi
	cmoveq	%rax, %rsi
	movq	%r13, %rdi
	callq	_CheckTableNotInUse
	movl	%r12d, %edi
	callq	_OidIsValid
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	xorl	%edx, %edx
	movb	-41(%rbp), %al                  ## 1-byte Reload
	movb	%al, %dl
	movq	_AccessExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_check_index_is_clusterable
LBB0_19:
	movq	(%r13), %rax
	movq	(%rax), %rax
	movq	_RELKIND_MATVIEW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.20:
	movq	%r13, %rdi
	callq	_RelationIsPopulated
	testl	%eax, %eax
	je	LBB0_6
LBB0_21:
	xorl	%ebx, %ebx
	movb	-42(%rbp), %al                  ## 1-byte Reload
	movb	%al, %bl
	movq	%r13, %rdi
	callq	_TransferPredicateLocksToHeapRelation
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_rebuild_relation
	jmp	LBB0_22
LBB0_6:
	movq	_AccessExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_relation_close
LBB0_22:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pgstat_progress_end_command    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CLUOPT_VERBOSE,4,2             ## @CLUOPT_VERBOSE
	.comm	_CLUOPT_RECHECK,4,2             ## @CLUOPT_RECHECK
	.comm	_PROGRESS_COMMAND_CLUSTER,4,2   ## @PROGRESS_COMMAND_CLUSTER
	.comm	_PROGRESS_CLUSTER_COMMAND,4,2   ## @PROGRESS_CLUSTER_COMMAND
	.comm	_PROGRESS_CLUSTER_COMMAND_CLUSTER,4,2 ## @PROGRESS_CLUSTER_COMMAND_CLUSTER
	.comm	_PROGRESS_CLUSTER_COMMAND_VACUUM_FULL,4,2 ## @PROGRESS_CLUSTER_COMMAND_VACUUM_FULL
	.comm	_AccessExclusiveLock,4,2        ## @AccessExclusiveLock
	.comm	_RELOID,4,2                     ## @RELOID
	.comm	_INDEXRELID,4,2                 ## @INDEXRELID
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ## @ERRCODE_FEATURE_NOT_SUPPORTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot cluster a shared catalog"

L_.str.1:                               ## @.str.1
	.asciz	"cannot cluster temporary tables of other sessions"

L_.str.2:                               ## @.str.2
	.asciz	"cannot vacuum temporary tables of other sessions"

L_.str.3:                               ## @.str.3
	.asciz	"CLUSTER"

L_.str.4:                               ## @.str.4
	.asciz	"VACUUM"

	.comm	_RELKIND_MATVIEW,8,3            ## @RELKIND_MATVIEW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cluster_rel                    ; -- Begin function cluster_rel
	.p2align	2
_cluster_rel:                           ; @cluster_rel
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _CLUOPT_VERBOSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CLUOPT_VERBOSE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w2
	cset	w20, ne
Lloh3:
	adrp	x8, _CLUOPT_RECHECK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CLUOPT_RECHECK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ands	w24, w8, w2
	cset	w22, ne
	bl	_CHECK_FOR_INTERRUPTS
Lloh6:
	adrp	x8, _PROGRESS_COMMAND_CLUSTER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PROGRESS_COMMAND_CLUSTER@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_pgstat_progress_start_command
	mov	x0, x19
	bl	_OidIsValid
Lloh9:
	adrp	x8, _PROGRESS_CLUSTER_COMMAND@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PROGRESS_CLUSTER_COMMAND@GOTPAGEOFF]
Lloh11:
	adrp	x9, _PROGRESS_CLUSTER_COMMAND_VACUUM_FULL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PROGRESS_CLUSTER_COMMAND_VACUUM_FULL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x10, _PROGRESS_CLUSTER_COMMAND_CLUSTER@GOTPAGE
Lloh15:
	ldr	x10, [x10, _PROGRESS_CLUSTER_COMMAND_CLUSTER@GOTPAGEOFF]
	cmp	x0, #0
	csel	x9, x9, x10, eq
	ldr	w1, [x9]
	mov	x0, x8
	bl	_pgstat_progress_update_param
Lloh16:
	adrp	x25, _AccessExclusiveLock@GOTPAGE
Lloh17:
	ldr	x25, [x25, _AccessExclusiveLock@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x23
	bl	_try_relation_open
	cbz	x0, LBB0_19
; %bb.1:
	mov	x21, x0
	cbz	w24, LBB0_8
; %bb.2:
	bl	_GetUserId
	mov	x1, x0
	mov	x0, x23
	bl	_pg_class_ownercheck
	cbz	w0, LBB0_18
; %bb.3:
	mov	x0, x21
	bl	_RELATION_IS_OTHER_TEMP
	cbnz	x0, LBB0_18
; %bb.4:
	mov	x0, x19
	bl	_OidIsValid
	cbz	x0, LBB0_8
; %bb.5:
Lloh18:
	adrp	x8, _RELOID@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RELOID@GOTPAGEOFF]
Lloh20:
	ldr	w23, [x8]
	mov	x0, x19
	bl	_ObjectIdGetDatum
	mov	x1, x0
	mov	x0, x23
	bl	_SearchSysCacheExists1
	cbz	w0, LBB0_18
; %bb.6:
Lloh21:
	adrp	x8, _INDEXRELID@GOTPAGE
Lloh22:
	ldr	x8, [x8, _INDEXRELID@GOTPAGEOFF]
Lloh23:
	ldr	w23, [x8]
	mov	x0, x19
	bl	_ObjectIdGetDatum
	mov	x1, x0
	mov	x0, x23
	bl	_SearchSysCache1
	mov	x23, x0
	bl	_HeapTupleIsValid
	cbz	w0, LBB0_18
; %bb.7:
	mov	x0, x23
	bl	_GETSTRUCT
	ldr	w24, [x0]
	mov	x0, x23
	bl	_ReleaseSysCache
	cbz	w24, LBB0_18
LBB0_8:
	mov	x0, x19
	bl	_OidIsValid
Lloh24:
	adrp	x24, _ERROR@GOTPAGE
Lloh25:
	ldr	x24, [x24, _ERROR@GOTPAGEOFF]
Lloh26:
	adrp	x26, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGE
Lloh27:
	ldr	x26, [x26, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGEOFF]
	cbz	x0, LBB0_11
; %bb.9:
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_11
; %bb.10:
	ldr	w23, [x24]
	ldr	w0, [x26]
	bl	_errcode
Lloh28:
	adrp	x0, l_.str@PAGE
Lloh29:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
LBB0_11:
	mov	x0, x21
	bl	_RELATION_IS_OTHER_TEMP
	cbz	x0, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_OidIsValid
	mov	x23, x0
	ldr	w24, [x24]
	ldr	w0, [x26]
	bl	_errcode
Lloh30:
	adrp	x8, l_.str.1@PAGE
Lloh31:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh32:
	adrp	x9, l_.str.2@PAGE
Lloh33:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	x23, #0
	csel	x0, x9, x8, eq
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
LBB0_13:
	mov	x0, x19
	bl	_OidIsValid
Lloh34:
	adrp	x8, l_.str.3@PAGE
Lloh35:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh36:
	adrp	x9, l_.str.4@PAGE
Lloh37:
	add	x9, x9, l_.str.4@PAGEOFF
	cmp	x0, #0
	csel	x1, x9, x8, eq
	mov	x0, x21
	bl	_CheckTableNotInUse
	mov	x0, x19
	bl	_OidIsValid
	cbz	x0, LBB0_15
; %bb.14:
	ldr	w3, [x25]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_check_index_is_clusterable
LBB0_15:
	ldr	x8, [x21]
	ldr	x8, [x8]
Lloh38:
	adrp	x9, _RELKIND_MATVIEW@GOTPAGE
Lloh39:
	ldr	x9, [x9, _RELKIND_MATVIEW@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x21
	bl	_RelationIsPopulated
	cbz	w0, LBB0_18
LBB0_17:
	mov	x0, x21
	bl	_TransferPredicateLocksToHeapRelation
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_rebuild_relation
	b	LBB0_19
LBB0_18:
	ldr	w1, [x25]
	mov	x0, x21
	bl	_relation_close
LBB0_19:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_pgstat_progress_end_command
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_CLUOPT_VERBOSE,4,2             ; @CLUOPT_VERBOSE
	.comm	_CLUOPT_RECHECK,4,2             ; @CLUOPT_RECHECK
	.comm	_PROGRESS_COMMAND_CLUSTER,4,2   ; @PROGRESS_COMMAND_CLUSTER
	.comm	_PROGRESS_CLUSTER_COMMAND,4,2   ; @PROGRESS_CLUSTER_COMMAND
	.comm	_PROGRESS_CLUSTER_COMMAND_CLUSTER,4,2 ; @PROGRESS_CLUSTER_COMMAND_CLUSTER
	.comm	_PROGRESS_CLUSTER_COMMAND_VACUUM_FULL,4,2 ; @PROGRESS_CLUSTER_COMMAND_VACUUM_FULL
	.comm	_AccessExclusiveLock,4,2        ; @AccessExclusiveLock
	.comm	_RELOID,4,2                     ; @RELOID
	.comm	_INDEXRELID,4,2                 ; @INDEXRELID
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ; @ERRCODE_FEATURE_NOT_SUPPORTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot cluster a shared catalog"

l_.str.1:                               ; @.str.1
	.asciz	"cannot cluster temporary tables of other sessions"

l_.str.2:                               ; @.str.2
	.asciz	"cannot vacuum temporary tables of other sessions"

l_.str.3:                               ; @.str.3
	.asciz	"CLUSTER"

l_.str.4:                               ; @.str.4
	.asciz	"VACUUM"

	.comm	_RELKIND_MATVIEW,8,3            ; @RELKIND_MATVIEW
.subsections_via_symbols
