	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function libpqrcv_identify_system
_libpqrcv_identify_system:              ## @libpqrcv_identify_system
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_libpqrcv_PQexec
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_PQresultStatus
	movq	_PGRES_TUPLES_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_PQclear
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%r15), %edi
	callq	_PQerrorMessage
	movl	%eax, %edi
	callq	_pchomp
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movq	%rbx, %rdi
	callq	_PQnfields
	cmpl	$3, %eax
	jl	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_PQntuples
	cmpl	$1, %eax
	je	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	callq	_PQntuples
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_PQnfields
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_PQclear
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	leaq	L_.str.3(%rip), %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	$3, %ecx
	movl	$1, %r8d
	callq	_errdetail
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_5:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_pstrdup
	movq	%rax, %r15
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_pg_strtoint32
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	callq	_PQclear
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IDENTIFY_SYSTEM"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"Could not identify system: got %d rows and %d fields, expected %d rows and %d or more fields."

	.no_dead_strip	_libpqrcv_identify_system
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function libpqrcv_identify_system
_libpqrcv_identify_system:              ; @libpqrcv_identify_system
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x21, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_libpqrcv_PQexec
	mov	x20, x0
	bl	_PQresultStatus
Lloh2:
	adrp	x8, _PGRES_TUPLES_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PGRES_TUPLES_OK@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x23, _ERROR@GOTPAGE
Lloh6:
	ldr	x23, [x23, _ERROR@GOTPAGEOFF]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_PQclear
	ldr	w22, [x23]
	ldr	w0, [x21]
	bl	_PQerrorMessage
	bl	_pchomp
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
LBB0_2:
	mov	x0, x20
	bl	_PQnfields
	cmp	w0, #3
	b.lt	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_PQntuples
	cmp	w0, #1
	b.eq	LBB0_5
LBB0_4:
	mov	x0, x20
	bl	_PQntuples
	mov	x21, x0
	mov	x0, x20
	bl	_PQnfields
	mov	x22, x0
	mov	x0, x20
	bl	_PQclear
	ldr	w23, [x23]
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x21
	mov	x2, x22
	mov	w3, #3
	mov	w4, #1
	bl	_errdetail
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
LBB0_5:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	bl	_PQgetvalue
	bl	_pstrdup
	mov	x21, x0
	mov	x0, x20
	mov	w1, #0
	mov	w2, #1
	bl	_PQgetvalue
	bl	_pg_strtoint32
	str	w0, [x19]
	mov	x0, x20
	bl	_PQclear
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IDENTIFY_SYSTEM"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"Could not identify system: got %d rows and %d fields, expected %d rows and %d or more fields."

	.no_dead_strip	_libpqrcv_identify_system
.subsections_via_symbols
