	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CheckServerVersionForStreaming ## -- Begin function CheckServerVersionForStreaming
	.p2align	4, 0x90
_CheckServerVersionForStreaming:        ## @CheckServerVersionForStreaming
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_PG_VERSION_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	callq	_PQserverVersion
	cmpl	$90299, %eax                    ## imm = 0x160BB
	jg	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PQparameterStatus
	testq	%rax, %rax
	leaq	L_.str.2(%rip), %rsi
	cmovneq	%rax, %rsi
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_4
LBB0_2:
	movl	%eax, %eax
	imulq	$1374389535, %rax, %rcx         ## imm = 0x51EB851F
	shrq	$37, %rcx
	movslq	%r14d, %rax
	imulq	$1374389535, %rax, %rdx         ## imm = 0x51EB851F
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$37, %rdx
	addl	%eax, %edx
	movl	$1, %eax
	cmpl	%edx, %ecx
	jle	LBB0_5
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PQparameterStatus
	testq	%rax, %rax
	leaq	L_.str.2(%rip), %rsi
	cmovneq	%rax, %rsi
	movq	_PG_VERSION@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.4(%rip), %rdi
LBB0_4:
	callq	_pg_log_error
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PG_VERSION_NUM,4,2             ## @PG_VERSION_NUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"server_version"

L_.str.1:                               ## @.str.1
	.asciz	"incompatible server version %s; client does not support streaming from server versions older than %s"

L_.str.2:                               ## @.str.2
	.asciz	"'unknown'"

L_.str.3:                               ## @.str.3
	.asciz	"9.3"

L_.str.4:                               ## @.str.4
	.asciz	"incompatible server version %s; client does not support streaming from server versions newer than %s"

	.comm	_PG_VERSION,8,3                 ## @PG_VERSION
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CheckServerVersionForStreaming ; -- Begin function CheckServerVersionForStreaming
	.p2align	2
_CheckServerVersionForStreaming:        ; @CheckServerVersionForStreaming
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _PG_VERSION_NUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PG_VERSION_NUM@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	bl	_PQserverVersion
	mov	w8, #24763
	movk	w8, #1, lsl #16
	cmp	w0, w8
	b.gt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_PQparameterStatus
Lloh5:
	adrp	x8, l_.str.2@PAGE
Lloh6:
	add	x8, x8, l_.str.2@PAGEOFF
	cmp	x0, #0
	csel	x1, x8, x0, eq
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh9:
	adrp	x2, l_.str.3@PAGE
Lloh10:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_2:
	mov	w8, #34079
	movk	w8, #20971, lsl #16
	umull	x9, w0, w8
	lsr	x9, x9, #37
	smull	x8, w20, w8
	lsr	x10, x8, #63
	asr	x8, x8, #37
	add	w8, w8, w10
	cmp	w9, w8
	b.le	LBB0_5
; %bb.3:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_PQparameterStatus
Lloh13:
	adrp	x8, l_.str.2@PAGE
Lloh14:
	add	x8, x8, l_.str.2@PAGEOFF
	cmp	x0, #0
	csel	x1, x8, x0, eq
Lloh15:
	adrp	x8, _PG_VERSION@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PG_VERSION@GOTPAGEOFF]
Lloh17:
	ldr	x2, [x8]
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_4:
	bl	_pg_log_error
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	mov	w0, #1
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PG_VERSION_NUM,4,2             ; @PG_VERSION_NUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"server_version"

l_.str.1:                               ; @.str.1
	.asciz	"incompatible server version %s; client does not support streaming from server versions older than %s"

l_.str.2:                               ; @.str.2
	.asciz	"'unknown'"

l_.str.3:                               ; @.str.3
	.asciz	"9.3"

l_.str.4:                               ; @.str.4
	.asciz	"incompatible server version %s; client does not support streaming from server versions newer than %s"

	.comm	_PG_VERSION,8,3                 ; @PG_VERSION
.subsections_via_symbols
