	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rebuild_relation
_rebuild_relation:                      ## @rebuild_relation
	.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	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %r13
	callq	_RelationGetRelid
	movl	%eax, %r14d
	movq	(%r13), %rax
	movl	4(%rax), %ebx
	movl	%r15d, %edi
	callq	_OidIsValid
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	$1, %edx
	callq	_mark_index_clustered
LBB0_2:
	movq	(%r13), %rax
	movsbl	(%rax), %r12d
	movq	%r13, %rdi
	callq	_IsSystemRelation
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_NoLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_table_close
	movq	_AccessExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_make_new_heap
	movl	%eax, %ebx
	subq	$8, %rsp
	leaq	-52(%rbp), %rax
	leaq	-60(%rbp), %r8
	leaq	-56(%rbp), %r9
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	pushq	%rax
	callq	_copy_table_data
	addq	$16, %rsp
	movl	-60(%rbp), %ecx
	movl	-56(%rbp), %r10d
	movl	-52(%rbp), %eax
	subq	$8, %rsp
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%r8d, %r8d
	movl	$1, %r9d
	pushq	%r12
	pushq	%rax
	pushq	%r10
	callq	_finish_heap_swap
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NoLock,4,2                     ## @NoLock
	.comm	_AccessExclusiveLock,4,2        ## @AccessExclusiveLock
	.no_dead_strip	_rebuild_relation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rebuild_relation
_rebuild_relation:                      ; @rebuild_relation
	.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, x2
	mov	x21, x1
	mov	x23, x0
	bl	_RelationGetRelid
	mov	x19, x0
	ldr	x8, [x23]
	ldr	w22, [x8, #4]
	mov	x0, x21
	bl	_OidIsValid
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x23
	mov	x1, x21
	mov	w2, #1
	bl	_mark_index_clustered
LBB0_2:
	ldr	x8, [x23]
	ldrsb	w24, [x8]
	mov	x0, x23
	bl	_IsSystemRelation
	mov	x25, x0
Lloh0:
	adrp	x8, _NoLock@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NoLock@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_table_close
Lloh3:
	adrp	x8, _AccessExclusiveLock@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AccessExclusiveLock@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x24
	bl	_make_new_heap
	mov	x22, x0
	add	x4, sp, #12
	add	x5, sp, #8
	add	x6, sp, #4
	mov	x1, x19
	mov	x2, x21
	mov	x3, x20
	bl	_copy_table_data
	ldp	w6, w3, [sp, #8]
	ldr	w7, [sp, #4]
	strb	w24, [sp]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x25
	mov	w4, #0
	mov	w5, #1
	bl	_finish_heap_swap
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NoLock,4,2                     ; @NoLock
	.comm	_AccessExclusiveLock,4,2        ; @AccessExclusiveLock
	.no_dead_strip	_rebuild_relation
.subsections_via_symbols
