	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AlterForeignServer             ## -- Begin function AlterForeignServer
	.p2align	4, 0x90
_AlterForeignServer:                    ## @AlterForeignServer
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_Natts_pg_foreign_server@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	(,%r12,4), %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%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	_ForeignServerRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	_FOREIGNSERVERNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	24(%r15), %edi
	callq	_CStringGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SearchSysCacheCopy1
	movq	%rax, %r14
	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	24(%r15), %esi
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movq	%r14, %rdi
	callq	_GETSTRUCT
	movq	%rax, %r13
	movl	4(%rax), %ebx
	xorl	%eax, %eax
	callq	_GetUserId
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_pg_foreign_server_ownercheck
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_ACLCHECK_NOT_OWNER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OBJECT_FOREIGN_SERVER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%r15), %edx
	callq	_aclcheck_error
LBB0_4:
	shll	$2, %r12d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_memset
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_memset
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_memset
	cmpq	$0, 16(%r15)
	je	LBB0_9
## %bb.5:
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_CStringGetTextDatum
	movq	_Anum_pg_foreign_server_srvversion@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, -4(%rdx,%rcx,4)
	jmp	LBB0_8
LBB0_7:
	movq	_Anum_pg_foreign_server_srvversion@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, -4(%rax,%rcx,4)
LBB0_8:
	decq	%rcx
	movl	$1, (%rbx,%rcx,4)
LBB0_9:
	cmpq	$0, (%r15)
	je	LBB0_13
## %bb.10:
	movl	(%r13), %edi
	callq	_GetForeignDataWrapper
	movq	%rax, %r12
	movq	_FOREIGNSERVEROID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_Anum_pg_foreign_server_srvoptions@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	-76(%rbp), %rcx
	movq	%r14, %rsi
	callq	_SysCacheGetAttr
	cmpl	$0, -76(%rbp)
	je	LBB0_12
## %bb.11:
	xorl	%edi, %edi
	callq	_PointerGetDatum
LBB0_12:
	movq	_ForeignServerRelationId@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	(%r15), %rdx
	movl	(%r12), %ecx
	movl	%eax, %esi
	callq	_transformGenericOptions
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_DatumGetPointer
	movl	%eax, %edi
	callq	_PointerIsValid
	testq	%rax, %rax
	movslq	(%r13), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmoveq	-56(%rbp), %rcx                 ## 8-byte Folded Reload
	movl	$1, %edx
	cmovnel	%ebx, %edx
	movl	%edx, -4(%rcx,%rax,4)
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movl	$1, -4(%rbx,%rax,4)
LBB0_13:
	movl	-72(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	callq	_RelationGetDescr
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, %r8
	callq	_heap_modify_tuple
	movq	%rax, %r12
	movl	%r15d, %edi
	movq	%rax, %rsi
	movq	%rax, %rdx
	callq	_CatalogTupleUpdate
	movq	_ForeignServerRelationId@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_InvokeObjectPostAlterHook
	movl	(%r14), %esi
	movl	%ebx, %edx
	callq	_ObjectAddressSet
	movq	%r12, %rdi
	callq	_heap_freetuple
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_table_close
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_Natts_pg_foreign_server,4,2    ## @Natts_pg_foreign_server
	.comm	_ForeignServerRelationId,4,2    ## @ForeignServerRelationId
	.comm	_RowExclusiveLock,4,2           ## @RowExclusiveLock
	.comm	_FOREIGNSERVERNAME,4,2          ## @FOREIGNSERVERNAME
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_UNDEFINED_OBJECT,4,2   ## @ERRCODE_UNDEFINED_OBJECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"server \"%s\" does not exist"

	.comm	_ACLCHECK_NOT_OWNER,4,2         ## @ACLCHECK_NOT_OWNER
	.comm	_OBJECT_FOREIGN_SERVER,4,2      ## @OBJECT_FOREIGN_SERVER
	.comm	_Anum_pg_foreign_server_srvversion,4,2 ## @Anum_pg_foreign_server_srvversion
	.comm	_FOREIGNSERVEROID,4,2           ## @FOREIGNSERVEROID
	.comm	_Anum_pg_foreign_server_srvoptions,4,2 ## @Anum_pg_foreign_server_srvoptions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AlterForeignServer             ; -- Begin function AlterForeignServer
	.p2align	2
_AlterForeignServer:                    ; @AlterForeignServer
	.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, #16
	mov	x23, x0
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	x8, _Natts_pg_foreign_server@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Natts_pg_foreign_server@GOTPAGEOFF]
Lloh5:
	ldr	w27, [x8]
	lsl	x8, x27, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x7fffffff0
	sub	x20, x9, x12
	mov	sp, x20
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x21, x9, x12
	mov	sp, x21
	mov	x9, x8
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x22, x8, x12
	mov	sp, x22
Lloh12:
	adrp	x28, _ForeignServerRelationId@GOTPAGE
Lloh13:
	ldr	x28, [x28, _ForeignServerRelationId@GOTPAGEOFF]
	ldr	w0, [x28]
Lloh14:
	adrp	x8, _RowExclusiveLock@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RowExclusiveLock@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_table_open
	mov	x19, x0
Lloh17:
	adrp	x8, _FOREIGNSERVERNAME@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FOREIGNSERVERNAME@GOTPAGEOFF]
