	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function swap_relation_files
_swap_relation_files:                   ## @swap_relation_files
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movl	%r8d, -68(%rbp)                 ## 4-byte Spill
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	_RelationRelationId@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movq	_RELOID@GOTPCREL(%rip), %r14
	movl	(%r14), %r15d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_ObjectIdGetDatum
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_SearchSysCacheCopy1
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_elog
LBB0_2:
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_GETSTRUCT
	movq	%rax, %r15
	movl	(%r14), %ebx
	movq	%r13, %rdi
	callq	_ObjectIdGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SearchSysCacheCopy1
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_elog
LBB0_4:
	movq	24(%rbp), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_GETSTRUCT
	movq	(%r15), %rbx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r14
	movq	%rbx, %rdi
	callq	_OidIsValid
	testq	%rax, %rax
	movl	%r12d, -84(%rbp)                ## 4-byte Spill
	je	LBB0_9
## %bb.5:
	movq	%r14, %rdi
	callq	_OidIsValid
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	xorl	%edi, %edi
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	sete	%dil
	callq	_Assert
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movups	(%rdx), %xmm0
	movups	(%r15), %xmm1
	movups	%xmm0, (%r15)
	movups	%xmm1, (%rdx)
	movb	16(%r15), %al
	movb	16(%rdx), %cl
	movb	%cl, 16(%r15)
	movb	%al, 16(%rdx)
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_8
## %bb.7:
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_25
LBB0_9:
	movq	%rbx, %rdi
	callq	_OidIsValid
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_OidIsValid
	testq	%rax, %rax
	je	LBB0_12
LBB0_11:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	76(%r15), %edi
	callq	_NameStr
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_elog
LBB0_12:
	movq	8(%r15), %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	cmpq	8(%rbx), %rax
	je	LBB0_14
## %bb.13:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	76(%r15), %edi
	callq	_NameStr
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_elog
LBB0_14:
	movb	16(%r15), %al
	cmpb	16(%rbx), %al
	je	LBB0_16
## %bb.15:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	76(%r15), %edi
	callq	_NameStr
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_elog
LBB0_16:
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_20
## %bb.17:
	cmpq	$0, 24(%r15)
	jne	LBB0_19
## %bb.18:
	cmpq	$0, 24(%rbx)
	je	LBB0_20
LBB0_19:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	76(%r15), %edi
	callq	_NameStr
	leaq	L_.str.4(%rip), %rsi
	movl	%r14d, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_elog
LBB0_20:
	movl	72(%r15), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_RelationMapOidToFilenode
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_OidIsValid
	testq	%rax, %rax
	jne	LBB0_22
## %bb.21:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	76(%r15), %edi
	callq	_NameStr
	leaq	L_.str.5(%rip), %rsi
	movl	%r14d, %edi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_elog
LBB0_22:
	movl	72(%rbx), %esi
	movq	%r13, %rdi
	callq	_RelationMapOidToFilenode
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_OidIsValid
	testq	%rax, %rax
	jne	LBB0_24
## %bb.23:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -108(%rbp)                ## 4-byte Spill
	movl	76(%rbx), %edi
	callq	_NameStr
	leaq	L_.str.5(%rip), %rsi
	movl	-108(%rbp), %edi                ## 4-byte Reload
	movq	%rax, %rdx
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_elog
LBB0_24:
	movl	72(%r15), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_RelationMapUpdateMap
	movl	72(%rbx), %edx
	movq	%r13, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	callq	_RelationMapUpdateMap
	movq	24(%rbp), %rax
	movq	%r13, (%rax)
	addq	$8, %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movl	-84(%rbp), %r12d                ## 4-byte Reload
LBB0_25:
	movl	16(%rbp), %ebx
	movq	32(%r15), %rax
	movq	_RELKIND_INDEX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_30
## %bb.26:
	movl	%r12d, %edi
	callq	_TransactionIdIsValid
	testl	%eax, %eax
	je	LBB0_27
