	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function BeginCopyTo
_BeginCopyTo:                           ## @BeginCopyTo
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movq	%r8, %r15
	movl	%ecx, %r8d
	movq	%rdx, %rcx
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	24(%rbp), %rdx
	movq	16(%rbp), %r9
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.1:
	movq	(%rbx), %rax
	movq	(%rax), %r13
	movq	_RELKIND_RELATION@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_16
## %bb.2:
	movq	_RELKIND_VIEW@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	jne	LBB0_5
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_ERRCODE_WRONG_OBJECT_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rcx, %r13
	callq	_errcode
	movq	%rbx, %rdi
	callq	_RelationGetRelationName
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_4
LBB0_5:
	movq	_RELKIND_MATVIEW@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_7
## %bb.6:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_ERRCODE_WRONG_OBJECT_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rcx, %r13
	callq	_errcode
	movq	%rbx, %rdi
	callq	_RelationGetRelationName
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_4
LBB0_7:
	movq	_RELKIND_FOREIGN_TABLE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_9
## %bb.8:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_ERRCODE_WRONG_OBJECT_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rcx, %r13
	callq	_errcode
	movq	%rbx, %rdi
	callq	_RelationGetRelationName
	leaq	L_.str.3(%rip), %rdi
LBB0_4:
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_errmsg
	leaq	L_.str.1(%rip), %rdi
	callq	_errhint
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_ereport
	movq	24(%rbp), %rdx
	movq	16(%rbp), %r9
	movq	%r13, %rcx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
LBB0_16:
	movq	%rdx, (%rsp)
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_BeginCopy
	movq	%rax, %rbx
	movl	16(%rax), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r14d
	testq	%r15, %r15
	je	LBB0_17
## %bb.19:
	movq	%r15, %rdi
	callq	_pstrdup
	movl	%eax, 4(%rbx)
	movl	%r12d, (%rbx)
	testl	%r12d, %r12d
	je	LBB0_22
## %bb.20:
	movq	_PG_BINARY_W@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_OpenPipeStream
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_34
## %bb.21:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	movl	4(%rbx), %esi
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_33
LBB0_17:
	xorl	%edi, %edi
	testl	%r12d, %r12d
	sete	%dil
	callq	_Assert
	movq	_whereToSendOutput@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_DestRemote@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_34
## %bb.18:
	movq	_stdout@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	jmp	LBB0_34
LBB0_22:
	movq	%r15, %rdi
	callq	_is_absolute_path
	testl	%eax, %eax
	jne	LBB0_24
## %bb.23:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_INVALID_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_24:
	movq	_S_IWGRP@GOTPCREL(%rip), %rax
	movq	_S_IWOTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_umask
	movl	%eax, %r12d
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_PG_TRY
	movl	4(%rbx), %edi
	movq	_PG_BINARY_W@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_AllocateFile
	movq	%rax, 8(%rbx)
	xorl	%eax, %eax
	callq	_PG_FINALLY
	movl	%r12d, %edi
	callq	_umask
	xorl	%eax, %eax
	callq	_PG_END_TRY
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_29
## %bb.25:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	movl	4(%rbx), %esi
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movq	_ENOENT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_27
## %bb.26:
	movq	_EACCES@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_28
LBB0_27:
	leaq	L_.str.10(%rip), %rdi
	callq	_errhint
	movl	%eax, %r15d
LBB0_28:
	movl	%r12d, %edi
	movl	%r15d, %esi
	callq	_ereport
	movq	8(%rbx), %rdi
LBB0_29:
	callq	_fileno
	leaq	-64(%rbp), %rsi
	movl	%eax, %edi
	callq	_fstat
	testq	%rax, %rax
	je	LBB0_31
