	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ReadEndOfStreamingResult
_ReadEndOfStreamingResult:              ## @ReadEndOfStreamingResult
	.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	%rdx, %r14
	movq	%rdi, %rbx
	callq	_PQnfields
	cmpl	$2, %eax
	jl	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_PQntuples
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_atoi
	movl	%eax, (%r14)
	movl	$1, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_PQgetvalue
	leaq	L_.str.1(%rip), %rsi
	leaq	-32(%rbp), %rdx
	leaq	-28(%rbp), %rcx
	movl	%eax, %edi
	callq	_sscanf
	cmpl	$2, %eax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_PQgetvalue
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pg_log_error
	xorl	%r14d, %r14d
	jmp	LBB0_5
LBB0_2:
	movq	%rbx, %rdi
	callq	_PQntuples
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_PQnfields
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%r15d, %esi
	movl	%eax, %edx
	movl	$1, %ecx
	movl	$2, %r8d
	xorl	%eax, %eax
	callq	_pg_log_error
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unexpected result set after end-of-timeline: got %d rows and %d fields, expected %d rows and %d fields"

L_.str.1:                               ## @.str.1
	.asciz	"%X/%X"

L_.str.2:                               ## @.str.2
	.asciz	"could not parse next timeline's starting point \"%s\""

	.no_dead_strip	_ReadEndOfStreamingResult
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ReadEndOfStreamingResult
_ReadEndOfStreamingResult:              ; @ReadEndOfStreamingResult
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x20, x2
	mov	x19, x0
	bl	_PQnfields
	cmp	w0, #2
	b.lt	LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_PQntuples
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_PQgetvalue
	bl	_atoi
	str	w0, [x20]
	mov	w20, #1
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	bl	_PQgetvalue
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	sub	x2, x29, #20
	add	x3, sp, #24
	bl	_sscanf
	cmp	w0, #2
	b.eq	LBB0_6
; %bb.3:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	bl	_PQgetvalue
	mov	x1, x0
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_PQntuples
	mov	x20, x0
	mov	x0, x19
	bl	_PQnfields
                                        ; kill: def $w0 killed $w0 def $x0
	mov	w9, #2
	mov	w8, #1
	stp	x8, x9, [sp, #8]
	str	x0, [sp]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
LBB0_5:
	bl	_pg_log_error
	mov	w20, #0
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unexpected result set after end-of-timeline: got %d rows and %d fields, expected %d rows and %d fields"

l_.str.1:                               ; @.str.1
	.asciz	"%X/%X"

l_.str.2:                               ; @.str.2
	.asciz	"could not parse next timeline's starting point \"%s\""

	.no_dead_strip	_ReadEndOfStreamingResult
.subsections_via_symbols
