	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pqGetline3                     ## -- Begin function pqGetline3
	.p2align	4, 0x90
_pqGetline3:                            ## @pqGetline3
	.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, %rbx
	movq	(%rdi), %rax
	movq	_PGINVALID_SOCKET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.1:
	movl	%edx, %r15d
	movq	8(%rbx), %rax
	movq	_PGASYNC_COPY_OUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_PGASYNC_COPY_BOTH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
LBB0_3:
	cmpq	$0, 24(%rbx)
	je	LBB0_4
LBB0_15:
	addq	$16, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_libpq_gettext
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_printfPQExpBuffer
LBB0_8:
	movb	$0, (%r14)
	movq	_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	decl	%r15d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_PQgetlineAsync
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 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_5 Depth=1
	movq	%rbx, %rdi
	callq	_pqReadData
	testq	%rax, %rax
	jns	LBB0_5
	jmp	LBB0_8
LBB0_9:
	js	LBB0_10
## %bb.11:
	leal	-1(%rax), %ecx
	cmpb	$10, (%r14,%rcx)
	jne	LBB0_13
## %bb.12:
	movb	$0, (%r14,%rcx)
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcpy
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_13:
	movl	%eax, %eax
	movb	$0, (%r14,%rax)
	movl	$1, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_PGINVALID_SOCKET,8,3           ## @PGINVALID_SOCKET
	.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	"PQgetline: not doing text COPY OUT\n"

	.comm	_EOF,4,2                        ## @EOF
L_.str.1:                               ## @.str.1
	.asciz	"\\."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pqGetline3                     ; -- Begin function pqGetline3
	.p2align	2
_pqGetline3:                            ; @pqGetline3
	.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
	mov	x20, x0
	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_3
; %bb.1:
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x9, _PGASYNC_COPY_OUT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PGASYNC_COPY_OUT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _PGASYNC_COPY_BOTH@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PGASYNC_COPY_BOTH@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_6
LBB0_3:
	add	x20, x20, #16
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_libpq_gettext
	mov	x1, x0
	mov	x0, x20
	bl	_printfPQExpBuffer
LBB0_4:
	strb	wzr, [x19]
Lloh11:
	adrp	x8, _EOF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
LBB0_5:
	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:
	sub	w21, w2, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_PQgetlineAsync
	cbnz	w0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #1
	mov	w1, #0
	mov	x2, x20
	bl	_pqWait
	cbnz	x0, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	bl	_pqReadData
	tbz	x0, #63, LBB0_7
	b	LBB0_4
LBB0_10:
	tbnz	w0, #31, LBB0_13
; %bb.11:
	sub	w8, w0, #1
	ldrb	w9, [x19, x8]
	cmp	w9, #10
	b.ne	LBB0_14
; %bb.12:
	mov	w0, #0
	strb	wzr, [x19, x8]
	b	LBB0_5
LBB0_13:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_strcpy
	mov	w0, #0
	b	LBB0_5
LBB0_14:
	strb	wzr, [x19, w0, uxtw]
	mov	w0, #1
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_PGINVALID_SOCKET,8,3           ; @PGINVALID_SOCKET
	.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	"PQgetline: not doing text COPY OUT\n"

	.comm	_EOF,4,2                        ; @EOF
l_.str.1:                               ; @.str.1
	.asciz	"\\."

.subsections_via_symbols