## %bb.30:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	movl	4(%rbx), %esi
	leaq	L_.str.11(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_31:
	movl	-64(%rbp), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_34
## %bb.32:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_WRONG_OBJECT_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	4(%rbx), %esi
	leaq	L_.str.12(%rip), %rdi
LBB0_33:
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_34:
	movl	%r14d, %edi
	callq	_MemoryContextSwitchTo
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	_RELKIND_SEQUENCE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_11
## %bb.10:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_ERRCODE_WRONG_OBJECT_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	%rbx, %rdi
	callq	_RelationGetRelationName
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r13d, %edi
	jmp	LBB0_15
LBB0_11:
	movq	_RELKIND_PARTITIONED_TABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_ERRCODE_WRONG_OBJECT_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	%rbx, %rdi
	callq	_RelationGetRelationName
	cmpq	-72(%rbp), %r13                 ## 8-byte Folded Reload
	jne	LBB0_13
## %bb.12:
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_errmsg
	leaq	L_.str.1(%rip), %rdi
	callq	_errhint
	jmp	LBB0_14
LBB0_13:
	leaq	L_.str.6(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_errmsg
LBB0_14:
	movl	-60(%rbp), %edi                 ## 4-byte Reload
LBB0_15:
	movl	%eax, %esi
	callq	_ereport
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rbp), %r9
	movq	24(%rbp), %rdx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_RELKIND_RELATION,8,3           ## @RELKIND_RELATION
	.comm	_RELKIND_VIEW,8,3               ## @RELKIND_VIEW
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_WRONG_OBJECT_TYPE,4,2  ## @ERRCODE_WRONG_OBJECT_TYPE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot copy from view \"%s\""

L_.str.1:                               ## @.str.1
	.asciz	"Try the COPY (SELECT ...) TO variant."

	.comm	_RELKIND_MATVIEW,8,3            ## @RELKIND_MATVIEW
L_.str.2:                               ## @.str.2
	.asciz	"cannot copy from materialized view \"%s\""

	.comm	_RELKIND_FOREIGN_TABLE,8,3      ## @RELKIND_FOREIGN_TABLE
L_.str.3:                               ## @.str.3
	.asciz	"cannot copy from foreign table \"%s\""

	.comm	_RELKIND_SEQUENCE,8,3           ## @RELKIND_SEQUENCE
L_.str.4:                               ## @.str.4
	.asciz	"cannot copy from sequence \"%s\""

	.comm	_RELKIND_PARTITIONED_TABLE,8,3  ## @RELKIND_PARTITIONED_TABLE
L_.str.5:                               ## @.str.5
	.asciz	"cannot copy from partitioned table \"%s\""

L_.str.6:                               ## @.str.6
	.asciz	"cannot copy from non-table relation \"%s\""

	.comm	_whereToSendOutput,8,3          ## @whereToSendOutput
	.comm	_DestRemote,8,3                 ## @DestRemote
	.comm	_stdout,8,3                     ## @stdout
	.comm	_PG_BINARY_W,4,2                ## @PG_BINARY_W
L_.str.7:                               ## @.str.7
	.asciz	"could not execute command \"%s\": %m"

	.comm	_ERRCODE_INVALID_NAME,4,2       ## @ERRCODE_INVALID_NAME
L_.str.8:                               ## @.str.8
	.asciz	"relative path not allowed for COPY to file"

	.comm	_S_IWGRP,4,2                    ## @S_IWGRP
	.comm	_S_IWOTH,4,2                    ## @S_IWOTH
	.comm	_errno,4,2                      ## @errno
L_.str.9:                               ## @.str.9
	.asciz	"could not open file \"%s\" for writing: %m"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_EACCES,4,2                     ## @EACCES
L_.str.10:                              ## @.str.10
	.asciz	"COPY TO instructs the PostgreSQL server process to write a file. You may want a client-side facility such as psql's \\copy."

L_.str.11:                              ## @.str.11
	.asciz	"could not stat file \"%s\": %m"

L_.str.12:                              ## @.str.12
	.asciz	"\"%s\" is a directory"

	.no_dead_strip	_BeginCopyTo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function BeginCopyTo
_BeginCopyTo:                           ; @BeginCopyTo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x7
	mov	x21, x6
	mov	x22, x5
	mov	x20, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x26, x0
	cbz	x1, LBB0_11
; %bb.1:
	ldr	x8, [x25]
	ldr	x28, [x8]
Lloh0:
	adrp	x8, _RELKIND_RELATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RELKIND_RELATION@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x28, x8
	b.eq	LBB0_11
; %bb.2:
Lloh3:
	adrp	x8, _RELKIND_VIEW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RELKIND_VIEW@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x28, x8
	b.ne	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w27, [x8]
Lloh9:
	adrp	x8, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x25
	bl	_RelationGetRelationName
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_8
LBB0_4:
Lloh14:
	adrp	x8, _RELKIND_MATVIEW@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RELKIND_MATVIEW@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x28, x8
	b.ne	LBB0_6
; %bb.5:
Lloh17:
	adrp	x8, _ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w27, [x8]
Lloh20:
	adrp	x8, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x25
	bl	_RelationGetRelationName
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_6:
Lloh25:
	adrp	x8, _RELKIND_FOREIGN_TABLE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _RELKIND_FOREIGN_TABLE@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cmp	x28, x8
	b.ne	LBB0_31
; %bb.7:
Lloh28:
	adrp	x8, _ERROR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh30:
	ldr	w27, [x8]
Lloh31:
	adrp	x8, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x25
	bl	_RelationGetRelationName
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh34:
	adrp	x0, l_.str.3@PAGE
Lloh35:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_8:
	bl	_errmsg
Lloh36:
	adrp	x0, l_.str.1@PAGE
Lloh37:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errhint
LBB0_9:
	mov	x1, x0
	mov	x0, x27
LBB0_10:
	bl	_ereport
LBB0_11:
	mov	x0, x26
	mov	w1, #0
	mov	x2, x25
	mov	x3, x24
	mov	x4, x23
	mov	x5, x21
	mov	x6, x19
	bl	_BeginCopy
	mov	x19, x0
	ldr	w0, [x0, #16]
	bl	_MemoryContextSwitchTo
	mov	x21, x0
	cbz	x20, LBB0_15
; %bb.12:
	mov	x0, x20
	bl	_pstrdup
	stp	w22, w0, [x19]
	cbz	w22, LBB0_17
; %bb.13:
Lloh38:
	adrp	x8, _PG_BINARY_W@GOTPAGE
Lloh39:
	ldr	x8, [x8, _PG_BINARY_W@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	bl	_OpenPipeStream
	str	x0, [x19, #8]
	cbnz	x0, LBB0_30
; %bb.14:
Lloh41:
	adrp	x8, _ERROR@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh43:
	ldr	w20, [x8]
	bl	_errcode_for_file_access
	ldr	w8, [x19, #4]
	str	x8, [sp]
Lloh44:
	adrp	x0, l_.str.7@PAGE
Lloh45:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_29
LBB0_15:
	cmp	w22, #0
	cset	w0, eq
	bl	_Assert
Lloh46:
	adrp	x8, _whereToSendOutput@GOTPAGE
Lloh47:
	ldr	x8, [x8, _whereToSendOutput@GOTPAGEOFF]
Lloh48:
	ldr	x8, [x8]
Lloh49:
	adrp	x9, _DestRemote@GOTPAGE
Lloh50:
	ldr	x9, [x9, _DestRemote@GOTPAGEOFF]
Lloh51:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_30
; %bb.16:
Lloh52:
	adrp	x8, _stdout@GOTPAGE
Lloh53:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh54:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	b	LBB0_30
LBB0_17:
	mov	x0, x20
	bl	_is_absolute_path
	cbnz	w0, LBB0_19
; %bb.18:
Lloh55:
	adrp	x8, _ERROR@GOTPAGE
Lloh56:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh57:
	ldr	w20, [x8]
Lloh58:
	adrp	x8, _ERRCODE_INVALID_NAME@GOTPAGE
Lloh59:
	ldr	x8, [x8, _ERRCODE_INVALID_NAME@GOTPAGEOFF]
Lloh60:
	ldr	w0, [x8]
	bl	_errcode
Lloh61:
	adrp	x0, l_.str.8@PAGE
Lloh62:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_19:
Lloh63:
	adrp	x8, _S_IWGRP@GOTPAGE
Lloh64:
	ldr	x8, [x8, _S_IWGRP@GOTPAGEOFF]
Lloh65:
	ldr	w8, [x8]
Lloh66:
	adrp	x9, _S_IWOTH@GOTPAGE
Lloh67:
	ldr	x9, [x9, _S_IWOTH@GOTPAGEOFF]
Lloh68:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_umask
	mov	x20, x0
	bl	_PG_TRY
	ldr	w0, [x19, #4]
Lloh69:
	adrp	x8, _PG_BINARY_W@GOTPAGE
Lloh70:
	ldr	x8, [x8, _PG_BINARY_W@GOTPAGEOFF]
Lloh71:
	ldr	w1, [x8]
	bl	_AllocateFile
	str	x0, [x19, #8]
	bl	_PG_FINALLY
	mov	x0, x20
	bl	_umask
	bl	_PG_END_TRY
	ldr	x0, [x19, #8]
	cbnz	x0, LBB0_25
; %bb.20:
Lloh72:
	adrp	x8, _errno@GOTPAGE
Lloh73:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh74:
	ldr	w22, [x8]
Lloh75:
	adrp	x8, _ERROR@GOTPAGE
Lloh76:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh77:
	ldr	w20, [x8]
	bl	_errcode_for_file_access
	ldr	w8, [x19, #4]
	str	x8, [sp]
Lloh78:
	adrp	x0, l_.str.9@PAGE
Lloh79:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_errmsg
Lloh80:
	adrp	x8, _ENOENT@GOTPAGE
Lloh81:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh82:
	ldr	w8, [x8]
	cmp	w22, w8
	b.eq	LBB0_23
; %bb.21:
Lloh83:
	adrp	x8, _EACCES@GOTPAGE
Lloh84:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
Lloh85:
	ldr	w8, [x8]
	cmp	w22, w8
	b.eq	LBB0_23
; %bb.22:
	mov	w1, #0
	b	LBB0_24
LBB0_23:
Lloh86:
	adrp	x0, l_.str.10@PAGE
Lloh87:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_errhint
	mov	x1, x0
LBB0_24:
	mov	x0, x20
	bl	_ereport
	ldr	x0, [x19, #8]
LBB0_25:
	bl	_fileno
	add	x1, sp, #24
	bl	_fstat
	cbz	x0, LBB0_27
; %bb.26:
Lloh88:
	adrp	x8, _ERROR@GOTPAGE
Lloh89:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh90:
	ldr	w20, [x8]
	bl	_errcode_for_file_access
	ldr	w8, [x19, #4]
	str	x8, [sp]
Lloh91:
	adrp	x0, l_.str.11@PAGE
Lloh92:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_27:
	ldr	w0, [sp, #24]
	bl	_S_ISDIR
	cbz	x0, LBB0_30
; %bb.28:
Lloh93:
	adrp	x8, _ERROR@GOTPAGE
Lloh94:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh95:
	ldr	w20, [x8]
Lloh96:
	adrp	x8, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGE
Lloh97:
	ldr	x8, [x8, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGEOFF]
Lloh98:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w8, [x19, #4]
	str	x8, [sp]
Lloh99:
	adrp	x0, l_.str.12@PAGE
Lloh100:
	add	x0, x0, l_.str.12@PAGEOFF
LBB0_29:
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_30:
	mov	x0, x21
	bl	_MemoryContextSwitchTo
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_31:
Lloh101:
	adrp	x8, _RELKIND_SEQUENCE@GOTPAGE
Lloh102:
	ldr	x8, [x8, _RELKIND_SEQUENCE@GOTPAGEOFF]
Lloh103:
	ldr	x8, [x8]
	cmp	x28, x8
	b.ne	LBB0_33
; %bb.32:
Lloh104:
	adrp	x8, _ERROR@GOTPAGE
Lloh105:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh106:
	ldr	w27, [x8]
Lloh107:
	adrp	x8, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGE
Lloh108:
	ldr	x8, [x8, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGEOFF]
Lloh109:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x25
	bl	_RelationGetRelationName
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh110:
	adrp	x0, l_.str.4@PAGE
Lloh111:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_errmsg
	b	LBB0_9
LBB0_33:
Lloh112:
	adrp	x8, _RELKIND_PARTITIONED_TABLE@GOTPAGE
Lloh113:
	ldr	x8, [x8, _RELKIND_PARTITIONED_TABLE@GOTPAGEOFF]
Lloh114:
	ldr	x27, [x8]
Lloh115:
	adrp	x8, _ERROR@GOTPAGE
Lloh116:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh117:
	ldr	w8, [x8]
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
Lloh118:
	adrp	x8, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGE
Lloh119:
	ldr	x8, [x8, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGEOFF]
Lloh120:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x25
	bl	_RelationGetRelationName
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	x28, x27
	b.ne	LBB0_35
; %bb.34:
	str	x0, [sp]
Lloh121:
	adrp	x0, l_.str.5@PAGE
Lloh122:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_errmsg
Lloh123:
	adrp	x0, l_.str.1@PAGE
Lloh124:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errhint
	b	LBB0_36
LBB0_35:
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	str	x0, [sp]
Lloh125:
	adrp	x0, l_.str.6@PAGE
Lloh126:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_errmsg
LBB0_36:
	mov	x1, x0
	ldr	w0, [sp, #20]                   ; 4-byte Folded Reload
	b	LBB0_10
	.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
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpAdd	Lloh86, Lloh87
	.loh AdrpAdd	Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpAdd	Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpAdd	Lloh110, Lloh111
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh118, Lloh119, Lloh120
	.loh AdrpLdrGotLdr	Lloh115, Lloh116, Lloh117
	.loh AdrpLdrGotLdr	Lloh112, Lloh113, Lloh114
	.loh AdrpAdd	Lloh123, Lloh124
	.loh AdrpAdd	Lloh121, Lloh122
	.loh AdrpAdd	Lloh125, Lloh126
	.cfi_endproc
                                        ; -- End function
	.comm	_RELKIND_RELATION,8,3           ; @RELKIND_RELATION
	.comm	_RELKIND_VIEW,8,3               ; @RELKIND_VIEW
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_WRONG_OBJECT_TYPE,4,2  ; @ERRCODE_WRONG_OBJECT_TYPE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot copy from view \"%s\""

l_.str.1:                               ; @.str.1
	.asciz	"Try the COPY (SELECT ...) TO variant."

	.comm	_RELKIND_MATVIEW,8,3            ; @RELKIND_MATVIEW
l_.str.2:                               ; @.str.2
	.asciz	"cannot copy from materialized view \"%s\""

	.comm	_RELKIND_FOREIGN_TABLE,8,3      ; @RELKIND_FOREIGN_TABLE
l_.str.3:                               ; @.str.3
	.asciz	"cannot copy from foreign table \"%s\""

	.comm	_RELKIND_SEQUENCE,8,3           ; @RELKIND_SEQUENCE
l_.str.4:                               ; @.str.4
	.asciz	"cannot copy from sequence \"%s\""

	.comm	_RELKIND_PARTITIONED_TABLE,8,3  ; @RELKIND_PARTITIONED_TABLE
l_.str.5:                               ; @.str.5
	.asciz	"cannot copy from partitioned table \"%s\""

l_.str.6:                               ; @.str.6
	.asciz	"cannot copy from non-table relation \"%s\""

	.comm	_whereToSendOutput,8,3          ; @whereToSendOutput
	.comm	_DestRemote,8,3                 ; @DestRemote
	.comm	_stdout,8,3                     ; @stdout
	.comm	_PG_BINARY_W,4,2                ; @PG_BINARY_W
l_.str.7:                               ; @.str.7
	.asciz	"could not execute command \"%s\": %m"

	.comm	_ERRCODE_INVALID_NAME,4,2       ; @ERRCODE_INVALID_NAME
l_.str.8:                               ; @.str.8
	.asciz	"relative path not allowed for COPY to file"

	.comm	_S_IWGRP,4,2                    ; @S_IWGRP
	.comm	_S_IWOTH,4,2                    ; @S_IWOTH
	.comm	_errno,4,2                      ; @errno
l_.str.9:                               ; @.str.9
	.asciz	"could not open file \"%s\" for writing: %m"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_EACCES,4,2                     ; @EACCES
l_.str.10:                              ; @.str.10
	.asciz	"COPY TO instructs the PostgreSQL server process to write a file. You may want a client-side facility such as psql's \\copy."

l_.str.11:                              ; @.str.11
	.asciz	"could not stat file \"%s\": %m"

l_.str.12:                              ; @.str.12
	.asciz	"\"%s\" is a directory"

	.no_dead_strip	_BeginCopyTo
.subsections_via_symbols
