	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pqGetline2                     ## -- Begin function pqGetline2
	.p2align	4, 0x90
_pqGetline2:                            ## @pqGetline2
	.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	%rsi, %r14
	movq	(%rdi), %rax
	movq	_PGINVALID_SOCKET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	_PGASYNC_COPY_OUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.2:
	movl	%edx, %r15d
	movl	$1, %eax
	cmpl	$2, %edx
	jge	LBB0_3
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$1, %r15d
	jle	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rax
	cmpq	24(%rbx), %rax
	jge	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	32(%rbx), %rcx
	leaq	1(%rax), %rdx
	movq	%rdx, 16(%rbx)
	movzbl	(%rcx,%rax), %eax
	cmpb	$10, %al
	je	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movb	%al, (%r14)
	incq	%r14
	decl	%r15d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_pqWait
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_pqReadData
	testq	%rax, %rax
	jns	LBB0_10
LBB0_8:
	movq	_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_12
LBB0_14:
	movb	$0, (%r14)
	movq	_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_13
LBB0_11:
	movl	$1, %eax
	jmp	LBB0_12
LBB0_5:
	xorl	%eax, %eax
LBB0_12:
	movb	$0, (%r14)
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PGINVALID_SOCKET,8,3           ## @PGINVALID_SOCKET
	.comm	_PGASYNC_COPY_OUT,8,3           ## @PGASYNC_COPY_OUT
	.comm	_EOF,4,2                        ## @EOF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pqGetline2                     ; -- Begin function pqGetline2
	.p2align	2
_pqGetline2:                            ; @pqGetline2
	.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
	mov	x19, x1
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PGINVALID_SOCKET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PGINVALID_SOCKET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_11
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0, #8]
Lloh3:
	adrp	x9, _PGASYNC_COPY_OUT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PGASYNC_COPY_OUT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.2:
	mov	x20, x2
	cmp	w2, #2
	b.ge	LBB0_5
LBB0_3:
	mov	w0, #1
	b	LBB0_13
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w20, #1
	b.le	LBB0_3
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x9, [x21, #16]
	cmp	x8, x9
	b.ge	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x21, #32]
	add	x10, x8, #1
	str	x10, [x21, #16]
	ldrb	w8, [x9, x8]
	cmp	w8, #10
	b.eq	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	strb	w8, [x19], #1
	sub	w20, w20, #1
	b	LBB0_4
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #1
	mov	w1, #0
	mov	x2, x21
	bl	_pqWait
	cbnz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_pqReadData
	tbz	x0, #63, LBB0_4
LBB0_10:
Lloh6:
	adrp	x8, _EOF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	LBB0_13
LBB0_11:
	strb	wzr, [x19]
Lloh9:
	adrp	x8, _EOF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	b	LBB0_14
LBB0_12:
	mov	w0, #0
LBB0_13:
	strb	wzr, [x19]
LBB0_14:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PGINVALID_SOCKET,8,3           ; @PGINVALID_SOCKET
	.comm	_PGASYNC_COPY_OUT,8,3           ; @PGASYNC_COPY_OUT
	.comm	_EOF,4,2                        ; @EOF
.subsections_via_symbols
