	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pqSetenvPoll                   ## -- Begin function pqSetenvPoll
	.p2align	4, 0x90
_pqSetenvPoll:                          ## @pqSetenvPoll
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rdi, %rdi
	je	LBB0_71
## %bb.1:
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	_CONNECTION_BAD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_71
## %bb.2:
	movl	8(%r13), %eax
	addl	$-128, %eax
	cmpl	$8, %eax
	ja	LBB0_9
## %bb.3:
	movl	$149, %ecx
	btl	%eax, %ecx
	jb	LBB0_6
## %bb.4:
	movl	$298, %ecx                      ## imm = 0x12A
	btl	%eax, %ecx
	jb	LBB0_10
## %bb.5:
	movq	_PGRES_POLLING_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_72
LBB0_6:
	movq	%r13, %rdi
	callq	_pqReadData
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movl	$2, %edx
	subl	%ecx, %edx
	testl	%eax, %eax
	movl	$3, %eax
	cmovnsl	%edx, %eax
	cmpl	$2, %eax
	je	LBB0_10
## %bb.7:
	cmpl	$3, %eax
	je	LBB0_70
LBB0_8:
	movq	_PGRES_POLLING_READING@GOTPCREL(%rip), %rax
	jmp	LBB0_72
LBB0_10:
	leaq	LJTI0_0(%rip), %r12
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	_PGRES_COMMAND_OK@GOTPCREL(%rip), %r15
	jmp	LBB0_12
LBB0_64:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	%r13, %rdi
	leaq	L_.str.11(%rip), %rsi
	leaq	L_.str.13(%rip), %rdx
LBB0_65:                                ##   in Loop: Header=BB0_12 Depth=2
	callq	_pqSaveParameterStatus
LBB0_66:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	%r14, %rdi
	callq	_PQclear
LBB0_12:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	8(%r13), %eax
	addl	$-128, %eax
	cmpl	$8, %eax
	ja	LBB0_68
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movslq	(%r12,%rax,4), %rax
	addq	%r12, %rax
	jmpq	*%rax
LBB0_54:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	%r13, %rdi
	callq	_PQisBusy
	testl	%eax, %eax
	jne	LBB0_8
## %bb.55:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%r13, %rdi
	callq	_PQgetResult
	testq	%rax, %rax
	je	LBB0_67
## %bb.56:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_PQresultStatus
	cmpl	(%r15), %eax
	je	LBB0_66
## %bb.57:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%r14, %rdi
	callq	_PQresultStatus
	movq	_PGRES_TUPLES_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_62
## %bb.58:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%r14, %rdi
	callq	_PQntuples
	cmpl	$1, %eax
	jne	LBB0_62
## %bb.59:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_PQgetvalue
	testq	%rax, %rax
	je	LBB0_66
## %bb.60:                              ##   in Loop: Header=BB0_12 Depth=2
	cmpb	$0, (%rax)
	jne	LBB0_61
	jmp	LBB0_66
LBB0_39:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	%r13, %rdi
	callq	_PQisBusy
	testl	%eax, %eax
	jne	LBB0_8
## %bb.40:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%r13, %rdi
	callq	_PQgetResult
	testq	%rax, %rax
	je	LBB0_51
## %bb.41:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_PQresultStatus
	cmpl	(%r15), %eax
	jne	LBB0_42
	jmp	LBB0_66
LBB0_34:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	%r13, %rdi
	callq	_PQisBusy
	testl	%eax, %eax
	jne	LBB0_8
## %bb.35:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%r13, %rdi
	callq	_PQgetResult
	testq	%rax, %rax
	jne	LBB0_32
## %bb.36:                              ##   in Loop: Header=BB0_12 Depth=2
	addq	$16, 32(%r13)
	movl	$133, 8(%r13)
	jmp	LBB0_12
LBB0_21:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	32(%r13), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_29
## %bb.22:                              ##   in Loop: Header=BB0_12 Depth=2
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_28
## %bb.23:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%rax, %r14
	movq	%rax, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_pg_strcasecmp
	movq	32(%r13), %rcx
	movq	8(%rcx), %rdx
	leaq	-160(%rbp), %rbx
	movq	%rbx, %rdi
	testl	%eax, %eax
	je	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_12 Depth=2
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_sprintf
	jmp	LBB0_26
