	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dumpTableData_copy
_dumpTableData_copy:                    ## @dumpTableData_copy
	.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
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	8(%rsi), %rbx
	movq	(%rbx), %r15
	xorl	%eax, %eax
	callq	_createPQExpBuffer
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_createPQExpBuffer
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_GetConnection
	movq	%rax, %r14
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdx
	callq	_pg_log_info
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_fmtCopyColumnList
	movq	%rax, %r15
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	cmpq	$0, (%r13)
	je	LBB0_5
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_appendPQExpBufferStr
	movq	%r15, %rdi
	callq	_strlen
	cmpl	$3, %eax
	jl	LBB0_3
## %bb.2:
	incq	%r15
	movq	%rbx, %r13
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_appendPQExpBufferStr
	movq	(%rbx), %rax
	movslq	8(%rbx), %rcx
	movq	%r13, %rbx
	movb	$32, -1(%rcx,%rax)
	jmp	LBB0_4
LBB0_5:
	movq	%rbx, %rdi
	callq	_fmtQualifiedDumpable
	leaq	L_.str.4(%rip), %rsi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	%eax, %edx
	movq	%r15, %rcx
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str.2(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_appendPQExpBufferStr
LBB0_4:
	movq	%rbx, %rdi
	callq	_fmtQualifiedDumpable
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	leaq	L_.str.3(%rip), %rsi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	%eax, %edx
LBB0_6:
	callq	_appendPQExpBuffer
	movq	(%r13), %rsi
	movq	_PGRES_COPY_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_ExecuteSqlQuery
	movq	%rax, %rdi
	callq	_PQclear
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_destroyPQExpBuffer
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_PQgetCopyData
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_11
## %bb.7:
	leaq	-56(%rbp), %r15
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_PQgetCopyData
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_WriteData
	movq	-56(%rbp), %rdi
	callq	_PQfreemem
	jmp	LBB0_10
LBB0_11:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_archprintf
	cmpl	$-2, %ebx
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_13
## %bb.12:
	leaq	L_.str.6(%rip), %rdi
	movq	%r15, %rsi
	callq	_pg_log_error
	movq	%r14, %rdi
	callq	_PQerrorMessage
	leaq	L_.str.7(%rip), %rdi
	movq	%rax, %rsi
	callq	_pg_log_error
	movq	(%r13), %rsi
	leaq	L_.str.8(%rip), %rdi
	callq	_pg_log_error
	movl	$1, %edi
	callq	_exit_nicely
LBB0_13:
	movq	%r14, %rdi
	callq	_PQgetResult
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_PQresultStatus
	movq	_PGRES_COMMAND_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.14:
	leaq	L_.str.9(%rip), %rdi
	movq	%r15, %rsi
	callq	_pg_log_error
	movq	%r14, %rdi
	callq	_PQerrorMessage
	leaq	L_.str.7(%rip), %rdi
	movq	%rax, %rsi
	callq	_pg_log_error
	movq	(%r13), %rsi
	leaq	L_.str.8(%rip), %rdi
	callq	_pg_log_error
	movl	$1, %edi
	callq	_exit_nicely
LBB0_15:
	movq	%rbx, %rdi
	callq	_PQclear
	movq	%r14, %rdi
	callq	_PQgetResult
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	leaq	L_.str.10(%rip), %rdi
	movq	%r15, %rsi
	callq	_pg_log_warning
LBB0_17:
	movq	%r13, %rdi
	callq	_destroyPQExpBuffer
	movl	$1, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dumping contents of table \"%s.%s\""

L_.str.1:                               ## @.str.1
	.asciz	"COPY (SELECT "

L_.str.2:                               ## @.str.2
	.asciz	"* "

L_.str.3:                               ## @.str.3
	.asciz	"FROM %s %s) TO stdout;"

L_.str.4:                               ## @.str.4
	.asciz	"COPY %s %s TO stdout;"

	.comm	_PGRES_COPY_OUT,4,2             ## @PGRES_COPY_OUT
L_.str.5:                               ## @.str.5
	.asciz	"\\.\n\n\n"

L_.str.6:                               ## @.str.6
	.asciz	"Dumping the contents of table \"%s\" failed: PQgetCopyData() failed."

L_.str.7:                               ## @.str.7
	.asciz	"Error message from server: %s"

L_.str.8:                               ## @.str.8
	.asciz	"The command was: %s"

	.comm	_PGRES_COMMAND_OK,8,3           ## @PGRES_COMMAND_OK
L_.str.9:                               ## @.str.9
	.asciz	"Dumping the contents of table \"%s\" failed: PQgetResult() failed."

L_.str.10:                              ## @.str.10
	.asciz	"unexpected extra results during COPY of table \"%s\""

	.no_dead_strip	_dumpTableData_copy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dumpTableData_copy
_dumpTableData_copy:                    ; @dumpTableData_copy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x24, x1
	mov	x22, x0
	ldr	x25, [x1, #8]
	ldr	x20, [x25]
	bl	_createPQExpBuffer
	mov	x19, x0
	bl	_createPQExpBuffer
	mov	x23, x0
	mov	x0, x22
	bl	_GetConnection
	mov	x21, x0
	ldr	x8, [x25, #8]
	ldr	w1, [x8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_pg_log_info
	mov	x0, x25
	mov	x1, x23
	bl	_fmtCopyColumnList
	mov	x26, x0
	ldr	x8, [x24]
	cbz	x8, LBB0_3
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_appendPQExpBufferStr
	mov	x0, x26
	bl	_strlen
	cmp	w0, #3
	b.lt	LBB0_4
; %bb.2:
	add	x1, x26, #1
	mov	x0, x19
	bl	_appendPQExpBufferStr
	ldr	x8, [x19]
	ldrsw	x9, [x19, #8]
	add	x8, x9, x8
	mov	w9, #32
	sturb	w9, [x8, #-1]
	b	LBB0_5
LBB0_3:
	mov	x0, x25
	bl	_fmtQualifiedDumpable
	mov	x2, x0
Lloh4:
	adrp	x1, l_.str.4@PAGE
Lloh5:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x3, x26
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_appendPQExpBufferStr
LBB0_5:
	mov	x0, x25
	bl	_fmtQualifiedDumpable
	mov	x2, x0
	ldr	x3, [x24]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
LBB0_6:
	bl	_appendPQExpBuffer
	ldr	x1, [x19]
Lloh10:
	adrp	x8, _PGRES_COPY_OUT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PGRES_COPY_OUT@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_ExecuteSqlQuery
	bl	_PQclear
	mov	x0, x23
	bl	_destroyPQExpBuffer
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #0
	bl	_PQgetCopyData
	mov	x23, x0
	tbnz	w0, #31, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x1, [sp, #8]
	cbz	x1, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	mov	x2, x23
	bl	_WriteData
	ldr	x0, [sp, #8]
	bl	_PQfreemem
	b	LBB0_7
LBB0_10:
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x22
	bl	_archprintf
	cmn	w23, #2
	b.ne	LBB0_12
; %bb.11:
Lloh15:
	adrp	x0, l_.str.6@PAGE
Lloh16:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x20
	bl	_pg_log_error
	mov	x0, x21
	bl	_PQerrorMessage
	mov	x1, x0
Lloh17:
	adrp	x0, l_.str.7@PAGE
Lloh18:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_pg_log_error
	ldr	x1, [x19]
Lloh19:
	adrp	x0, l_.str.8@PAGE
Lloh20:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_pg_log_error
	mov	w0, #1
	bl	_exit_nicely
LBB0_12:
	mov	x0, x21
	bl	_PQgetResult
	mov	x22, x0
	bl	_PQresultStatus
Lloh21:
	adrp	x8, _PGRES_COMMAND_OK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PGRES_COMMAND_OK@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_14
; %bb.13:
Lloh24:
	adrp	x0, l_.str.9@PAGE
Lloh25:
	add	x0, x0, l_.str.9@PAGEOFF
	mov	x1, x20
	bl	_pg_log_error
	mov	x0, x21
	bl	_PQerrorMessage
	mov	x1, x0
Lloh26:
	adrp	x0, l_.str.7@PAGE
Lloh27:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_pg_log_error
	ldr	x1, [x19]
Lloh28:
	adrp	x0, l_.str.8@PAGE
Lloh29:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_pg_log_error
	mov	w0, #1
	bl	_exit_nicely
LBB0_14:
	mov	x0, x22
	bl	_PQclear
	mov	x0, x21
	bl	_PQgetResult
	cbz	x0, LBB0_16
; %bb.15:
Lloh30:
	adrp	x0, l_.str.10@PAGE
Lloh31:
	add	x0, x0, l_.str.10@PAGEOFF
	mov	x1, x20
	bl	_pg_log_warning
LBB0_16:
	mov	x0, x19
	bl	_destroyPQExpBuffer
	mov	w0, #1
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dumping contents of table \"%s.%s\""

l_.str.1:                               ; @.str.1
	.asciz	"COPY (SELECT "

l_.str.2:                               ; @.str.2
	.asciz	"* "

l_.str.3:                               ; @.str.3
	.asciz	"FROM %s %s) TO stdout;"

l_.str.4:                               ; @.str.4
	.asciz	"COPY %s %s TO stdout;"

	.comm	_PGRES_COPY_OUT,4,2             ; @PGRES_COPY_OUT
l_.str.5:                               ; @.str.5
	.asciz	"\\.\n\n\n"

l_.str.6:                               ; @.str.6
	.asciz	"Dumping the contents of table \"%s\" failed: PQgetCopyData() failed."

l_.str.7:                               ; @.str.7
	.asciz	"Error message from server: %s"

l_.str.8:                               ; @.str.8
	.asciz	"The command was: %s"

	.comm	_PGRES_COMMAND_OK,8,3           ; @PGRES_COMMAND_OK
l_.str.9:                               ; @.str.9
	.asciz	"Dumping the contents of table \"%s\" failed: PQgetResult() failed."

l_.str.10:                              ; @.str.10
	.asciz	"unexpected extra results during COPY of table \"%s\""

	.no_dead_strip	_dumpTableData_copy
.subsections_via_symbols