## %bb.28:
	movl	%r12d, %edi
	callq	_TransactionIdIsNormal
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	jmp	LBB0_29
LBB0_27:
	movl	$1, %edi
LBB0_29:
	callq	_Assert
	movl	%r12d, 68(%r15)
	movl	%ebx, 64(%r15)
LBB0_30:
	movq	56(%r15), %rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	56(%rdx), %rcx
	movq	%rcx, 56(%r15)
	movq	%rax, 56(%rdx)
	movl	48(%r15), %eax
	movl	48(%rdx), %ecx
	movl	%ecx, 48(%r15)
	movl	%eax, 48(%rdx)
	movq	40(%r15), %rax
	movq	40(%rdx), %rcx
	movq	%rcx, 40(%r15)
	movq	%rax, 40(%rdx)
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_31
## %bb.32:
	movq	%r13, %r12
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_CacheInvalidateRelcacheByTuple
	movq	%r14, %rdi
	callq	_CacheInvalidateRelcacheByTuple
	jmp	LBB0_33
LBB0_31:
	movq	%r13, %r12
	movl	-88(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	callq	_CatalogOpenIndexes
	movl	%eax, %ebx
	movl	%r14d, %edi
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movq	%rdx, %rsi
	movl	%eax, %ecx
	callq	_CatalogTupleUpdateWithInfo
	movl	%r14d, %edi
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	callq	_CatalogTupleUpdateWithInfo
	movl	%ebx, %edi
	callq	_CatalogCloseIndexes
LBB0_33:
	movq	_RelationRelationId@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	movq	_InvalidOid@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	movl	-68(%rbp), %r8d                 ## 4-byte Reload
	callq	_InvokeObjectPostAlterHookArg
	movq	(%r13), %rdi
	movl	(%rbx), %ecx
	movq	%r12, %rsi
	xorl	%edx, %edx
	movl	$1, %r8d
	callq	_InvokeObjectPostAlterHookArg
	movq	24(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_34
## %bb.37:
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	je	LBB0_40
## %bb.38:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_36
## %bb.39:
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	movl	-68(%rbp), %r8d                 ## 4-byte Reload
	movl	-84(%rbp), %r9d                 ## 4-byte Reload
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	movl	16(%rbp), %eax
	pushq	%rax
	callq	_swap_relation_files
	addq	$16, %rsp
	jmp	LBB0_53
LBB0_34:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 24(%rax)
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_52
## %bb.35:
	testl	%ebx, %ebx
	je	LBB0_40
LBB0_36:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
	jmp	LBB0_53
LBB0_40:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_IsSystemClass
	testq	%rax, %rax
	je	LBB0_42
## %bb.41:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
LBB0_42:
	movq	24(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_45
## %bb.43:
	movq	_RelationRelationId@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	xorl	%edx, %edx
	callq	_deleteDependencyRecordsFor
	cmpq	$1, %rax
	je	LBB0_45
## %bb.44:
	movq	_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.8(%rip), %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_elog
LBB0_45:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_48
## %bb.46:
	movq	_RelationRelationId@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	xorl	%edx, %edx
	callq	_deleteDependencyRecordsFor
	cmpq	$1, %rax
	je	LBB0_48
## %bb.47:
	movq	_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.8(%rip), %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_elog
LBB0_48:
	movq	_RelationRelationId@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -144(%rbp)
	movq	$0, -152(%rbp)
	movq	%rax, -120(%rbp)
	movq	$0, -128(%rbp)
	movq	24(%r15), %rax
	testq	%rax, %rax
	je	LBB0_50
## %bb.49:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, -160(%rbp)
	movq	%rax, -136(%rbp)
	movq	_DEPENDENCY_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-136(%rbp), %rdi
	leaq	-160(%rbp), %rsi
	callq	_recordDependencyOn
LBB0_50:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	testq	%rax, %rax
	je	LBB0_56
## %bb.51:
	movq	%r12, -160(%rbp)
	movq	%rax, -136(%rbp)
	movq	_DEPENDENCY_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-136(%rbp), %rdi
	leaq	-160(%rbp), %rsi
	callq	_recordDependencyOn
	jmp	LBB0_56
LBB0_8:
	movq	24(%r15), %rax
	movq	24(%rdx), %rcx
	movq	%rcx, 24(%r15)
	movq	%rax, 24(%rdx)
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_25
LBB0_52:
	testl	%ebx, %ebx
	je	LBB0_56
LBB0_53:
	movq	32(%r15), %rax
	movq	_RELKIND_TOASTVALUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_56
## %bb.54:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rax, 32(%rcx)
	jne	LBB0_56
## %bb.55:
	movq	_AccessExclusiveLock@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_toast_get_valid_index
	movq	%rax, %r15
	movl	(%r14), %esi
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_toast_get_valid_index
	movq	_InvalidTransactionId@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	_InvalidMultiXactId@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	%r15, %rdi
	movq	%rax, %rsi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	movl	-68(%rbp), %r8d                 ## 4-byte Reload
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	%r10
	callq	_swap_relation_files
	addq	$16, %rsp
LBB0_56:
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_heap_freetuple
	movq	%r14, %rdi
	callq	_heap_freetuple
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-88(%rbp), %edi                 ## 4-byte Reload
	callq	_table_close
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_RelationCloseSmgrByOid
	movq	%r12, %rdi
	callq	_RelationCloseSmgrByOid
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RelationRelationId,8,3         ## @RelationRelationId
	.comm	_RowExclusiveLock,4,2           ## @RowExclusiveLock
	.comm	_RELOID,4,2                     ## @RELOID
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cache lookup failed for relation %u"

L_.str.1:                               ## @.str.1
	.asciz	"cannot swap mapped relation \"%s\" with non-mapped relation"

L_.str.2:                               ## @.str.2
	.asciz	"cannot change tablespace of mapped relation \"%s\""

L_.str.3:                               ## @.str.3
	.asciz	"cannot change persistence of mapped relation \"%s\""

L_.str.4:                               ## @.str.4
	.asciz	"cannot swap toast by links for mapped relation \"%s\""

L_.str.5:                               ## @.str.5
	.asciz	"could not find relation mapping for relation \"%s\", OID %u"

	.comm	_RELKIND_INDEX,8,3              ## @RELKIND_INDEX
	.comm	_InvalidOid,4,2                 ## @InvalidOid
L_.str.6:                               ## @.str.6
	.asciz	"cannot swap toast files by content when there's only one"

L_.str.7:                               ## @.str.7
	.asciz	"cannot swap toast files by links for system catalogs"

L_.str.8:                               ## @.str.8
	.asciz	"expected one dependency record for TOAST table, found %ld"

	.comm	_DEPENDENCY_INTERNAL,4,2        ## @DEPENDENCY_INTERNAL
	.comm	_RELKIND_TOASTVALUE,8,3         ## @RELKIND_TOASTVALUE
	.comm	_AccessExclusiveLock,4,2        ## @AccessExclusiveLock
	.comm	_InvalidTransactionId,4,2       ## @InvalidTransactionId
	.comm	_InvalidMultiXactId,4,2         ## @InvalidMultiXactId
	.no_dead_strip	_swap_relation_files
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swap_relation_files
_swap_relation_files:                   ; @swap_relation_files
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	str	x7, [sp, #32]                   ; 8-byte Folded Spill
	str	w6, [sp, #16]                   ; 4-byte Folded Spill
	mov	x24, x5
	str	w4, [sp, #28]                   ; 4-byte Folded Spill
	mov	x26, x3
	str	w2, [sp, #44]                   ; 4-byte Folded Spill
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _RelationRelationId@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RelationRelationId@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
Lloh3:
	adrp	x8, _RowExclusiveLock@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RowExclusiveLock@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_table_open
	mov	x23, x0
Lloh6:
	adrp	x21, _RELOID@GOTPAGE
Lloh7:
	ldr	x21, [x21, _RELOID@GOTPAGEOFF]
	ldr	w22, [x21]
	mov	x0, x20
	bl	_ObjectIdGetDatum
	mov	x1, x0
	mov	x0, x22
	bl	_SearchSysCacheCopy1
	mov	x22, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	str	x20, [sp]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_2:
	stp	w23, w24, [sp, #20]             ; 8-byte Folded Spill
	mov	x0, x22
	bl	_GETSTRUCT
	mov	x27, x0
	ldr	w23, [x21]
	mov	x0, x19
	bl	_ObjectIdGetDatum
	mov	x1, x0
	mov	x0, x23
	bl	_SearchSysCacheCopy1
	mov	x23, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_4
; %bb.3:
Lloh13:
	adrp	x8, _ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_4:
	mov	x0, x23
	bl	_GETSTRUCT
	mov	x25, x0
	ldr	x28, [x27]
	ldr	x24, [x0]
	mov	x0, x28
	bl	_OidIsValid
	cbz	x0, LBB0_8
; %bb.5:
	mov	x0, x24
	bl	_OidIsValid
	cbz	x0, LBB0_8
; %bb.6:
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	ldr	q0, [x25]
	ldr	q1, [x27]
	str	q0, [x27]
	str	q1, [x25]
	ldrb	w8, [x27, #16]
	ldrb	w9, [x25, #16]
	strb	w9, [x27, #16]
	strb	w8, [x25, #16]
	cbnz	w26, LBB0_24
; %bb.7:
	ldr	x8, [x27, #24]
	ldr	x9, [x25, #24]
	str	x9, [x27, #24]
	str	x8, [x25, #24]
	b	LBB0_24
LBB0_8:
	mov	x0, x28
	bl	_OidIsValid
	cbnz	x0, LBB0_10
; %bb.9:
	mov	x0, x24
	bl	_OidIsValid
	cbz	x0, LBB0_11
LBB0_10:
Lloh18:
	adrp	x8, _ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w24, [x8]
	ldr	w0, [x27, #76]
	bl	_NameStr
	str	x0, [sp]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x24
	bl	_elog
LBB0_11:
	ldr	x8, [x27, #8]
	ldr	x9, [x25, #8]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.12:
Lloh23:
	adrp	x8, _ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w24, [x8]
	ldr	w0, [x27, #76]
	bl	_NameStr
	str	x0, [sp]
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x24
	bl	_elog
LBB0_13:
	ldrb	w8, [x27, #16]
	ldrb	w9, [x25, #16]
	cmp	w8, w9
	b.eq	LBB0_15
; %bb.14:
Lloh28:
	adrp	x8, _ERROR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh30:
	ldr	w24, [x8]
	ldr	w0, [x27, #76]
	bl	_NameStr
	str	x0, [sp]
Lloh31:
	adrp	x1, l_.str.3@PAGE
Lloh32:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x24
	bl	_elog
LBB0_15:
	cbnz	w26, LBB0_19
; %bb.16:
	ldr	x8, [x27, #24]
	cbnz	x8, LBB0_18
; %bb.17:
	ldr	x8, [x25, #24]
	cbz	x8, LBB0_19
LBB0_18:
Lloh33:
	adrp	x8, _ERROR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh35:
	ldr	w24, [x8]
	ldr	w0, [x27, #76]
	bl	_NameStr
	str	x0, [sp]
Lloh36:
	adrp	x1, l_.str.4@PAGE
Lloh37:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x24
	bl	_elog
LBB0_19:
	ldr	w1, [x27, #72]
	mov	x0, x20
	bl	_RelationMapOidToFilenode
	mov	x24, x0
	bl	_OidIsValid
	cbnz	x0, LBB0_21
; %bb.20:
Lloh38:
	adrp	x8, _ERROR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh40:
	ldr	w28, [x8]
	ldr	w0, [x27, #76]
	bl	_NameStr
	stp	x0, x20, [sp]
Lloh41:
	adrp	x1, l_.str.5@PAGE
Lloh42:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x28
	bl	_elog
LBB0_21:
	ldr	w1, [x25, #72]
	mov	x0, x19
	bl	_RelationMapOidToFilenode
	mov	x28, x0
	bl	_OidIsValid
	cbnz	x0, LBB0_23
; %bb.22:
Lloh43:
	adrp	x8, _ERROR@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh45:
	ldr	w21, [x8]
	ldr	w0, [x25, #76]
	bl	_NameStr
	stp	x0, x19, [sp]
Lloh46:
	adrp	x1, l_.str.5@PAGE
Lloh47:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_elog
LBB0_23:
	ldr	w2, [x27, #72]
	mov	x0, x20
	mov	x1, x28
	mov	w3, #0
	bl	_RelationMapUpdateMap
	ldr	w2, [x25, #72]
	mov	x0, x19
	mov	x1, x24
	mov	w3, #0
	bl	_RelationMapUpdateMap
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	str	x19, [x8], #8
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
LBB0_24:
	ldp	w24, w21, [sp, #20]             ; 8-byte Folded Reload
	ldr	x8, [x27, #32]
Lloh48:
	adrp	x9, _RELKIND_INDEX@GOTPAGE
Lloh49:
	ldr	x9, [x9, _RELKIND_INDEX@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_29
; %bb.25:
	mov	x0, x21
	bl	_TransactionIdIsValid
	cbz	w0, LBB0_27
; %bb.26:
	mov	x0, x21
	bl	_TransactionIdIsNormal
	cmp	x0, #0
	cset	w0, ne
	b	LBB0_28
LBB0_27:
	mov	w0, #1
LBB0_28:
	bl	_Assert
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	stp	w8, w21, [x27, #64]
LBB0_29:
	ldr	x8, [x27, #56]
	ldr	x9, [x25, #56]
	str	x9, [x27, #56]
	str	x8, [x25, #56]
	ldr	w8, [x27, #48]
	ldr	w9, [x25, #48]
	str	w9, [x27, #48]
	str	w8, [x25, #48]
	ldr	x8, [x27, #40]
	ldr	x9, [x25, #40]
	str	x9, [x27, #40]
	str	x8, [x25, #40]
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_31
; %bb.30:
	mov	x0, x22
	bl	_CacheInvalidateRelcacheByTuple
	mov	x0, x23
	bl	_CacheInvalidateRelcacheByTuple
	b	LBB0_32
LBB0_31:
	mov	x0, x24
	bl	_CatalogOpenIndexes
	mov	x21, x0
	mov	x0, x24
	mov	x1, x22
	mov	x2, x22
	mov	x3, x21
	bl	_CatalogTupleUpdateWithInfo
	mov	x0, x24
	mov	x1, x23
	mov	x2, x23
	mov	x3, x21
	bl	_CatalogTupleUpdateWithInfo
	mov	x0, x21
	bl	_CatalogCloseIndexes
LBB0_32:
Lloh51:
	adrp	x28, _RelationRelationId@GOTPAGE
Lloh52:
	ldr	x28, [x28, _RelationRelationId@GOTPAGEOFF]
	ldr	x0, [x28]
Lloh53:
	adrp	x21, _InvalidOid@GOTPAGE
Lloh54:
	ldr	x21, [x21, _InvalidOid@GOTPAGEOFF]
	ldr	w3, [x21]
	mov	x1, x20
	mov	w2, #0
	ldr	w4, [sp, #28]                   ; 4-byte Folded Reload
	bl	_InvokeObjectPostAlterHookArg
	ldr	x0, [x28]
	ldr	w3, [x21]
	mov	x1, x19
	mov	w2, #0
	mov	w4, #1
	bl	_InvokeObjectPostAlterHookArg
	ldr	x0, [x27, #24]
	cbz	x0, LBB0_36
; %bb.33:
	cbz	w26, LBB0_39
; %bb.34:
	ldr	x1, [x25, #24]
	cbz	x1, LBB0_38
; %bb.35:
	ldr	w2, [sp, #44]                   ; 4-byte Folded Reload
	mov	x3, x26
	ldp	w5, w4, [sp, #24]               ; 8-byte Folded Reload
	ldr	w6, [sp, #16]                   ; 4-byte Folded Reload
	ldr	x7, [sp, #32]                   ; 8-byte Folded Reload
	bl	_swap_relation_files
	b	LBB0_52
LBB0_36:
	ldr	x8, [x25, #24]
	cbz	x8, LBB0_51
; %bb.37:
	cbz	w26, LBB0_39
LBB0_38:
Lloh55:
	adrp	x8, _ERROR@GOTPAGE
Lloh56:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh57:
	ldr	w0, [x8]
Lloh58:
	adrp	x1, l_.str.6@PAGE
Lloh59:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_elog
	b	LBB0_52
LBB0_39:
	mov	x0, x20
	mov	x1, x27
	bl	_IsSystemClass
	cbz	x0, LBB0_41
; %bb.40:
Lloh60:
	adrp	x8, _ERROR@GOTPAGE
Lloh61:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh62:
	ldr	w0, [x8]
Lloh63:
	adrp	x1, l_.str.7@PAGE
Lloh64:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_elog
LBB0_41:
	ldr	x1, [x27, #24]
	cbz	x1, LBB0_44
; %bb.42:
Lloh65:
	adrp	x8, _RelationRelationId@GOTPAGE
Lloh66:
	ldr	x8, [x8, _RelationRelationId@GOTPAGEOFF]
Lloh67:
	ldr	x0, [x8]
	mov	w2, #0
	bl	_deleteDependencyRecordsFor
	cmp	x0, #1
	b.eq	LBB0_44
; %bb.43:
Lloh68:
	adrp	x8, _ERROR@GOTPAGE
Lloh69:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh70:
	ldr	w8, [x8]
	str	x0, [sp]
Lloh71:
	adrp	x1, l_.str.8@PAGE
Lloh72:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x8
	bl	_elog
LBB0_44:
	ldr	x1, [x25, #24]
	cbz	x1, LBB0_47
; %bb.45:
Lloh73:
	adrp	x8, _RelationRelationId@GOTPAGE
Lloh74:
	ldr	x8, [x8, _RelationRelationId@GOTPAGEOFF]
Lloh75:
	ldr	x0, [x8]
	mov	w2, #0
	bl	_deleteDependencyRecordsFor
	cmp	x0, #1
	b.eq	LBB0_47
; %bb.46:
Lloh76:
	adrp	x8, _ERROR@GOTPAGE
Lloh77:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh78:
	ldr	w8, [x8]
	str	x0, [sp]
Lloh79:
	adrp	x1, l_.str.8@PAGE
Lloh80:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x8
	bl	_elog
LBB0_47:
Lloh81:
	adrp	x8, _RelationRelationId@GOTPAGE
Lloh82:
	ldr	x8, [x8, _RelationRelationId@GOTPAGEOFF]
Lloh83:
	ldr	x8, [x8]
	stp	xzr, x8, [sp, #80]
	stp	xzr, x8, [sp, #56]
	ldr	x8, [x27, #24]
Lloh84:
	adrp	x21, _DEPENDENCY_INTERNAL@GOTPAGE
Lloh85:
	ldr	x21, [x21, _DEPENDENCY_INTERNAL@GOTPAGEOFF]
	cbz	x8, LBB0_49
; %bb.48:
	str	x20, [sp, #72]
	str	x8, [sp, #48]
	ldr	w2, [x21]
	add	x0, sp, #48
	add	x1, sp, #72
	bl	_recordDependencyOn
LBB0_49:
	ldr	x8, [x25, #24]
	cbz	x8, LBB0_55
; %bb.50:
	str	x19, [sp, #72]
	str	x8, [sp, #48]
	ldr	w2, [x21]
	add	x0, sp, #48
	add	x1, sp, #72
	bl	_recordDependencyOn
	b	LBB0_55
LBB0_51:
	cbz	w26, LBB0_55
LBB0_52:
	ldr	x8, [x27, #32]
Lloh86:
	adrp	x9, _RELKIND_TOASTVALUE@GOTPAGE
Lloh87:
	ldr	x9, [x9, _RELKIND_TOASTVALUE@GOTPAGEOFF]
Lloh88:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_55
; %bb.53:
	ldr	x9, [x25, #32]
	cmp	x9, x8
	b.ne	LBB0_55
; %bb.54:
Lloh89:
	adrp	x24, _AccessExclusiveLock@GOTPAGE
Lloh90:
	ldr	x24, [x24, _AccessExclusiveLock@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_toast_get_valid_index
	mov	x21, x0
	ldr	w1, [x24]
	ldr	w24, [sp, #20]                  ; 4-byte Folded Reload
	mov	x0, x19
	bl	_toast_get_valid_index
	mov	x1, x0
Lloh91:
	adrp	x8, _InvalidTransactionId@GOTPAGE
Lloh92:
	ldr	x8, [x8, _InvalidTransactionId@GOTPAGEOFF]
Lloh93:
	ldr	w5, [x8]
Lloh94:
	adrp	x8, _InvalidMultiXactId@GOTPAGE
Lloh95:
	ldr	x8, [x8, _InvalidMultiXactId@GOTPAGEOFF]
Lloh96:
	ldr	w6, [x8]
	mov	x0, x21
	ldr	w2, [sp, #44]                   ; 4-byte Folded Reload
	mov	x3, x26
	ldr	w4, [sp, #28]                   ; 4-byte Folded Reload
	ldr	x7, [sp, #32]                   ; 8-byte Folded Reload
	bl	_swap_relation_files
LBB0_55:
	mov	x0, x22
	bl	_heap_freetuple
	mov	x0, x23
	bl	_heap_freetuple
Lloh97:
	adrp	x8, _RowExclusiveLock@GOTPAGE
Lloh98:
	ldr	x8, [x8, _RowExclusiveLock@GOTPAGEOFF]
Lloh99:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_table_close
	mov	x0, x20
	bl	_RelationCloseSmgrByOid
	mov	x0, x19
	bl	_RelationCloseSmgrByOid
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGot	Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGot	Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.cfi_endproc
                                        ; -- End function
	.comm	_RelationRelationId,8,3         ; @RelationRelationId
	.comm	_RowExclusiveLock,4,2           ; @RowExclusiveLock
	.comm	_RELOID,4,2                     ; @RELOID
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cache lookup failed for relation %u"

l_.str.1:                               ; @.str.1
	.asciz	"cannot swap mapped relation \"%s\" with non-mapped relation"

l_.str.2:                               ; @.str.2
	.asciz	"cannot change tablespace of mapped relation \"%s\""

l_.str.3:                               ; @.str.3
	.asciz	"cannot change persistence of mapped relation \"%s\""

l_.str.4:                               ; @.str.4
	.asciz	"cannot swap toast by links for mapped relation \"%s\""

l_.str.5:                               ; @.str.5
	.asciz	"could not find relation mapping for relation \"%s\", OID %u"

	.comm	_RELKIND_INDEX,8,3              ; @RELKIND_INDEX
	.comm	_InvalidOid,4,2                 ; @InvalidOid
l_.str.6:                               ; @.str.6
	.asciz	"cannot swap toast files by content when there's only one"

l_.str.7:                               ; @.str.7
	.asciz	"cannot swap toast files by links for system catalogs"

l_.str.8:                               ; @.str.8
	.asciz	"expected one dependency record for TOAST table, found %ld"

	.comm	_DEPENDENCY_INTERNAL,4,2        ; @DEPENDENCY_INTERNAL
	.comm	_RELKIND_TOASTVALUE,8,3         ; @RELKIND_TOASTVALUE
	.comm	_AccessExclusiveLock,4,2        ; @AccessExclusiveLock
	.comm	_InvalidTransactionId,4,2       ; @InvalidTransactionId
	.comm	_InvalidMultiXactId,4,2         ; @InvalidMultiXactId
	.no_dead_strip	_swap_relation_files
.subsections_via_symbols
