	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function postgresReScanForeignScan
_postgresReScanForeignScan:             ## @postgresReScanForeignScan
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$80, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	8(%rdi), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_8
## %bb.1:
	cmpq	$0, (%rdi)
	je	LBB0_3
## %bb.2:
	movl	$0, (%rbx)
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_5
LBB0_3:
	cmpl	$1, 8(%rbx)
	jle	LBB0_10
## %bb.4:
	leaq	L_.str.1(%rip), %rdx
LBB0_5:
	movl	4(%rbx), %ecx
	leaq	-96(%rbp), %r14
	movq	%r14, %rdi
	movl	$64, %esi
	callq	_snprintf
	movl	40(%rbx), %edi
	movq	%r14, %rsi
	callq	_pgfdw_exec_query
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_PQresultStatus
	movq	_PGRES_COMMAND_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	40(%rbx), %edx
	leaq	-96(%rbp), %r8
	movq	%r14, %rsi
	movl	$1, %ecx
	callq	_pgfdw_report_error
LBB0_7:
	movq	%r14, %rdi
	callq	_PQclear
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movups	%xmm0, 24(%rbx)
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_11
## %bb.9:
	addq	$80, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	movq	$0, 16(%rbx)
	jmp	LBB0_8
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CLOSE c%u"

L_.str.1:                               ## @.str.1
	.asciz	"MOVE BACKWARD ALL IN c%u"

	.comm	_PGRES_COMMAND_OK,8,3           ## @PGRES_COMMAND_OK
	.comm	_ERROR,4,2                      ## @ERROR
	.no_dead_strip	_postgresReScanForeignScan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function postgresReScanForeignScan
_postgresReScanForeignScan:             ; @postgresReScanForeignScan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	ldr	x20, [x0, #8]
	ldr	w8, [x20]
	cbz	w8, LBB0_8
; %bb.1:
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.2:
	str	wzr, [x20]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.le	LBB0_10
; %bb.4:
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_5:
	ldr	w3, [x20, #4]
	add	x0, sp, #8
	mov	w1, #64
	bl	_snprintf
	ldr	w0, [x20, #40]
	add	x1, sp, #8
	bl	_pgfdw_exec_query
	mov	x19, x0
	bl	_PQresultStatus
Lloh7:
	adrp	x8, _PGRES_COMMAND_OK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PGRES_COMMAND_OK@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.6:
Lloh10:
	adrp	x8, _ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	w2, [x20, #40]
	add	x4, sp, #8
	mov	x1, x19
	mov	w3, #1
	bl	_pgfdw_report_error
LBB0_7:
	mov	x0, x19
	bl	_PQclear
	movi.2d	v0, #0000000000000000
	stur	q0, [x20, #8]
	stur	q0, [x20, #24]
LBB0_8:
	ldur	x8, [x29, #-24]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_10:
	str	xzr, [x20, #16]
	b	LBB0_8
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CLOSE c%u"

l_.str.1:                               ; @.str.1
	.asciz	"MOVE BACKWARD ALL IN c%u"

	.comm	_PGRES_COMMAND_OK,8,3           ; @PGRES_COMMAND_OK
	.comm	_ERROR,4,2                      ; @ERROR
	.no_dead_strip	_postgresReScanForeignScan
.subsections_via_symbols
