	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CopySendEndOfRow
_CopySendEndOfRow:                      ## @CopySendEndOfRow
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %r14
	movl	(%rdi), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_20
## %bb.1:
	movq	%rdi, %rbx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_12:
	cmpl	$0, 4(%rbx)
	jne	LBB0_14
## %bb.13:
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_CopySendChar
LBB0_14:
	movl	(%r14), %esi
	movl	4(%r14), %edi
	callq	_pq_putbytes
	testl	%eax, %eax
	je	LBB0_20
## %bb.15:
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_CONNECTION_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_10
LBB0_16:
	cmpl	$0, 4(%rbx)
	jne	LBB0_18
## %bb.17:
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_CopySendChar
LBB0_18:
	movl	(%r14), %edx
	movl	4(%r14), %esi
	movl	$100, %edi
	callq	_pq_putmessage
	jmp	LBB0_20
LBB0_2:
	cmpl	$0, 4(%rbx)
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_CopySendChar
LBB0_4:
	movl	(%r14), %esi
	movl	4(%r14), %edi
	movl	12(%rbx), %ecx
	movl	$1, %edx
	callq	_fwrite
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.5:
	movl	12(%rbx), %edi
	callq	_ferror
	testl	%eax, %eax
	je	LBB0_20
LBB0_6:
	cmpl	$0, 8(%rbx)
	je	LBB0_11
## %bb.7:
	movq	_errno@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movq	_EPIPE@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jne	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_ClosePipeToProgram
	movl	(%r12), %eax
	movl	%eax, (%r15)
LBB0_9:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_10
LBB0_19:
	xorl	%edi, %edi
	callq	_Assert
	jmp	LBB0_20
LBB0_11:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	leaq	L_.str.1(%rip), %rdi
LBB0_10:
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_20:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_resetStringInfo                ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_16
	.long	L0_0_set_2
	.long	L0_0_set_19
	.end_data_region
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.comm	_EPIPE,4,2                      ## @EPIPE
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not write to COPY program: %m"

L_.str.1:                               ## @.str.1
	.asciz	"could not write to COPY file: %m"

	.comm	_FATAL,4,2                      ## @FATAL
	.comm	_ERRCODE_CONNECTION_FAILURE,4,2 ## @ERRCODE_CONNECTION_FAILURE
L_.str.2:                               ## @.str.2
	.asciz	"connection lost during COPY to stdout"

	.no_dead_strip	_CopySendEndOfRow
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CopySendEndOfRow
_CopySendEndOfRow:                      ; @CopySendEndOfRow
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x19, [x0, #16]
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_20
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x20, #4]
	cbnz	w8, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	w1, #10
	bl	_CopySendChar
LBB0_4:
	ldp	w1, w0, [x19]
	bl	_pq_putbytes
	cbz	w0, LBB0_20
; %bb.5:
Lloh2:
	adrp	x8, _FATAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FATAL@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
Lloh5:
	adrp	x8, _ERRCODE_CONNECTION_FAILURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERRCODE_CONNECTION_FAILURE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_errcode
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_19
LBB0_6:
	ldr	w8, [x20, #4]
	cbnz	w8, LBB0_8
; %bb.7:
	mov	x0, x20
	mov	w1, #10
	bl	_CopySendChar
LBB0_8:
	ldp	w2, w1, [x19]
	mov	w0, #100
	bl	_pq_putmessage
	b	LBB0_20
LBB0_9:
	ldr	w8, [x20, #4]
	cbnz	w8, LBB0_11
; %bb.10:
	mov	x0, x20
	mov	w1, #10
	bl	_CopySendChar
LBB0_11:
	ldp	w1, w0, [x19]
	ldr	w3, [x20, #12]
	mov	w2, #1
	bl	_fwrite
	cmp	w0, #1
	b.ne	LBB0_13
; %bb.12:
	ldr	w0, [x20, #12]
	bl	_ferror
	cbz	w0, LBB0_20
LBB0_13:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_18
; %bb.14:
Lloh10:
	adrp	x21, _errno@GOTPAGE
Lloh11:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh12:
	adrp	x22, _EPIPE@GOTPAGE
Lloh13:
	ldr	x22, [x22, _EPIPE@GOTPAGEOFF]
	ldr	w9, [x22]
	cmp	w8, w9
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x20
	bl	_ClosePipeToProgram
	ldr	w8, [x22]
	str	w8, [x21]
LBB0_16:
Lloh14:
	adrp	x8, _ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
	bl	_errcode_for_file_access
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_19
LBB0_17:
	mov	w0, #0
	bl	_Assert
	b	LBB0_20
LBB0_18:
Lloh19:
	adrp	x8, _ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w20, [x8]
	bl	_errcode_for_file_access
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_19:
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_20:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_resetStringInfo
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.comm	_EPIPE,4,2                      ; @EPIPE
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not write to COPY program: %m"

l_.str.1:                               ; @.str.1
	.asciz	"could not write to COPY file: %m"

	.comm	_FATAL,4,2                      ; @FATAL
	.comm	_ERRCODE_CONNECTION_FAILURE,4,2 ; @ERRCODE_CONNECTION_FAILURE
l_.str.2:                               ; @.str.2
	.asciz	"connection lost during COPY to stdout"

	.no_dead_strip	_CopySendEndOfRow
.subsections_via_symbols