Lloh19:
	ldr	w24, [x8]
	ldr	w0, [x23, #24]
	bl	_CStringGetDatum
	mov	x1, x0
	mov	x0, x24
	bl	_SearchSysCacheCopy1
	mov	x24, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_2
; %bb.1:
Lloh20:
	adrp	x8, _ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w25, [x8]
Lloh23:
	adrp	x8, _ERRCODE_UNDEFINED_OBJECT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERRCODE_UNDEFINED_OBJECT@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w1, [x23, #24]
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x25
	bl	_ereport
LBB0_2:
	mov	x0, x24
	bl	_GETSTRUCT
	mov	x26, x0
	ldr	w25, [x0, #4]
	bl	_GetUserId
	mov	x1, x0
	mov	x0, x25
	bl	_pg_foreign_server_ownercheck
	cbnz	w0, LBB0_4
; %bb.3:
Lloh28:
	adrp	x8, _ACLCHECK_NOT_OWNER@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ACLCHECK_NOT_OWNER@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
Lloh31:
	adrp	x8, _OBJECT_FOREIGN_SERVER@GOTPAGE
Lloh32:
	ldr	x8, [x8, _OBJECT_FOREIGN_SERVER@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	ldr	w2, [x23, #24]
	bl	_aclcheck_error
LBB0_4:
	lsl	w27, w27, #2
	mov	x0, x20
	mov	w1, #0
	mov	x2, x27
	bl	_memset
	mov	x0, x21
	mov	w1, #0
	mov	x2, x27
	bl	_memset
	mov	x0, x22
	mov	w1, #0
	mov	x2, x27
	bl	_memset
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_9
; %bb.5:
	ldr	x0, [x23, #8]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_CStringGetTextDatum
Lloh34:
	adrp	x8, _Anum_pg_foreign_server_srvversion@GOTPAGE
Lloh35:
	ldr	x8, [x8, _Anum_pg_foreign_server_srvversion@GOTPAGEOFF]
Lloh36:
	ldrsw	x8, [x8]
	sub	x8, x8, #1
	str	w0, [x20, x8, lsl #2]
	b	LBB0_8
LBB0_7:
Lloh37:
	adrp	x8, _Anum_pg_foreign_server_srvversion@GOTPAGE
Lloh38:
	ldr	x8, [x8, _Anum_pg_foreign_server_srvversion@GOTPAGEOFF]
Lloh39:
	ldrsw	x8, [x8]
	sub	x8, x8, #1
	mov	w9, #1
	str	w9, [x21, x8, lsl #2]
LBB0_8:
	mov	w9, #1
	str	w9, [x22, x8, lsl #2]
LBB0_9:
	ldr	x8, [x23]
	cbz	x8, LBB0_13
; %bb.10:
	ldr	w0, [x26]
	bl	_GetForeignDataWrapper
	mov	x26, x0
Lloh40:
	adrp	x8, _FOREIGNSERVEROID@GOTPAGE
Lloh41:
	ldr	x8, [x8, _FOREIGNSERVEROID@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
Lloh43:
	adrp	x27, _Anum_pg_foreign_server_srvoptions@GOTPAGE
Lloh44:
	ldr	x27, [x27, _Anum_pg_foreign_server_srvoptions@GOTPAGEOFF]
	ldr	w2, [x27]
	sub	x3, x29, #92
	mov	x1, x24
	bl	_SysCacheGetAttr
	ldur	w8, [x29, #-92]
	cbz	w8, LBB0_12
; %bb.11:
	mov	x0, #0
	bl	_PointerGetDatum
LBB0_12:
	mov	x1, x0
	ldr	w0, [x28]
	ldr	x2, [x23]
	ldr	w3, [x26]
	bl	_transformGenericOptions
	mov	x23, x0
	bl	_DatumGetPointer
	bl	_PointerIsValid
	ldrsw	x8, [x27]
	lsl	x8, x8, #2
	cmp	x0, #0
	csel	x9, x21, x20, eq
	csinc	w10, w23, wzr, ne
	sub	x8, x8, #4
	str	w10, [x9, x8]
	mov	w9, #1
	str	w9, [x22, x8]
LBB0_13:
	mov	x0, x19
	bl	_RelationGetDescr
	mov	x1, x0
	mov	x0, x24
	mov	x2, x20
	mov	x3, x21
	mov	x4, x22
	bl	_heap_modify_tuple
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x20
	bl	_CatalogTupleUpdate
	ldr	w0, [x28]
	mov	x1, x25
	mov	w2, #0
	bl	_InvokeObjectPostAlterHook
	ldr	w1, [x28]
	mov	x2, x25
	bl	_ObjectAddressSet
	mov	x0, x20
	bl	_heap_freetuple
Lloh45:
	adrp	x8, _RowExclusiveLock@GOTPAGE
Lloh46:
	ldr	x8, [x8, _RowExclusiveLock@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_table_close
	ldur	x8, [x29, #-88]
Lloh48:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh49:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	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_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_Natts_pg_foreign_server,4,2    ; @Natts_pg_foreign_server
	.comm	_ForeignServerRelationId,4,2    ; @ForeignServerRelationId
	.comm	_RowExclusiveLock,4,2           ; @RowExclusiveLock
	.comm	_FOREIGNSERVERNAME,4,2          ; @FOREIGNSERVERNAME
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_UNDEFINED_OBJECT,4,2   ; @ERRCODE_UNDEFINED_OBJECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"server \"%s\" does not exist"

	.comm	_ACLCHECK_NOT_OWNER,4,2         ; @ACLCHECK_NOT_OWNER
	.comm	_OBJECT_FOREIGN_SERVER,4,2      ; @OBJECT_FOREIGN_SERVER
	.comm	_Anum_pg_foreign_server_srvversion,4,2 ; @Anum_pg_foreign_server_srvversion
	.comm	_FOREIGNSERVEROID,4,2           ; @FOREIGNSERVEROID
	.comm	_Anum_pg_foreign_server_srvoptions,4,2 ; @Anum_pg_foreign_server_srvoptions
.subsections_via_symbols
