	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AlterTableSpaceOptions         ## -- Begin function AlterTableSpaceOptions
	.p2align	4, 0x90
_AlterTableSpaceOptions:                ## @AlterTableSpaceOptions
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	%rsp, -112(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_Natts_pg_tablespace@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leaq	(,%rax,4), %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movq	_TableSpaceRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movl	%eax, %r15d
	movq	_Anum_pg_tablespace_spcname@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_BTEqualStrategyNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_F_NAMEEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	8(%r14), %edi
	callq	_CStringGetDatum
	leaq	-68(%rbp), %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	callq	_ScanKeyInit
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	movl	%r15d, %edi
	movl	$1, %esi
	leaq	-68(%rbp), %rdx
	callq	_table_beginscan_catalog
	movl	%eax, %edi
	movq	_ForwardScanDirection@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%edi, -56(%rbp)                 ## 4-byte Spill
	callq	_heap_getnext
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_UNDEFINED_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	8(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movq	%r12, %rdi
	callq	_GETSTRUCT
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_GetUserId
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_pg_tablespace_ownercheck
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_ACLCHECK_NOT_OWNER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OBJECT_TABLESPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %edx
	callq	_aclcheck_error
LBB0_4:
	movq	_Anum_pg_tablespace_spcoptions@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edi
	callq	_RelationGetDescr
	leaq	-64(%rbp), %rcx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_heap_getattr
	xorl	%ecx, %ecx
	cmpl	$0, -64(%rbp)
	cmovneq	%rcx, %rax
	movl	(%r14), %r9d
	movl	4(%r14), %esi
	movq	%rax, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_transformRelOptions
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	$1, %esi
	callq	_tablespace_reloptions
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	shll	$2, %r14d
	movq	-104(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_memset
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_memset
	movq	_Anum_pg_tablespace_spcoptions@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.5:
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%rbx, -8(%r14,%rax,8)
	jmp	LBB0_7
LBB0_6:
	movl	$1, -4(%r15,%rax,4)
	movq	-80(%rbp), %r14                 ## 8-byte Reload
LBB0_7:
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movl	$1, -4(%rbx,%rax,4)
	movl	%r13d, %edi
	callq	_RelationGetDescr
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	movq	%r15, %rcx
	movq	%rbx, %r8
	callq	_heap_modify_tuple
	movq	%rax, %rbx
	movl	%r13d, %edi
	movq	%rax, %rsi
	movq	%rax, %rdx
	callq	_CatalogTupleUpdate
	movq	_TableSpaceRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_InvokeObjectPostAlterHook
	movq	%rbx, %rdi
	callq	_heap_freetuple
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_table_endscan
	movq	_NoLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_table_close
	movq	-112(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_Natts_pg_tablespace,4,2        ## @Natts_pg_tablespace
	.comm	_TableSpaceRelationId,4,2       ## @TableSpaceRelationId
	.comm	_RowExclusiveLock,4,2           ## @RowExclusiveLock
	.comm	_Anum_pg_tablespace_spcname,4,2 ## @Anum_pg_tablespace_spcname
	.comm	_BTEqualStrategyNumber,4,2      ## @BTEqualStrategyNumber
	.comm	_F_NAMEEQ,4,2                   ## @F_NAMEEQ
	.comm	_ForwardScanDirection,4,2       ## @ForwardScanDirection
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_UNDEFINED_OBJECT,4,2   ## @ERRCODE_UNDEFINED_OBJECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tablespace \"%s\" does not exist"

	.comm	_ACLCHECK_NOT_OWNER,4,2         ## @ACLCHECK_NOT_OWNER
	.comm	_OBJECT_TABLESPACE,4,2          ## @OBJECT_TABLESPACE
	.comm	_Anum_pg_tablespace_spcoptions,4,2 ## @Anum_pg_tablespace_spcoptions
	.comm	_NoLock,4,2                     ## @NoLock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AlterTableSpaceOptions         ; -- Begin function AlterTableSpaceOptions
	.p2align	2
_AlterTableSpaceOptions:                ; @AlterTableSpaceOptions
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x24, x0
	mov	x8, sp
	stur	x8, [x29, #-104]                ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x12, _Natts_pg_tablespace@GOTPAGE
Lloh4:
	ldr	x12, [x12, _Natts_pg_tablespace@GOTPAGEOFF]
	ldr	w8, [x12]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x19, x9, x8
	mov	sp, x19
	ldr	w28, [x12]
	lsl	x8, x28, #2
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x7fffffff0
	sub	x21, x9, x12
	mov	sp, x21
	mov	x9, x8
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x22, x8, x12
	mov	sp, x22
Lloh11:
	adrp	x8, _TableSpaceRelationId@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TableSpaceRelationId@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _RowExclusiveLock@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RowExclusiveLock@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_table_open
	mov	x20, x0
Lloh17:
	adrp	x8, _Anum_pg_tablespace_spcname@GOTPAGE
Lloh18:
	ldr	x8, [x8, _Anum_pg_tablespace_spcname@GOTPAGEOFF]
Lloh19:
	adrp	x9, _BTEqualStrategyNumber@GOTPAGE
Lloh20:
	ldr	x9, [x9, _BTEqualStrategyNumber@GOTPAGEOFF]
Lloh21:
	ldr	w23, [x8]
Lloh22:
	ldr	w25, [x9]
Lloh23:
	adrp	x8, _F_NAMEEQ@GOTPAGE
Lloh24:
	ldr	x8, [x8, _F_NAMEEQ@GOTPAGEOFF]
Lloh25:
	ldr	w26, [x8]
	ldr	w0, [x24, #8]
	bl	_CStringGetDatum
	mov	x4, x0
	sub	x0, x29, #92
	mov	x1, x23
	mov	x2, x25
	mov	x3, x26
	bl	_ScanKeyInit
	sub	x2, x29, #92
	mov	x0, x20
	mov	w1, #1
	bl	_table_beginscan_catalog
Lloh26:
	adrp	x8, _ForwardScanDirection@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ForwardScanDirection@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	stur	w0, [x29, #-108]                ; 4-byte Folded Spill
	bl	_heap_getnext
	mov	x26, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_2
; %bb.1:
Lloh29:
	adrp	x8, _ERROR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh31:
	ldr	w25, [x8]
Lloh32:
	adrp	x8, _ERRCODE_UNDEFINED_OBJECT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ERRCODE_UNDEFINED_OBJECT@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w1, [x24, #8]
Lloh35:
	adrp	x0, l_.str@PAGE
Lloh36:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x25
	bl	_ereport
LBB0_2:
	mov	x0, x26
	bl	_GETSTRUCT
	ldr	w25, [x0]
	bl	_GetUserId
	mov	x1, x0
	mov	x0, x25
	bl	_pg_tablespace_ownercheck
	cbnz	w0, LBB0_4
; %bb.3:
Lloh37:
	adrp	x8, _ACLCHECK_NOT_OWNER@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ACLCHECK_NOT_OWNER@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
Lloh40:
	adrp	x8, _OBJECT_TABLESPACE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _OBJECT_TABLESPACE@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	ldr	w2, [x24, #8]
	bl	_aclcheck_error
LBB0_4:
Lloh43:
	adrp	x23, _Anum_pg_tablespace_spcoptions@GOTPAGE
Lloh44:
	ldr	x23, [x23, _Anum_pg_tablespace_spcoptions@GOTPAGEOFF]
	ldr	w27, [x23]
	mov	x0, x20
	bl	_RelationGetDescr
	mov	x2, x0
	sub	x3, x29, #96
	mov	x0, x26
	mov	x1, x27
	bl	_heap_getattr
	ldur	w8, [x29, #-96]
	cmp	w8, #0
	csel	x0, x0, xzr, eq
	ldp	w5, w1, [x24]
	mov	x2, #0
	mov	x3, #0
	mov	w4, #0
	bl	_transformRelOptions
	mov	x24, x0
	mov	w1, #1
	bl	_tablespace_reloptions
	lsl	w27, w28, #2
	mov	x0, x21
	mov	w1, #0
	mov	x2, x27
	bl	_memset
	mov	x0, x22
	mov	w1, #0
	mov	x2, x27
	bl	_memset
	ldrsw	x8, [x23]
	sub	x8, x8, #1
	cbz	x24, LBB0_6
; %bb.5:
	str	x24, [x19, x8, lsl #3]
	b	LBB0_7
LBB0_6:
	mov	w9, #1
	str	w9, [x21, x8, lsl #2]
LBB0_7:
	mov	w9, #1
	str	w9, [x22, x8, lsl #2]
	mov	x0, x20
	bl	_RelationGetDescr
	mov	x1, x0
	mov	x0, x26
	mov	x2, x19
	mov	x3, x21
	mov	x4, x22
	bl	_heap_modify_tuple
	mov	x19, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x19
	bl	_CatalogTupleUpdate
Lloh45:
	adrp	x8, _TableSpaceRelationId@GOTPAGE
Lloh46:
	ldr	x8, [x8, _TableSpaceRelationId@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
	mov	x1, x25
	mov	w2, #0
	bl	_InvokeObjectPostAlterHook
	mov	x0, x19
	bl	_heap_freetuple
	ldur	w0, [x29, #-108]                ; 4-byte Folded Reload
	bl	_table_endscan
Lloh48:
	adrp	x8, _NoLock@GOTPAGE
Lloh49:
	ldr	x8, [x8, _NoLock@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_table_close
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	mov	sp, x8
	ldur	x8, [x29, #-88]
Lloh51:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh52:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh53:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x25
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_Natts_pg_tablespace,4,2        ; @Natts_pg_tablespace
	.comm	_TableSpaceRelationId,4,2       ; @TableSpaceRelationId
	.comm	_RowExclusiveLock,4,2           ; @RowExclusiveLock
	.comm	_Anum_pg_tablespace_spcname,4,2 ; @Anum_pg_tablespace_spcname
	.comm	_BTEqualStrategyNumber,4,2      ; @BTEqualStrategyNumber
	.comm	_F_NAMEEQ,4,2                   ; @F_NAMEEQ
	.comm	_ForwardScanDirection,4,2       ; @ForwardScanDirection
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_UNDEFINED_OBJECT,4,2   ; @ERRCODE_UNDEFINED_OBJECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tablespace \"%s\" does not exist"

	.comm	_ACLCHECK_NOT_OWNER,4,2         ; @ACLCHECK_NOT_OWNER
	.comm	_OBJECT_TABLESPACE,4,2          ; @OBJECT_TABLESPACE
	.comm	_Anum_pg_tablespace_spcoptions,4,2 ; @Anum_pg_tablespace_spcoptions
	.comm	_NoLock,4,2                     ; @NoLock
.subsections_via_symbols
