	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ATExecGenericOptions
_ATExecGenericOptions:                  ## @ATExecGenericOptions
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsp, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_Natts_pg_foreign_table@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r12d
	leaq	(,%r12,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -120(%rbp)                ## 8-byte Spill
	movl	(%rbx), %r13d
	leaq	(,%r13,4), %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	_NIL@GOTPCREL(%rip), %rax
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	cmpq	%r15, (%rax)
	je	LBB0_6
## %bb.1:
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movq	_ForeignTableRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	_FOREIGNTABLEREL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	callq	_SearchSysCacheCopy1
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_UNDEFINED_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_RelationGetRelationName
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_3:
	movq	%rbx, %rdi
	callq	_GETSTRUCT
	movl	(%rax), %edi
	callq	_GetForeignServer
	movl	(%rax), %edi
	callq	_GetForeignDataWrapper
	movq	%rax, %r14
	shll	$2, %r12d
	movq	-120(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_memset
	shll	$2, %r13d
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	%r13d, %edx
	callq	_memset
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	%r13d, %edx
	callq	_memset
	movq	_FOREIGNTABLEREL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_Anum_pg_foreign_table_ftoptions@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-60(%rbp), %rcx
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_SysCacheGetAttr
	cmpl	$0, -60(%rbp)
	je	LBB0_5
## %bb.4:
	xorl	%edi, %edi
	callq	_PointerGetDatum
LBB0_5:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	_ForeignTableRelationId@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%r14), %ecx
	movl	%eax, %esi
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	callq	_transformGenericOptions
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_DatumGetPointer
	movl	%eax, %edi
	callq	_PointerIsValid
	testq	%rax, %rax
	movq	_Anum_pg_foreign_table_ftoptions@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%r15, %rcx
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	cmoveq	%r14, %rcx
	movl	$1, %edx
	cmovnel	%ebx, %edx
	movl	%edx, -4(%rcx,%rax,4)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	$1, -4(%rbx,%rax,4)
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_RelationGetDescr
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	movq	%r15, %rdx
	movq	%r14, %rcx
	movq	%rbx, %r8
	callq	_heap_modify_tuple
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%rax, %rsi
	movq	%rax, %rdx
	callq	_CatalogTupleUpdate
	movq	%r13, %rdi
	callq	_CacheInvalidateRelcache
	movq	_ForeignTableRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r13, %rdi
	callq	_RelationGetRelid
	movl	%r14d, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_InvokeObjectPostAlterHook
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_table_close
	movq	%rbx, %rdi
	callq	_heap_freetuple
	movq	-104(%rbp), %r14                ## 8-byte Reload
LBB0_6:
	movq	%r14, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_Natts_pg_foreign_table,4,2     ## @Natts_pg_foreign_table
	.comm	_NIL,8,3                        ## @NIL
	.comm	_ForeignTableRelationId,4,2     ## @ForeignTableRelationId
	.comm	_RowExclusiveLock,4,2           ## @RowExclusiveLock
	.comm	_FOREIGNTABLEREL,4,2            ## @FOREIGNTABLEREL
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_UNDEFINED_OBJECT,4,2   ## @ERRCODE_UNDEFINED_OBJECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"foreign table \"%s\" does not exist"

	.comm	_Anum_pg_foreign_table_ftoptions,4,2 ## @Anum_pg_foreign_table_ftoptions
	.no_dead_strip	_ATExecGenericOptions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ATExecGenericOptions
_ATExecGenericOptions:                  ; @ATExecGenericOptions
	.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	x23, x1
	mov	x19, x0
	mov	x13, sp
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_foreign_table@GOTPAGE
Lloh4:
	ldr	x12, [x12, _Natts_pg_foreign_table@GOTPAGEOFF]
	ldr	w27, [x12]
	lsl	x8, x27, #2
	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, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	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	x24, x8, x12
	mov	sp, x24
Lloh11:
	adrp	x8, _NIL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NIL@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x8, x1
	b.eq	LBB0_6
; %bb.1:
	stur	x13, [x29, #-104]               ; 8-byte Folded Spill
Lloh14:
	adrp	x8, _ForeignTableRelationId@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ForeignTableRelationId@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _RowExclusiveLock@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RowExclusiveLock@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_table_open
	mov	x22, x0
Lloh20:
	adrp	x8, _FOREIGNTABLEREL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FOREIGNTABLEREL@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_SearchSysCacheCopy1
	mov	x25, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_3
; %bb.2:
Lloh23:
	adrp	x8, _ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w26, [x8]
Lloh26:
	adrp	x8, _ERRCODE_UNDEFINED_OBJECT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ERRCODE_UNDEFINED_OBJECT@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x19
	bl	_RelationGetRelationName
	mov	x1, x0
Lloh29:
	adrp	x0, l_.str@PAGE
Lloh30:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x26
	bl	_ereport
LBB0_3:
	mov	x0, x25
	bl	_GETSTRUCT
	ldr	w0, [x0]
	bl	_GetForeignServer
	ldr	w0, [x0]
	bl	_GetForeignDataWrapper
	mov	x26, x0
	lsl	w2, w27, #2
	mov	x0, x20
	mov	w1, #0
	bl	_memset
	lsl	w27, w28, #2
	mov	x0, x21
	mov	w1, #0
	mov	x2, x27
	bl	_memset
	mov	x0, x24
	mov	w1, #0
	mov	x2, x27
	bl	_memset
Lloh31:
	adrp	x8, _FOREIGNTABLEREL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _FOREIGNTABLEREL@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x27, _Anum_pg_foreign_table_ftoptions@GOTPAGE
Lloh35:
	ldr	x27, [x27, _Anum_pg_foreign_table_ftoptions@GOTPAGEOFF]
	ldr	w2, [x27]
	sub	x3, x29, #92
	mov	x1, x25
	bl	_SysCacheGetAttr
	ldur	w8, [x29, #-92]
	cbz	w8, LBB0_5
; %bb.4:
	mov	x0, #0
	bl	_PointerGetDatum
LBB0_5:
	mov	x1, x0
Lloh36:
	adrp	x28, _ForeignTableRelationId@GOTPAGE
Lloh37:
	ldr	x28, [x28, _ForeignTableRelationId@GOTPAGEOFF]
	ldr	w0, [x28]
	ldr	w3, [x26]
	mov	x2, x23
	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, [x24, x8]
	mov	x0, x22
	bl	_RelationGetDescr
	mov	x1, x0
	mov	x0, x25
	mov	x2, x20
	mov	x3, x21
	mov	x4, x24
	bl	_heap_modify_tuple
	mov	x20, x0
	mov	x0, x22
	mov	x1, x20
	mov	x2, x20
	bl	_CatalogTupleUpdate
	mov	x0, x19
	bl	_CacheInvalidateRelcache
	ldr	w21, [x28]
	mov	x0, x19
	bl	_RelationGetRelid
	mov	x1, x0
	mov	x0, x21
	mov	w2, #0
	bl	_InvokeObjectPostAlterHook
Lloh38:
	adrp	x8, _RowExclusiveLock@GOTPAGE
Lloh39:
	ldr	x8, [x8, _RowExclusiveLock@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_table_close
	mov	x0, x20
	bl	_heap_freetuple
	ldur	x13, [x29, #-104]               ; 8-byte Folded Reload
LBB0_6:
	mov	sp, x13
	ldur	x8, [x29, #-88]
Lloh41:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh42:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	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_8:
	bl	___stack_chk_fail
	.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 AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_Natts_pg_foreign_table,4,2     ; @Natts_pg_foreign_table
	.comm	_NIL,8,3                        ; @NIL
	.comm	_ForeignTableRelationId,4,2     ; @ForeignTableRelationId
	.comm	_RowExclusiveLock,4,2           ; @RowExclusiveLock
	.comm	_FOREIGNTABLEREL,4,2            ; @FOREIGNTABLEREL
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_UNDEFINED_OBJECT,4,2   ; @ERRCODE_UNDEFINED_OBJECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"foreign table \"%s\" does not exist"

	.comm	_Anum_pg_foreign_table_ftoptions,4,2 ; @Anum_pg_foreign_table_ftoptions
	.no_dead_strip	_ATExecGenericOptions
.subsections_via_symbols
