	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pqGetlineAsync3                ## -- Begin function pqGetlineAsync3
	.p2align	4, 0x90
_pqGetlineAsync3:                       ## @pqGetlineAsync3
	.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, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	_PGASYNC_COPY_OUT@GOTPCREL(%rip), %rcx
	movl	$-1, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_PGASYNC_COPY_BOTH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
LBB0_2:
	movq	%r13, %rdi
	callq	_getCopyDataMessage
	testl	%eax, %eax
	js	LBB0_9
## %bb.3:
	je	LBB0_4
## %bb.5:
	movl	%eax, %r12d
	movslq	12(%r13), %rax
	movslq	8(%r13), %rsi
	addq	%rax, %rsi
	movl	%esi, 8(%r13)
	subl	%eax, %r12d
	addl	$-4, %r12d
	shlq	$2, %rsi
	addq	24(%r13), %rsi
	movq	%r15, %rdi
	cmpl	%r14d, %r12d
	jle	LBB0_6
## %bb.7:
	movl	%r14d, %edx
	callq	_memcpy
	movl	12(%r13), %eax
	addl	%r14d, %eax
	movl	%r14d, %r12d
	jmp	LBB0_8
LBB0_4:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_6:
	movl	%r12d, %edx
	callq	_memcpy
	movl	8(%r13), %eax
	addl	%r12d, %eax
	movl	%eax, 16(%r13)
	xorl	%eax, %eax
LBB0_8:
	movl	%eax, 12(%r13)
	movl	%r12d, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PGASYNC_COPY_OUT,8,3           ## @PGASYNC_COPY_OUT
	.comm	_PGASYNC_COPY_BOTH,8,3          ## @PGASYNC_COPY_BOTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pqGetlineAsync3                ; -- Begin function pqGetlineAsync3
	.p2align	2
_pqGetlineAsync3:                       ; @pqGetlineAsync3
	.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	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_5
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	_getCopyDataMessage
	tbnz	w0, #31, LBB0_5
; %bb.2:
	cbz	w0, LBB0_6
; %bb.3:
	ldp	w9, w8, [x20, #8]
	add	w9, w9, w8
	str	w9, [x20, #8]
	sub	w8, w0, w8
	sub	w22, w8, #4
	ldr	x8, [x20, #24]
	add	x1, x8, w9, sxtw #2
	mov	x0, x21
	cmp	w22, w19
	b.le	LBB0_7
; %bb.4:
	mov	x2, x19
	bl	_memcpy
	ldr	w8, [x20, #12]
	add	w8, w8, w19
	b	LBB0_8
LBB0_5:
	mov	w19, #-1
	b	LBB0_9
LBB0_6:
	mov	w19, #0
	b	LBB0_9
LBB0_7:
	mov	x2, x22
	bl	_memcpy
	mov	w8, #0
	ldr	w9, [x20, #8]
	add	w9, w9, w22
	str	w9, [x20, #16]
	mov	x19, x22
LBB0_8:
	str	w8, [x20, #12]
LBB0_9:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PGASYNC_COPY_OUT,8,3           ; @PGASYNC_COPY_OUT
	.comm	_PGASYNC_COPY_BOTH,8,3          ; @PGASYNC_COPY_BOTH
.subsections_via_symbols
