	.file	"extr_copy.c_SendCopyBegin.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"COPY BINARY is not supported to stdout or from stdin"
	.text
	.p2align 4
	.type	SendCopyBegin, @function
SendCopyBegin:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR FrontendProtocol[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	PG_PROTOCOL_MAJOR@PLT
	cmp	eax, 2
	jg	.L11
	cmp	QWORD PTR 8[rbp], 0
	jne	.L12
.L6:
	mov	edi, 72
	call	pq_putemptymessage@PLT
	xor	eax, eax
	call	pq_startcopyout@PLT
	mov	eax, DWORD PTR COPY_OLD_FE[rip]
	mov	DWORD PTR 0[rbp], eax
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edi, DWORD PTR ERRCODE_FEATURE_NOT_SUPPORTED[rip]
	call	errcode@PLT
	lea	rdi, .LC0[rip]
	call	errmsg@PLT
	mov	edi, DWORD PTR ERROR[rip]
	mov	esi, eax
	call	ereport@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edi, DWORD PTR 16[rbp]
	lea	r12, 4[rsp]
	xor	r14d, r14d
	call	list_length@PLT
	cmp	QWORD PTR 8[rbp], 0
	mov	esi, 72
	mov	rdi, r12
	setne	r14b
	mov	r13d, eax
	call	pq_beginmessage@PLT
	mov	esi, r14d
	mov	rdi, r12
	call	pq_sendbyte@PLT
	mov	esi, r13d
	mov	rdi, r12
	call	pq_sendint16@PLT
	test	r13d, r13d
	jle	.L3
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L4:
	mov	esi, r14d
	mov	rdi, r12
	add	ebx, 1
	call	pq_sendint16@PLT
	cmp	r13d, ebx
	jne	.L4
.L3:
	mov	rdi, r12
	call	pq_endmessage@PLT
	mov	eax, DWORD PTR COPY_NEW_FE[rip]
	mov	DWORD PTR 0[rbp], eax
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	SendCopyBegin, .-SendCopyBegin
	.comm	FrontendProtocol,4,4
	.comm	ERROR,4,4
	.comm	ERRCODE_FEATURE_NOT_SUPPORTED,4,4
	.comm	COPY_OLD_FE,4,4
	.comm	COPY_NEW_FE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_copy.c_SendCopyBegin.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"COPY BINARY is not supported to stdout or from stdi"
	.ascii	"n\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	SendCopyBegin, %function
SendCopyBegin:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L17
	mov	r5, r0
	ldr	r0, [r3]
	ldr	r3, .L17+4
	sub	sp, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	PG_PROTOCOL_MAJOR
	cmp	r0, #2
	bgt	.L14
	ldr	r3, [r5, #4]
	cmp	r3, #0
	bne	.L15
.L6:
	mov	r0, #72
	bl	pq_putemptymessage
	bl	pq_startcopyout
	ldr	r3, .L17+8
	ldr	r3, [r3]
	str	r3, [r5]
.L1:
	ldr	r3, .L17+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L15:
	ldr	r2, .L17+12
	ldr	r3, .L17+16
	ldr	r0, [r2]
	ldr	r4, [r3]
	bl	errcode
	ldr	r0, .L17+20
	bl	errmsg
	mov	r1, r0
	mov	r0, r4
	bl	ereport
	b	.L6
.L14:
	ldr	r0, [r5, #8]
	bl	list_length
	ldr	r7, [r5, #4]
	mov	r6, r0
	subs	r7, r7, #0
	movne	r7, #1
	mov	r1, #72
	mov	r0, sp
	bl	pq_beginmessage
	mov	r1, r7
	mov	r0, sp
	bl	pq_sendbyte
	mov	r1, r6
	mov	r0, sp
	bl	pq_sendint16
	cmp	r6, #0
	ble	.L3
	mov	r4, #0
.L4:
	mov	r1, r7
	mov	r0, sp
	add	r4, r4, #1
	bl	pq_sendint16
	cmp	r6, r4
	bne	.L4
.L3:
	mov	r0, sp
	bl	pq_endmessage
	ldr	r3, .L17+24
	ldr	r3, [r3]
	str	r3, [r5]
	b	.L1
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	FrontendProtocol
	.word	.LC1
	.word	COPY_OLD_FE
	.word	ERRCODE_FEATURE_NOT_SUPPORTED
	.word	ERROR
	.word	.LC0
	.word	COPY_NEW_FE
	.size	SendCopyBegin, .-SendCopyBegin
	.comm	FrontendProtocol,4,4
	.comm	ERROR,4,4
	.comm	ERRCODE_FEATURE_NOT_SUPPORTED,4,4
	.comm	COPY_OLD_FE,4,4
	.comm	COPY_NEW_FE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
