	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pqGetCopyData2                 ## -- Begin function pqGetCopyData2
	.p2align	4, 0x90
_pqGetCopyData2:                        ## @pqGetCopyData2
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movabsq	$4294967296, %r15               ## imm = 0x100000000
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movq	8(%r14), %rax
	movq	16(%r14), %rcx
	movq	%rax, (%r14)
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	movq	%rax, %rdx
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rcx, %rdx
	jge	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	24(%r14), %rdi
	leaq	1(%rdx), %rsi
	movq	%rsi, (%r14)
	addq	%r15, %rbx
	incl	%r13d
	cmpb	$10, (%rdi,%rdx)
	movq	%rsi, %rdx
	jne	LBB0_2
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	testl	%r12d, %r12d
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_pqWait
	movl	$-2, %r13d
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_pqReadData
	testq	%rax, %rax
	jns	LBB0_1
	jmp	LBB0_14
LBB0_4:
	cmpl	$3, %r13d
	jne	LBB0_7
## %bb.5:
	addq	%rax, %rdi
	leaq	L_.str(%rip), %rsi
	movl	$3, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	leal	1(%r13), %edi
	callq	_malloc
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	24(%r14), %rsi
	addq	8(%r14), %rsi
	movq	%rax, %rdi
	movl	%r13d, %edx
	callq	_memcpy
	movq	(%r15), %rax
	sarq	$32, %rbx
	movb	$0, (%rax,%rbx)
	movq	(%r14), %rax
	movq	%rax, 8(%r14)
	jmp	LBB0_14
LBB0_8:
	addq	$32, %r14
	leaq	L_.str.1(%rip), %rdi
	callq	_libpq_gettext
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_printfPQExpBuffer
	movl	$-2, %r13d
	jmp	LBB0_14
LBB0_6:
	movq	(%r14), %rax
	movq	%rax, 8(%r14)
	movq	_PGASYNC_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r14)
	movl	$-1, %r13d
LBB0_14:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	xorl	%r13d, %r13d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\\.\n"

	.comm	_PGASYNC_BUSY,4,2               ## @PGASYNC_BUSY
L_.str.1:                               ## @.str.1
	.asciz	"out of memory\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pqGetCopyData2                 ; -- Begin function pqGetCopyData2
	.p2align	2
_pqGetCopyData2:                        ; @pqGetCopyData2
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	mov	x24, #4294967296
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
	mov	x23, #0
	mov	x20, #0
	ldp	x8, x9, [x19, #8]
	str	x8, [x19]
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x11, x8, x20
	cmp	x11, x9
	b.ge	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=2
	ldr	x10, [x19, #24]
	add	x11, x11, #1
	str	x11, [x19]
	add	x11, x10, x8
	ldrb	w11, [x11, x20]
	add	x20, x20, #1
	add	x23, x23, x24
	cmp	w11, #10
	b.ne	LBB0_2
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	cbnz	w22, LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1
	mov	w1, #0
	mov	x2, x19
	bl	_pqWait
	cbnz	x0, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_pqReadData
	tbz	x0, #63, LBB0_1
	b	LBB0_12
LBB0_7:
	cmp	w20, #3
	b.ne	LBB0_9
; %bb.8:
	add	x0, x10, x8
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #3
	bl	_strncmp
	cbz	x0, LBB0_13
LBB0_9:
	add	w0, w20, #1
	bl	_malloc
	str	x0, [x21]
	cbz	x0, LBB0_11
; %bb.10:
	ldr	x8, [x19, #24]
	ldr	x9, [x19, #8]
	add	x1, x8, x9
	mov	x2, x20
	bl	_memcpy
	ldr	x8, [x21]
	asr	x9, x23, #32
	strb	wzr, [x8, x9]
	ldr	x8, [x19]
	str	x8, [x19, #8]
	b	LBB0_14
LBB0_11:
	add	x19, x19, #32
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_libpq_gettext
	mov	x1, x0
	mov	x0, x19
	bl	_printfPQExpBuffer
LBB0_12:
	mov	w20, #-2
	b	LBB0_14
LBB0_13:
	ldr	x8, [x19]
	str	x8, [x19, #8]
Lloh4:
	adrp	x8, _PGASYNC_BUSY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PGASYNC_BUSY@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x19, #36]
	mov	w20, #-1
LBB0_14:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_15:
	mov	w20, #0
	b	LBB0_14
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\\.\n"

	.comm	_PGASYNC_BUSY,4,2               ; @PGASYNC_BUSY
l_.str.1:                               ; @.str.1
	.asciz	"out of memory\n"

.subsections_via_symbols
