	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetForeignServerExtended       ## -- Begin function GetForeignServerExtended
	.p2align	4, 0x90
_GetForeignServerExtended:              ## @GetForeignServerExtended
	.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
	movl	%esi, %r12d
	movl	%edi, %r15d
	movq	_FOREIGNSERVEROID@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	callq	_ObjectIdGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SearchSysCache1
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	movl	%r14d, %edi
	callq	_GETSTRUCT
	movq	%rax, %rbx
	movl	$40, %edi
	callq	_palloc
	movq	%rax, %r12
	movl	%r15d, 36(%rax)
	movl	8(%rbx), %edi
	callq	_NameStr
	movl	%eax, %edi
	callq	_pstrdup
	movl	%eax, 32(%r12)
	movl	4(%rbx), %eax
	movl	%eax, 28(%r12)
	movl	(%rbx), %eax
	movl	%eax, 24(%r12)
	movl	(%r13), %edi
	movq	_Anum_pg_foreign_server_srvtype@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rcx
	movl	%r14d, %esi
	callq	_SysCacheGetAttr
	cmpl	$0, -44(%rbp)
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_1:
	movq	_FSV_MISSING_OK@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_3
## %bb.2:
	xorl	%r12d, %r12d
	jmp	LBB0_14
LBB0_6:
	movl	%eax, %edi
	callq	_TextDatumGetCString
LBB0_7:
	movq	%rax, 16(%r12)
	movl	(%r13), %edi
	movq	_Anum_pg_foreign_server_srvversion@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rcx
	movl	%r14d, %esi
	callq	_SysCacheGetAttr
	cmpl	$0, -44(%rbp)
	je	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_9:
	movl	%eax, %edi
	callq	_TextDatumGetCString
LBB0_10:
	movq	%rax, 8(%r12)
	movl	(%r13), %edi
	movq	_Anum_pg_foreign_server_srvoptions@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rcx
	movl	%r14d, %esi
	callq	_SysCacheGetAttr
	cmpl	$0, -44(%rbp)
	je	LBB0_12
## %bb.11:
	movq	_NIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_13
LBB0_12:
	movl	%eax, %edi
	callq	_untransformRelOptions
LBB0_13:
	movl	%eax, (%r12)
	movl	%r14d, %edi
	callq	_ReleaseSysCache
LBB0_14:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_elog
	xorl	%r12d, %r12d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_FOREIGNSERVEROID,4,2           ## @FOREIGNSERVEROID
	.comm	_FSV_MISSING_OK,4,2             ## @FSV_MISSING_OK
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cache lookup failed for foreign server %u"

	.comm	_Anum_pg_foreign_server_srvtype,4,2 ## @Anum_pg_foreign_server_srvtype
	.comm	_Anum_pg_foreign_server_srvversion,4,2 ## @Anum_pg_foreign_server_srvversion
	.comm	_Anum_pg_foreign_server_srvoptions,4,2 ## @Anum_pg_foreign_server_srvoptions
	.comm	_NIL,4,2                        ## @NIL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetForeignServerExtended       ; -- Begin function GetForeignServerExtended
	.p2align	2
_GetForeignServerExtended:              ; @GetForeignServerExtended
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x23, _FOREIGNSERVEROID@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FOREIGNSERVEROID@GOTPAGEOFF]
	ldr	w19, [x23]
	bl	_ObjectIdGetDatum
	mov	x1, x0
	mov	x0, x19
	bl	_SearchSysCache1
	mov	x19, x0
	bl	_HeapTupleIsValid
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_GETSTRUCT
	mov	x22, x0
	mov	w0, #40
	bl	_palloc
	mov	x20, x0
	str	w21, [x0, #36]
	ldr	w0, [x22, #8]
	bl	_NameStr
	bl	_pstrdup
	str	w0, [x20, #32]
	ldr	d0, [x22]
	str	d0, [x20, #24]
	ldr	w0, [x23]
Lloh2:
	adrp	x8, _Anum_pg_foreign_server_srvtype@GOTPAGE
Lloh3:
	ldr	x8, [x8, _Anum_pg_foreign_server_srvtype@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x1, x19
	bl	_SysCacheGetAttr
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_5
; %bb.2:
	mov	x0, #0
	b	LBB0_6
LBB0_3:
Lloh5:
	adrp	x8, _FSV_MISSING_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FSV_MISSING_OK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_14
; %bb.4:
	mov	x20, #0
	b	LBB0_13
LBB0_5:
	bl	_TextDatumGetCString
LBB0_6:
	str	x0, [x20, #16]
	ldr	w0, [x23]
Lloh8:
	adrp	x8, _Anum_pg_foreign_server_srvversion@GOTPAGE
Lloh9:
	ldr	x8, [x8, _Anum_pg_foreign_server_srvversion@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x1, x19
	bl	_SysCacheGetAttr
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_8
; %bb.7:
	mov	x0, #0
	b	LBB0_9
LBB0_8:
	bl	_TextDatumGetCString
LBB0_9:
	str	x0, [x20, #8]
	ldr	w0, [x23]
Lloh11:
	adrp	x8, _Anum_pg_foreign_server_srvoptions@GOTPAGE
Lloh12:
	ldr	x8, [x8, _Anum_pg_foreign_server_srvoptions@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x1, x19
	bl	_SysCacheGetAttr
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_11
; %bb.10:
Lloh14:
	adrp	x8, _NIL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NIL@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	b	LBB0_12
LBB0_11:
	bl	_untransformRelOptions
LBB0_12:
	str	w0, [x20]
	mov	x0, x19
	bl	_ReleaseSysCache
LBB0_13:
	mov	x0, x20
	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
LBB0_14:
Lloh17:
	adrp	x8, _ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_elog
	mov	x20, #0
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_FOREIGNSERVEROID,4,2           ; @FOREIGNSERVEROID
	.comm	_FSV_MISSING_OK,4,2             ; @FSV_MISSING_OK
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cache lookup failed for foreign server %u"

	.comm	_Anum_pg_foreign_server_srvtype,4,2 ; @Anum_pg_foreign_server_srvtype
	.comm	_Anum_pg_foreign_server_srvversion,4,2 ; @Anum_pg_foreign_server_srvversion
	.comm	_Anum_pg_foreign_server_srvoptions,4,2 ; @Anum_pg_foreign_server_srvoptions
	.comm	_NIL,4,2                        ; @NIL
.subsections_via_symbols
