	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function perform_relmap_update
_perform_relmap_update:                 ## @perform_relmap_update
	.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
	movq	%rsi, %r14
	movl	%edi, %r13d
	movq	_RelationMappingLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movl	%r13d, %edi
	callq	_load_relmap_file
	testl	%r13d, %r13d
	movq	_shared_map@GOTPCREL(%rip), %rsi
	cmoveq	_local_map@GOTPCREL(%rip), %rsi
	movq	_InvalidOid@GOTPCREL(%rip), %rbx
	cmoveq	_MyDatabaseId@GOTPCREL(%rip), %rbx
	movq	_GLOBALTABLESPACE_OID@GOTPCREL(%rip), %r12
	cmoveq	_MyDatabaseTableSpace@GOTPCREL(%rip), %r12
	leaq	-44(%rbp), %r15
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	_allowSystemTableMods@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_merge_map_updates
	movl	(%rbx), %r9d
	movl	(%r12), %eax
	movq	_DatabasePath@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%r13d, %edi
	movq	%r15, %rsi
	movl	$1, %edx
	movl	$1, %ecx
	movl	$1, %r8d
	pushq	%rbx
	pushq	%rax
	callq	_write_relmap_file
	addq	$16, %rsp
	movq	_RelationMappingLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LWLockRelease
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RelationMappingLock,4,2        ## @RelationMappingLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_shared_map,4,2                 ## @shared_map
	.comm	_local_map,4,2                  ## @local_map
	.comm	_allowSystemTableMods,4,2       ## @allowSystemTableMods
	.comm	_InvalidOid,4,2                 ## @InvalidOid
	.comm	_MyDatabaseId,4,2               ## @MyDatabaseId
	.comm	_GLOBALTABLESPACE_OID,4,2       ## @GLOBALTABLESPACE_OID
	.comm	_MyDatabaseTableSpace,4,2       ## @MyDatabaseTableSpace
	.comm	_DatabasePath,4,2               ## @DatabasePath
	.no_dead_strip	_perform_relmap_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function perform_relmap_update
_perform_relmap_update:                 ; @perform_relmap_update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _RelationMappingLock@GOTPAGE
Lloh1:
	ldr	x21, [x21, _RelationMappingLock@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_LWLockAcquire
	mov	x0, x20
	bl	_load_relmap_file
Lloh5:
	adrp	x8, _shared_map@GOTPAGE
Lloh6:
	ldr	x8, [x8, _shared_map@GOTPAGEOFF]
Lloh7:
	adrp	x9, _local_map@GOTPAGE
Lloh8:
	ldr	x9, [x9, _local_map@GOTPAGEOFF]
	cmp	w20, #0
	csel	x1, x9, x8, eq
Lloh9:
	adrp	x8, _InvalidOid@GOTPAGE
Lloh10:
	ldr	x8, [x8, _InvalidOid@GOTPAGEOFF]
Lloh11:
	adrp	x9, _MyDatabaseId@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MyDatabaseId@GOTPAGEOFF]
	csel	x22, x9, x8, eq
Lloh13:
	adrp	x8, _GLOBALTABLESPACE_OID@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GLOBALTABLESPACE_OID@GOTPAGEOFF]
Lloh15:
	adrp	x9, _MyDatabaseTableSpace@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MyDatabaseTableSpace@GOTPAGEOFF]
	csel	x23, x9, x8, eq
	add	x0, sp, #12
	mov	w2, #4
	bl	_memcpy
Lloh17:
	adrp	x8, _allowSystemTableMods@GOTPAGE
Lloh18:
	ldr	x8, [x8, _allowSystemTableMods@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	add	x0, sp, #12
	mov	x1, x19
	bl	_merge_map_updates
	ldr	w5, [x22]
	ldr	w6, [x23]
Lloh20:
	adrp	x8, _DatabasePath@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DatabasePath@GOTPAGEOFF]
Lloh22:
	ldr	w7, [x8]
	add	x1, sp, #12
	mov	x0, x20
	mov	w2, #1
	mov	w3, #1
	mov	w4, #1
	bl	_write_relmap_file
	ldr	w0, [x21]
	bl	_LWLockRelease
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_RelationMappingLock,4,2        ; @RelationMappingLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_shared_map,4,2                 ; @shared_map
	.comm	_local_map,4,2                  ; @local_map
	.comm	_allowSystemTableMods,4,2       ; @allowSystemTableMods
	.comm	_InvalidOid,4,2                 ; @InvalidOid
	.comm	_MyDatabaseId,4,2               ; @MyDatabaseId
	.comm	_GLOBALTABLESPACE_OID,4,2       ; @GLOBALTABLESPACE_OID
	.comm	_MyDatabaseTableSpace,4,2       ; @MyDatabaseTableSpace
	.comm	_DatabasePath,4,2               ; @DatabasePath
	.no_dead_strip	_perform_relmap_update
.subsections_via_symbols