LBB0_30:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	%r13, %rdi
	callq	_PQisBusy
	testl	%eax, %eax
	jne	LBB0_8
## %bb.31:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%r13, %rdi
	callq	_PQgetResult
	testq	%rax, %rax
	je	LBB0_33
LBB0_32:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_PQresultStatus
	movl	%eax, %r14d
	movq	_PGRES_COMMAND_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_PQclear
	cmpl	%r15d, %r14d
	movq	_PGRES_COMMAND_OK@GOTPCREL(%rip), %r15
	je	LBB0_12
	jmp	LBB0_70
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	16(%r13), %rbx
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_pg_strcasecmp
	testl	%eax, %eax
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=2
	leaq	-160(%rbp), %r14
	movq	%r14, %rdi
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_sprintf
	movq	%r14, %rsi
	jmp	LBB0_19
LBB0_29:                                ##   in Loop: Header=BB0_12 Depth=2
	movl	$131, 8(%r13)
	jmp	LBB0_12
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=2
	movl	$133, %ecx
	movl	%ecx, 8(%r13)
	jmp	LBB0_12
LBB0_51:                                ##   in Loop: Header=BB0_12 Depth=2
	movl	$129, 8(%r13)
	jmp	LBB0_12
LBB0_33:                                ##   in Loop: Header=BB0_12 Depth=2
	movl	$133, 8(%r13)
	jmp	LBB0_12
