	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function libpqrcv_readtimelinehistoryfile
_libpqrcv_readtimelinehistoryfile:      ## @libpqrcv_readtimelinehistoryfile
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%edi, %edi
	cmpl	$0, 4(%r13)
	sete	%dil
	callq	_Assert
	leaq	L_.str(%rip), %rdx
	leaq	-112(%rbp), %r14
	movq	%r14, %rdi
	movl	$64, %esi
	movl	%ebx, %ecx
	callq	_snprintf
	movl	(%r13), %edi
	movq	%r14, %rsi
	callq	_libpqrcv_PQexec
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_PQresultStatus
	movq	_PGRES_TUPLES_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_PQclear
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%r13), %edi
	callq	_PQerrorMessage
	movl	%eax, %edi
	callq	_pchomp
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movq	%r15, %rdi
	callq	_PQnfields
	cmpl	$2, %eax
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_PQntuples
	cmpl	$1, %eax
	je	LBB0_5
LBB0_4:
	movq	%r15, %rdi
	callq	_PQntuples
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_PQnfields
	movl	%eax, %r13d
	movq	%r15, %rdi
	callq	_PQclear
	movq	_ERROR@GOTPCREL(%rip), %rax
	movq	%r12, %rbx
	movl	(%rax), %r12d
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	leaq	L_.str.3(%rip), %rdi
	movl	%r14d, %esi
	movl	%r13d, %edx
	callq	_errdetail
	movl	%r12d, %edi
	movq	%rbx, %r12
	movl	%eax, %esi
	callq	_ereport
LBB0_5:
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_pstrdup
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_PQgetlength
	movl	%eax, (%r12)
	movl	%eax, %edi
	callq	_palloc
	movq	%rax, %rbx
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	%rbx, (%rax)
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_PQgetvalue
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_memcpy
	movq	%r15, %rdi
	callq	_PQclear
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TIMELINE_HISTORY %u"

	.comm	_PGRES_TUPLES_OK,8,3            ## @PGRES_TUPLES_OK
	.comm	_ERROR,4,2                      ## @ERROR
L_.str.1:                               ## @.str.1
	.asciz	"could not receive timeline history file from the primary server: %s"

L_.str.2:                               ## @.str.2
	.asciz	"invalid response from primary server"

L_.str.3:                               ## @.str.3
	.asciz	"Expected 1 tuple with 2 fields, got %d tuples with %d fields."

	.no_dead_strip	_libpqrcv_readtimelinehistoryfile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function libpqrcv_readtimelinehistoryfile
_libpqrcv_readtimelinehistoryfile:      ; @libpqrcv_readtimelinehistoryfile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x4
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	ldr	w8, [x0, #4]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w1, #64
	mov	x3, x21
	bl	_snprintf
	ldr	w0, [x23]
	add	x1, sp, #8
	bl	_libpqrcv_PQexec
	mov	x21, x0
	bl	_PQresultStatus
Lloh5:
	adrp	x8, _PGRES_TUPLES_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PGRES_TUPLES_OK@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x25, _ERROR@GOTPAGE
Lloh9:
	ldr	x25, [x25, _ERROR@GOTPAGEOFF]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_PQclear
	ldr	w24, [x25]
	ldr	w0, [x23]
	bl	_PQerrorMessage
	bl	_pchomp
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
LBB0_2:
	mov	x0, x21
	bl	_PQnfields
	cmp	w0, #2
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_PQntuples
	cmp	w0, #1
	b.eq	LBB0_5
LBB0_4:
	mov	x0, x21
	bl	_PQntuples
	mov	x23, x0
	mov	x0, x21
	bl	_PQnfields
	mov	x24, x0
	mov	x0, x21
	bl	_PQclear
	ldr	w25, [x25]
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x23
	mov	x2, x24
	bl	_errdetail
	mov	x1, x0
	mov	x0, x25
	bl	_ereport
LBB0_5:
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	bl	_PQgetvalue
	bl	_pstrdup
	str	x0, [x22]
	mov	x0, x21
	mov	w1, #0
	mov	w2, #1
	bl	_PQgetlength
	str	w0, [x19]
	bl	_palloc
	mov	x22, x0
	str	x0, [x20]
	mov	x0, x21
	mov	w1, #0
	mov	w2, #1
	bl	_PQgetvalue
	mov	x1, x0
	ldr	w2, [x19]
	mov	x0, x22
	bl	_memcpy
	mov	x0, x21
	bl	_PQclear
	ldr	x8, [sp, #72]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TIMELINE_HISTORY %u"

	.comm	_PGRES_TUPLES_OK,8,3            ; @PGRES_TUPLES_OK
	.comm	_ERROR,4,2                      ; @ERROR
l_.str.1:                               ; @.str.1
	.asciz	"could not receive timeline history file from the primary server: %s"

l_.str.2:                               ; @.str.2
	.asciz	"invalid response from primary server"

l_.str.3:                               ; @.str.3
	.asciz	"Expected 1 tuple with 2 fields, got %d tuples with %d fields."

	.no_dead_strip	_libpqrcv_readtimelinehistoryfile
.subsections_via_symbols
