	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_tables_to_cluster
_get_tables_to_cluster:                 ## @get_tables_to_cluster
	.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	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	_NIL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_IndexRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_AccessShareLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movl	%eax, %r12d
	movq	_Anum_pg_index_indisclustered@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_BTEqualStrategyNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_F_BOOLEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	$1, %edi
	callq	_BoolGetDatum
	leaq	-60(%rbp), %r15
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	callq	_ScanKeyInit
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movl	%r12d, %edi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	$1, %esi
	movq	%r15, %rdx
	callq	_table_beginscan_catalog
	movl	%eax, %r13d
	movq	_ForwardScanDirection@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movl	%r13d, %edi
	callq	_heap_getnext
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rdi
	callq	_GETSTRUCT
	movq	%rax, %rbx
	movl	4(%rax), %r14d
	xorl	%eax, %eax
	callq	_GetUserId
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_pg_class_ownercheck
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_MemoryContextSwitchTo
	movl	%eax, %r14d
	movl	$8, %edi
	callq	_palloc
	movl	4(%rbx), %ecx
	movl	%ecx, 4(%rax)
	movl	(%rbx), %ecx
	movl	%ecx, (%rax)
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_lappend
	movq	%rax, %r12
	movl	%r14d, %edi
	callq	_MemoryContextSwitchTo
	jmp	LBB0_1
LBB0_4:
	movl	%r13d, %edi
	callq	_table_endscan
	movq	_AccessShareLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_relation_close
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NIL,8,3                        ## @NIL
	.comm	_IndexRelationId,4,2            ## @IndexRelationId
	.comm	_AccessShareLock,4,2            ## @AccessShareLock
	.comm	_Anum_pg_index_indisclustered,4,2 ## @Anum_pg_index_indisclustered
	.comm	_BTEqualStrategyNumber,4,2      ## @BTEqualStrategyNumber
	.comm	_F_BOOLEQ,4,2                   ## @F_BOOLEQ
	.comm	_ForwardScanDirection,4,2       ## @ForwardScanDirection
	.no_dead_strip	_get_tables_to_cluster
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_tables_to_cluster
_get_tables_to_cluster:                 ; @get_tables_to_cluster
	.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, x0
Lloh0:
	adrp	x8, _NIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIL@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
Lloh3:
	adrp	x8, _IndexRelationId@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IndexRelationId@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x25, _AccessShareLock@GOTPAGE
Lloh7:
	ldr	x25, [x25, _AccessShareLock@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_table_open
	mov	x21, x0
Lloh8:
	adrp	x8, _Anum_pg_index_indisclustered@GOTPAGE
Lloh9:
	ldr	x8, [x8, _Anum_pg_index_indisclustered@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
Lloh11:
	adrp	x8, _BTEqualStrategyNumber@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BTEqualStrategyNumber@GOTPAGEOFF]
Lloh13:
	ldr	w23, [x8]
Lloh14:
	adrp	x8, _F_BOOLEQ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _F_BOOLEQ@GOTPAGEOFF]
Lloh16:
	ldr	w24, [x8]
	mov	w0, #1
	bl	_BoolGetDatum
	mov	x4, x0
	add	x0, sp, #12
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	bl	_ScanKeyInit
	add	x2, sp, #12
	mov	x0, x21
	mov	w1, #1
	bl	_table_beginscan_catalog
	mov	x22, x0
Lloh17:
	adrp	x26, _ForwardScanDirection@GOTPAGE
Lloh18:
	ldr	x26, [x26, _ForwardScanDirection@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x26]
	mov	x0, x22
	bl	_heap_getnext
	cbz	x0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_GETSTRUCT
	mov	x23, x0
	ldr	w24, [x0, #4]
	bl	_GetUserId
	mov	x1, x0
	mov	x0, x24
	bl	_pg_class_ownercheck
	cbz	w0, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_MemoryContextSwitchTo
	mov	x24, x0
	mov	w0, #8
	bl	_palloc
	mov	x1, x0
	ldr	d0, [x23]
	str	d0, [x0]
	mov	x0, x19
	bl	_lappend
	mov	x19, x0
	mov	x0, x24
	bl	_MemoryContextSwitchTo
	b	LBB0_1
LBB0_4:
	mov	x0, x22
	bl	_table_endscan
	ldr	w1, [x25]
	mov	x0, x21
	bl	_relation_close
	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	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NIL,8,3                        ; @NIL
	.comm	_IndexRelationId,4,2            ; @IndexRelationId
	.comm	_AccessShareLock,4,2            ; @AccessShareLock
	.comm	_Anum_pg_index_indisclustered,4,2 ; @Anum_pg_index_indisclustered
	.comm	_BTEqualStrategyNumber,4,2      ; @BTEqualStrategyNumber
	.comm	_F_BOOLEQ,4,2                   ; @F_BOOLEQ
	.comm	_ForwardScanDirection,4,2       ; @ForwardScanDirection
	.no_dead_strip	_get_tables_to_cluster
.subsections_via_symbols