LBB0_62:                                ##   in Loop: Header=BB0_12 Depth=2
	leaq	L_.str.12(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_64
## %bb.63:                              ##   in Loop: Header=BB0_12 Depth=2
	cmpb	$0, (%rax)
	je	LBB0_64
LBB0_61:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	%r13, %rdi
	leaq	L_.str.11(%rip), %rsi
	movq	%rax, %rdx
	jmp	LBB0_65
LBB0_28:                                ##   in Loop: Header=BB0_12 Depth=2
	addq	$16, %rbx
	movq	%rbx, 32(%r13)
	jmp	LBB0_12
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=2
	movups	L_.str.2+14(%rip), %xmm0
	movups	%xmm0, -146(%rbp)
	movups	L_.str.2(%rip), %xmm0
	movaps	%xmm0, -160(%rbp)
	leaq	-160(%rbp), %rsi
LBB0_19:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	%r13, %rdi
	callq	_PQsendQuery
	movl	$135, %ecx
	testl	%eax, %eax
	je	LBB0_70
## %bb.20:                              ##   in Loop: Header=BB0_12 Depth=2
	movl	%ecx, 8(%r13)
	jmp	LBB0_12
LBB0_24:                                ##   in Loop: Header=BB0_12 Depth=2
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_sprintf
LBB0_26:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_PQsendQuery
	testl	%eax, %eax
	je	LBB0_70
## %bb.27:                              ##   in Loop: Header=BB0_12 Depth=2
	movl	$132, 8(%r13)
	jmp	LBB0_12
LBB0_42:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r14, %rdi
	callq	_PQresultStatus
	movq	_PGRES_TUPLES_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_44
## %bb.43:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r14, %rdi
	callq	_PQntuples
	cmpl	$1, %eax
	jne	LBB0_44
## %bb.45:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_PQgetvalue
	testq	%rax, %rax
	je	LBB0_50
## %bb.46:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %r15
	movq	%rax, %rdi
	leaq	L_.str.7(%rip), %rsi
	movl	$11, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_50
## %bb.47:                              ##   in Loop: Header=BB0_11 Depth=1
	addq	$11, %r15
	movq	%r15, %rdi
	movl	$32, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_49
## %bb.48:                              ##   in Loop: Header=BB0_11 Depth=1
	movb	$0, (%rax)
LBB0_49:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.8(%rip), %rsi
	movq	%r15, %rdx
	callq	_pqSaveParameterStatus
LBB0_50:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r14, %rdi
	callq	_PQclear
	jmp	LBB0_11
LBB0_9:
	leaq	28(%r13), %rbx
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_69
LBB0_52:
	movl	$-70300, %eax                   ## imm = 0xFFFEED64
	addl	24(%r13), %eax
	cmpl	$100, %eax
	leaq	L_.str.9(%rip), %rax
	leaq	L_.str.10(%rip), %rsi
	cmovbq	%rax, %rsi
	movq	%r13, %rdi
	callq	_PQsendQuery
	testl	%eax, %eax
	je	LBB0_70
## %bb.53:
	movl	$128, 8(%r13)
	movq	_PGRES_POLLING_READING@GOTPCREL(%rip), %rax
	jmp	LBB0_72
LBB0_37:
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rdi
	callq	_PQsendQuery
	testl	%eax, %eax
	je	LBB0_70
## %bb.38:
	movl	$130, 8(%r13)
	movq	_PGRES_POLLING_READING@GOTPCREL(%rip), %rax
	jmp	LBB0_72
LBB0_68:
	leaq	28(%r13), %rbx
	leaq	L_.str.14(%rip), %rdi
LBB0_69:
	callq	_libpq_gettext
	movl	8(%r13), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_printfPQExpBuffer
LBB0_70:
	movl	$134, 8(%r13)
LBB0_71:
	movq	_PGRES_POLLING_FAILED@GOTPCREL(%rip), %rax
LBB0_72:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_74
## %bb.73:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_67:
	movl	$134, 8(%r13)
	movq	_PGRES_POLLING_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_72
LBB0_44:
	movq	%r14, %rdi
	callq	_PQclear
	jmp	LBB0_70
LBB0_74:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_54, LBB0_54-LJTI0_0
.set L0_0_set_52, LBB0_52-LJTI0_0
.set L0_0_set_39, LBB0_39-LJTI0_0
.set L0_0_set_37, LBB0_37-LJTI0_0
.set L0_0_set_34, LBB0_34-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_68, LBB0_68-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_54
	.long	L0_0_set_52
	.long	L0_0_set_39
	.long	L0_0_set_37
	.long	L0_0_set_34
	.long	L0_0_set_21
	.long	L0_0_set_68
	.long	L0_0_set_30
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_CONNECTION_BAD,8,3             ## @CONNECTION_BAD
	.comm	_PGRES_POLLING_FAILED,4,2       ## @PGRES_POLLING_FAILED
	.comm	_PGRES_POLLING_READING,4,2      ## @PGRES_POLLING_READING
	.comm	_PGRES_POLLING_OK,4,2           ## @PGRES_POLLING_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid setenv state %c, probably indicative of memory corruption\n"

L_.str.1:                               ## @.str.1
	.asciz	"default"

L_.str.2:                               ## @.str.2
	.asciz	"SET client_encoding = DEFAULT"

L_.str.3:                               ## @.str.3
	.asciz	"SET client_encoding = '%.60s'"

L_.str.4:                               ## @.str.4
	.asciz	"SET %s = DEFAULT"

L_.str.5:                               ## @.str.5
	.asciz	"SET %s = '%.60s'"

	.comm	_PGRES_COMMAND_OK,4,2           ## @PGRES_COMMAND_OK
L_.str.6:                               ## @.str.6
	.asciz	"begin; select version(); end"

	.comm	_PGRES_TUPLES_OK,4,2            ## @PGRES_TUPLES_OK
L_.str.7:                               ## @.str.7
	.asciz	"PostgreSQL "

L_.str.8:                               ## @.str.8
	.asciz	"server_version"

L_.str.9:                               ## @.str.9
	.asciz	"begin; select pg_catalog.pg_client_encoding(); end"

L_.str.10:                              ## @.str.10
	.asciz	"select pg_client_encoding()"

L_.str.11:                              ## @.str.11
	.asciz	"client_encoding"

L_.str.12:                              ## @.str.12
	.asciz	"PGCLIENTENCODING"

L_.str.13:                              ## @.str.13
	.asciz	"SQL_ASCII"

L_.str.14:                              ## @.str.14
	.asciz	"invalid state %c, probably indicative of memory corruption\n"

	.comm	_stderr,4,2                     ## @stderr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pqSetenvPoll                   ; -- Begin function pqSetenvPoll
	.p2align	2
_pqSetenvPoll:                          ; @pqSetenvPoll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	cbz	x0, LBB0_67
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _CONNECTION_BAD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CONNECTION_BAD@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_67
; %bb.2:
	ldr	w8, [x19, #8]
	sub	w8, w8, #128
	cmp	w8, #8
	b.hi	LBB0_57
; %bb.3:
	mov	w20, #1
	lsl	w8, w20, w8
	mov	w9, #149
	tst	w8, w9
	b.ne	LBB0_5
; %bb.4:
	mov	w9, #298
	tst	w8, w9
	b.ne	LBB0_7
	b	LBB0_71
LBB0_5:
	mov	x0, x19
	bl	_pqReadData
	mov	w8, #3
	cmp	w0, #0
	cinc	w9, w20, ne
	csel	w8, w8, w9, lt
	cmp	w8, #2
	b.eq	LBB0_7
; %bb.6:
	cmp	w8, #3
	b.eq	LBB0_66
	b	LBB0_63
LBB0_7:
Lloh6:
	adrp	x23, lJTI0_0@PAGE
Lloh7:
	add	x23, x23, lJTI0_0@PAGEOFF
Lloh8:
	adrp	x22, _PGRES_COMMAND_OK@GOTPAGE
Lloh9:
	ldr	x22, [x22, _PGRES_COMMAND_OK@GOTPAGEOFF]
Lloh10:
	adrp	x27, _PGRES_TUPLES_OK@GOTPAGE
Lloh11:
	ldr	x27, [x27, _PGRES_TUPLES_OK@GOTPAGEOFF]
	mov	w21, #133
Lloh12:
	adrp	x25, l_.str.1@PAGE
Lloh13:
	add	x25, x25, l_.str.1@PAGEOFF
Lloh14:
	adrp	x20, l_.str.2@PAGE
Lloh15:
	add	x20, x20, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
Lloh16:
	adrp	x1, l_.str.11@PAGE
Lloh17:
	add	x1, x1, l_.str.11@PAGEOFF
Lloh18:
	adrp	x2, l_.str.13@PAGE
Lloh19:
	add	x2, x2, l_.str.13@PAGEOFF
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	bl	_pqSaveParameterStatus
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x24
	bl	_PQclear
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #8]
	sub	w8, w8, #128
	cmp	w8, #8
	b.hi	LBB0_64
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	adr	x9, LBB0_13
	ldrb	w10, [x23, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	bl	_PQisBusy
	cbnz	w0, LBB0_63
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	bl	_PQgetResult
	cbz	x0, LBB0_70
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x24, x0
	bl	_PQresultStatus
	ldr	w8, [x22]
	cmp	w0, w8
	b.eq	LBB0_10
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x24
	bl	_PQresultStatus
	ldr	w8, [x27]
	cmp	w0, w8
	b.ne	LBB0_47
; %bb.17:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x24
	bl	_PQntuples
	cmp	w0, #1
	b.ne	LBB0_47
; %bb.18:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x24
	mov	w1, #0
	mov	w2, #0
	bl	_PQgetvalue
	cbz	x0, LBB0_10
; %bb.19:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x2, x0
	ldrb	w8, [x0]
	cbnz	w8, LBB0_49
	b	LBB0_10
LBB0_20:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	bl	_PQisBusy
	cbnz	w0, LBB0_63
; %bb.21:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	bl	_PQgetResult
	cbz	x0, LBB0_45
; %bb.22:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x24, x0
	bl	_PQresultStatus
	ldr	w8, [x22]
	cmp	w0, w8
	b.eq	LBB0_10
; %bb.23:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x24
	bl	_PQresultStatus
	ldr	w8, [x27]
	cmp	w0, w8
	b.ne	LBB0_72
; %bb.24:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x24
	bl	_PQntuples
	cmp	w0, #1
	b.ne	LBB0_72
; %bb.25:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x24
	mov	w1, #0
	mov	w2, #0
	bl	_PQgetvalue
	cbz	x0, LBB0_10
; %bb.26:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x26, x0
Lloh20:
	adrp	x1, l_.str.7@PAGE
Lloh21:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w2, #11
	bl	_strncmp
	cbnz	w0, LBB0_10
; %bb.27:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x26, x26, #11
	mov	x0, x26
	mov	w1, #32
	bl	_strchr
	cbz	x0, LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_11 Depth=1
	strb	wzr, [x0]
LBB0_29:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
Lloh22:
	adrp	x1, l_.str.8@PAGE
Lloh23:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x2, x26
	b	LBB0_9
LBB0_30:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	bl	_PQisBusy
	cbnz	w0, LBB0_63
; %bb.31:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	bl	_PQgetResult
	cbnz	x0, LBB0_39
; %bb.32:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x19, #32]
	add	x8, x8, #16
	str	x8, [x19, #32]
	str	w21, [x19, #8]
	b	LBB0_11
LBB0_33:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x26, [x19, #32]
	ldr	x0, [x26]
	cbz	x0, LBB0_43
; %bb.34:                               ;   in Loop: Header=BB0_11 Depth=1
	bl	_getenv
	cbz	x0, LBB0_50
; %bb.35:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x24, x0
	mov	x1, x25
	bl	_pg_strcasecmp
	ldr	x8, [x19, #32]
	ldr	x8, [x8, #8]
	cbz	w0, LBB0_54
; %bb.36:                               ;   in Loop: Header=BB0_11 Depth=1
	stp	x8, x24, [sp]
	add	x0, sp, #16
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_55
LBB0_37:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	bl	_PQisBusy
	cbnz	w0, LBB0_63
; %bb.38:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	bl	_PQgetResult
	cbz	x0, LBB0_46
LBB0_39:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x24, x0
	bl	_PQresultStatus
	mov	x26, x0
	ldr	w28, [x22]
	mov	x0, x24
	bl	_PQclear
	cmp	w26, w28
	b.eq	LBB0_11
	b	LBB0_66
LBB0_40:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x24, [x19, #16]
	cbz	x24, LBB0_44
; %bb.41:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x24
	mov	x1, x25
	bl	_pg_strcasecmp
	cbz	w0, LBB0_51
; %bb.42:                               ;   in Loop: Header=BB0_11 Depth=1
	str	x24, [sp]
	add	x0, sp, #16
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_sprintf
	b	LBB0_52
LBB0_43:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w8, #131
	str	w8, [x19, #8]
	b	LBB0_11
LBB0_44:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w8, #133
	str	w8, [x19, #8]
	b	LBB0_11
LBB0_45:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w8, #129
	str	w8, [x19, #8]
	b	LBB0_11
LBB0_46:                                ;   in Loop: Header=BB0_11 Depth=1
	str	w21, [x19, #8]
	b	LBB0_11
LBB0_47:                                ;   in Loop: Header=BB0_11 Depth=1
Lloh28:
	adrp	x0, l_.str.12@PAGE
Lloh29:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_8
; %bb.48:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x2, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_8
LBB0_49:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
Lloh30:
	adrp	x1, l_.str.11@PAGE
Lloh31:
	add	x1, x1, l_.str.11@PAGEOFF
	b	LBB0_9
LBB0_50:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x8, x26, #16
	str	x8, [x19, #32]
	b	LBB0_11
LBB0_51:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	q0, [x20]
	str	q0, [sp, #16]
	ldur	q0, [x20, #14]
	stur	q0, [sp, #30]
LBB0_52:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x1, sp, #16
	mov	x0, x19
	bl	_PQsendQuery
	cbz	w0, LBB0_66
; %bb.53:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w8, #135
	str	w8, [x19, #8]
	b	LBB0_11
LBB0_54:                                ;   in Loop: Header=BB0_11 Depth=1
	str	x8, [sp]
	add	x0, sp, #16
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_55:                                ;   in Loop: Header=BB0_11 Depth=1
	bl	_sprintf
	add	x1, sp, #16
	mov	x0, x19
	bl	_PQsendQuery
	cbz	w0, LBB0_66
; %bb.56:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w8, #132
	str	w8, [x19, #8]
	b	LBB0_11
LBB0_57:
	add	x20, x19, #28
Lloh34:
	adrp	x0, l_.str@PAGE
Lloh35:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_65
LBB0_58:
	ldr	w8, [x19, #24]
	sub	w8, w8, #17, lsl #12            ; =69632
	sub	w8, w8, #668
Lloh36:
	adrp	x9, l_.str.10@PAGE
Lloh37:
	add	x9, x9, l_.str.10@PAGEOFF
Lloh38:
	adrp	x10, l_.str.9@PAGE
Lloh39:
	add	x10, x10, l_.str.9@PAGEOFF
	cmp	w8, #100
	csel	x1, x10, x9, lo
	mov	x0, x19
	bl	_PQsendQuery
	cbz	w0, LBB0_66
; %bb.59:
	mov	w8, #128
	b	LBB0_62
LBB0_60:
Lloh40:
	adrp	x1, l_.str.6@PAGE
Lloh41:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_PQsendQuery
	cbz	w0, LBB0_66
; %bb.61:
	mov	w8, #130
LBB0_62:
	str	w8, [x19, #8]
LBB0_63:
Lloh42:
	adrp	x8, _PGRES_POLLING_READING@GOTPAGE
Lloh43:
	ldr	x8, [x8, _PGRES_POLLING_READING@GOTPAGEOFF]
	b	LBB0_68
LBB0_64:
	add	x20, x19, #28
Lloh44:
	adrp	x0, l_.str.14@PAGE
Lloh45:
	add	x0, x0, l_.str.14@PAGEOFF
LBB0_65:
	bl	_libpq_gettext
	mov	x1, x0
	ldr	w2, [x19, #8]
	mov	x0, x20
	bl	_printfPQExpBuffer
LBB0_66:
	mov	w8, #134
	str	w8, [x19, #8]
LBB0_67:
Lloh46:
	adrp	x8, _PGRES_POLLING_FAILED@GOTPAGE
Lloh47:
	ldr	x8, [x8, _PGRES_POLLING_FAILED@GOTPAGEOFF]
LBB0_68:
	ldr	w0, [x8]
	ldur	x8, [x29, #-88]
Lloh48:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh49:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_73
; %bb.69:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_70:
	mov	w8, #134
	str	w8, [x19, #8]
LBB0_71:
Lloh51:
	adrp	x8, _PGRES_POLLING_OK@GOTPAGE
Lloh52:
	ldr	x8, [x8, _PGRES_POLLING_OK@GOTPAGEOFF]
	b	LBB0_68
LBB0_72:
	mov	x0, x24
	bl	_PQclear
	b	LBB0_66
LBB0_73:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh51, Lloh52
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_58-LBB0_13)>>2
	.byte	(LBB0_20-LBB0_13)>>2
	.byte	(LBB0_60-LBB0_13)>>2
	.byte	(LBB0_30-LBB0_13)>>2
	.byte	(LBB0_33-LBB0_13)>>2
	.byte	(LBB0_64-LBB0_13)>>2
	.byte	(LBB0_37-LBB0_13)>>2
	.byte	(LBB0_40-LBB0_13)>>2
                                        ; -- End function
	.comm	_CONNECTION_BAD,8,3             ; @CONNECTION_BAD
	.comm	_PGRES_POLLING_FAILED,4,2       ; @PGRES_POLLING_FAILED
	.comm	_PGRES_POLLING_READING,4,2      ; @PGRES_POLLING_READING
	.comm	_PGRES_POLLING_OK,4,2           ; @PGRES_POLLING_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid setenv state %c, probably indicative of memory corruption\n"

l_.str.1:                               ; @.str.1
	.asciz	"default"

l_.str.2:                               ; @.str.2
	.asciz	"SET client_encoding = DEFAULT"

l_.str.3:                               ; @.str.3
	.asciz	"SET client_encoding = '%.60s'"

l_.str.4:                               ; @.str.4
	.asciz	"SET %s = DEFAULT"

l_.str.5:                               ; @.str.5
	.asciz	"SET %s = '%.60s'"

	.comm	_PGRES_COMMAND_OK,4,2           ; @PGRES_COMMAND_OK
l_.str.6:                               ; @.str.6
	.asciz	"begin; select version(); end"

	.comm	_PGRES_TUPLES_OK,4,2            ; @PGRES_TUPLES_OK
l_.str.7:                               ; @.str.7
	.asciz	"PostgreSQL "

l_.str.8:                               ; @.str.8
	.asciz	"server_version"

l_.str.9:                               ; @.str.9
	.asciz	"begin; select pg_catalog.pg_client_encoding(); end"

l_.str.10:                              ; @.str.10
	.asciz	"select pg_client_encoding()"

l_.str.11:                              ; @.str.11
	.asciz	"client_encoding"

l_.str.12:                              ; @.str.12
	.asciz	"PGCLIENTENCODING"

l_.str.13:                              ; @.str.13
	.asciz	"SQL_ASCII"

l_.str.14:                              ; @.str.14
	.asciz	"invalid state %c, probably indicative of memory corruption\n"

	.comm	_stderr,4,2                     ; @stderr
.subsections_via_symbols
