	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PQgetCopyData                  ## -- Begin function PQgetCopyData
	.p2align	4, 0x90
_PQgetCopyData:                         ## @PQgetCopyData
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, (%rsi)
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_PGASYNC_COPY_OUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.2:
	movq	_PGASYNC_COPY_BOTH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.3:
	addq	$12, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_libpq_gettext
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_printfPQExpBuffer
LBB0_4:
	movl	$-2, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	8(%rbx), %edi
	callq	_PG_PROTOCOL_MAJOR
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	addq	$8, %rsp
	cmpl	$3, %eax
	jl	LBB0_6
## %bb.7:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pqGetCopyData3                 ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pqGetCopyData2                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PGASYNC_COPY_OUT,8,3           ## @PGASYNC_COPY_OUT
	.comm	_PGASYNC_COPY_BOTH,8,3          ## @PGASYNC_COPY_BOTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no COPY in progress\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PQgetCopyData                  ; -- Begin function PQgetCopyData
	.p2align	2
_PQgetCopyData:                         ; @PQgetCopyData
	.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
	str	xzr, [x1]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PGASYNC_COPY_OUT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PGASYNC_COPY_OUT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _PGASYNC_COPY_BOTH@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PGASYNC_COPY_BOTH@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
; %bb.2:
	mov	x19, x2
	mov	x20, x1
	ldr	w0, [x21, #8]
	bl	_PG_PROTOCOL_MAJOR
	cmp	w0, #3
	b.lt	LBB0_6
; %bb.3:
	mov	x0, x21
	mov	x1, x20
	mov	x2, 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	_pqGetCopyData3
LBB0_4:
	add	x19, x21, #12
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_libpq_gettext
	mov	x1, x0
	mov	x0, x19
	bl	_printfPQExpBuffer
LBB0_5:
	mov	w0, #-2
	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
	ret
LBB0_6:
	mov	x0, x21
	mov	x1, x20
	mov	x2, 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	_pqGetCopyData2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PGASYNC_COPY_OUT,8,3           ; @PGASYNC_COPY_OUT
	.comm	_PGASYNC_COPY_BOTH,8,3          ; @PGASYNC_COPY_BOTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no COPY in progress\n"

.subsections_via_symbols
