	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetForeignDataWrapperExtended  ## -- Begin function GetForeignDataWrapperExtended
	.p2align	4, 0x90
_GetForeignDataWrapperExtended:         ## @GetForeignDataWrapperExtended
	.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	_FOREIGNDATAWRAPPEROID@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	$24, %edi
	callq	_palloc
	movq	%rax, %r12
	movl	%r15d, 20(%rax)
	movl	12(%rbx), %eax
	movl	%eax, 16(%r12)
	movl	8(%rbx), %edi
	callq	_NameStr
	movl	%eax, %edi
	callq	_pstrdup
	movl	%eax, 12(%r12)
	movl	4(%rbx), %eax
	movl	%eax, 8(%r12)
	movl	(%rbx), %eax
	movl	%eax, 4(%r12)
	movl	(%r13), %edi
	movq	_Anum_pg_foreign_data_wrapper_fdwoptions@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rcx
	movl	%r14d, %esi
	callq	_SysCacheGetAttr
	cmpl	$0, -44(%rbp)
	je	LBB0_6
## %bb.5:
	movq	_NIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_1:
	movq	_FDW_MISSING_OK@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_3
## %bb.2:
	xorl	%r12d, %r12d
	jmp	LBB0_8
LBB0_6:
	movl	%eax, %edi
	callq	_untransformRelOptions
LBB0_7:
	movl	%eax, (%r12)
	movl	%r14d, %edi
	callq	_ReleaseSysCache
LBB0_8:
	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_8
	.cfi_endproc
                                        ## -- End function
	.comm	_FOREIGNDATAWRAPPEROID,4,2      ## @FOREIGNDATAWRAPPEROID
	.comm	_FDW_MISSING_OK,4,2             ## @FDW_MISSING_OK
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cache lookup failed for foreign-data wrapper %u"

	.comm	_Anum_pg_foreign_data_wrapper_fdwoptions,4,2 ## @Anum_pg_foreign_data_wrapper_fdwoptions
	.comm	_NIL,4,2                        ## @NIL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetForeignDataWrapperExtended  ; -- Begin function GetForeignDataWrapperExtended
	.p2align	2
_GetForeignDataWrapperExtended:         ; @GetForeignDataWrapperExtended
	.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, _FOREIGNDATAWRAPPEROID@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FOREIGNDATAWRAPPEROID@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, #24
	bl	_palloc
	mov	x20, x0
	ldp	w0, w8, [x22, #8]
	stp	w8, w21, [x20, #16]
	bl	_NameStr
	bl	_pstrdup
	str	w0, [x20, #12]
	ldr	d0, [x22]
	stur	d0, [x20, #4]
	ldr	w0, [x23]
Lloh2:
	adrp	x8, _Anum_pg_foreign_data_wrapper_fdwoptions@GOTPAGE
Lloh3:
	ldr	x8, [x8, _Anum_pg_foreign_data_wrapper_fdwoptions@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x1, x19
	bl	_SysCacheGetAttr
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_5
; %bb.2:
Lloh5:
	adrp	x8, _NIL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NIL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_3:
Lloh8:
	adrp	x8, _FDW_MISSING_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FDW_MISSING_OK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.4:
	mov	x20, #0
	b	LBB0_7
LBB0_5:
	bl	_untransformRelOptions
LBB0_6:
	str	w0, [x20]
	mov	x0, x19
	bl	_ReleaseSysCache
LBB0_7:
	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_8:
Lloh11:
	adrp	x8, _ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_elog
	mov	x20, #0
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_FOREIGNDATAWRAPPEROID,4,2      ; @FOREIGNDATAWRAPPEROID
	.comm	_FDW_MISSING_OK,4,2             ; @FDW_MISSING_OK
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cache lookup failed for foreign-data wrapper %u"

	.comm	_Anum_pg_foreign_data_wrapper_fdwoptions,4,2 ; @Anum_pg_foreign_data_wrapper_fdwoptions
	.comm	_NIL,4,2                        ; @NIL
.subsections_via_symbols
