	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SendCopyBegin
_SendCopyBegin:                         ## @SendCopyBegin
	.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	16(%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	$72, %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
	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	$72, %edi
	callq	_pq_putemptymessage
	xorl	%eax, %eax
	callq	_pq_startcopyout
	movq	_COPY_OLD_FE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	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	_SendCopyBegin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SendCopyBegin
_SendCopyBegin:                         ; @SendCopyBegin
	.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, #16]
	bl	_list_length
	mov	x20, x0
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w21, ne
	add	x0, sp, #12
	mov	w1, #72
	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]
	b	LBB0_7
LBB0_4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.5:
Lloh5:
	adrp	x8, _ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
Lloh8:
	adrp	x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_errcode
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_6:
	mov	w0, #72
	bl	_pq_putemptymessage
	bl	_pq_startcopyout
Lloh13:
	adrp	x8, _COPY_OLD_FE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _COPY_OLD_FE@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	str	w8, [x19]
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.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	_SendCopyBegin
.subsections_via_symbols
