	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ReceiveCopyBegin
_ReceiveCopyBegin:                      ## @ReceiveCopyBegin
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_FrontendProtocol@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PG_PROTOCOL_MAJOR
	cmpl	$3, %eax
	jl	LBB0_5
## %bb.1:
	movl	20(%r14), %edi
	callq	_list_length
	movl	%eax, %ebx
	xorl	%r15d, %r15d
	cmpq	$0, 8(%r14)
	setne	%r15b
	leaq	-36(%rbp), %r12
	movq	%r12, %rdi
	movl	$71, %esi
	callq	_pq_beginmessage
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_pq_sendbyte
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_pq_sendint16
	testl	%ebx, %ebx
	jle	LBB0_4
## %bb.2:
	leaq	-36(%rbp), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_pq_sendint16
	decl	%ebx
	jne	LBB0_3
LBB0_4:
	leaq	-36(%rbp), %rdi
	callq	_pq_endmessage
	movq	_COPY_NEW_FE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	callq	_makeStringInfo
	movl	%eax, 16(%r14)
	jmp	LBB0_8
LBB0_5:
	cmpq	$0, 8(%r14)
	je	LBB0_7
## %bb.6:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_FEATURE_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_7:
	movl	$71, %edi
	callq	_pq_putemptymessage
	xorl	%eax, %eax
	callq	_pq_startmsgread
	movq	_COPY_OLD_FE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_8:
	xorl	%eax, %eax
	callq	_pq_flush
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FrontendProtocol,4,2           ## @FrontendProtocol
	.comm	_COPY_NEW_FE,4,2                ## @COPY_NEW_FE
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ## @ERRCODE_FEATURE_NOT_SUPPORTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"COPY BINARY is not supported to stdout or from stdin"

	.comm	_COPY_OLD_FE,4,2                ## @COPY_OLD_FE
	.no_dead_strip	_ReceiveCopyBegin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ReceiveCopyBegin
_ReceiveCopyBegin:                      ; @ReceiveCopyBegin
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _FrontendProtocol@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FrontendProtocol@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_PG_PROTOCOL_MAJOR
	cmp	w0, #3
	b.lt	LBB0_4
; %bb.1:
	ldr	w0, [x19, #20]
	bl	_list_length
	mov	x20, x0
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w21, ne
	add	x0, sp, #12
	mov	w1, #71
	bl	_pq_beginmessage
	add	x0, sp, #12
	mov	x1, x21
	bl	_pq_sendbyte
	add	x0, sp, #12
	mov	x1, x20
	bl	_pq_sendint16
	cmp	w20, #1
	b.lt	LBB0_3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	mov	x1, x21
	bl	_pq_sendint16
	subs	w20, w20, #1
	b.ne	LBB0_2
LBB0_3:
	add	x0, sp, #12
	bl	_pq_endmessage
Lloh3:
	adrp	x8, _COPY_NEW_FE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _COPY_NEW_FE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19]
	bl	_makeStringInfo
	str	w0, [x19, #16]
	b	LBB0_7
LBB0_4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
Lloh9:
	adrp	x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_errcode
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_6:
	mov	w0, #71
	bl	_pq_putemptymessage
	bl	_pq_startmsgread
Lloh14:
	adrp	x8, _COPY_OLD_FE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _COPY_OLD_FE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_7:
	bl	_pq_flush
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_FrontendProtocol,4,2           ; @FrontendProtocol
	.comm	_COPY_NEW_FE,4,2                ; @COPY_NEW_FE
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ; @ERRCODE_FEATURE_NOT_SUPPORTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"COPY BINARY is not supported to stdout or from stdin"

	.comm	_COPY_OLD_FE,4,2                ; @COPY_OLD_FE
	.no_dead_strip	_ReceiveCopyBegin
.subsections_via_symbols
