	.file	"extr_fe-connect.c_PQsetClientEncoding.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"auto"
.LC1:
	.string	"client_encoding"
	.text
	.p2align 4
	.globl	PQsetClientEncoding
	.type	PQsetClientEncoding, @function
PQsetClientEncoding:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 152
	.cfi_def_cfa_offset 192
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 136[rsp], rax
	xor	eax, eax
	test	rdi, rdi
	je	.L4
	mov	rax, QWORD PTR CONNECTION_OK[rip]
	mov	rbp, rdi
	cmp	QWORD PTR [rdi], rax
	jne	.L4
	mov	r12, rsi
	test	rsi, rsi
	je	.L4
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	call	strcmp@PLT
	test	rax, rax
	je	.L15
.L5:
	mov	rdi, r12
	call	strlen@PLT
	cdqe
	add	rax, 28
	cmp	rax, 128
	ja	.L4
	mov	r13, rsp
	mov	rdx, r12
	lea	rsi, query.1958[rip]
	mov	rdi, r13
	call	sprintf@PLT
	mov	rsi, r13
	mov	rdi, rbp
	call	PQexec@PLT
	mov	r13, rax
	test	rax, rax
	je	.L4
	mov	rax, QWORD PTR PGRES_COMMAND_OK[rip]
	mov	r14d, -1
	cmp	QWORD PTR 0[r13], rax
	je	.L16
.L6:
	mov	rdi, r13
	call	PQclear@PLT
.L1:
	mov	rax, QWORD PTR 136[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 152
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	esi, 1
	xor	edi, edi
	call	pg_get_encoding_from_locale@PLT
	mov	edi, eax
	call	pg_encoding_to_char@PLT
	mov	r12, rax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edi, DWORD PTR 8[rbp]
	xor	r14d, r14d
	call	PG_PROTOCOL_MAJOR@PLT
	cmp	eax, 2
	jg	.L6
	mov	rdx, r12
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	pqSaveParameterStatus@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	mov	r14d, -1
	jmp	.L1
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	PQsetClientEncoding, .-PQsetClientEncoding
	.section	.rodata
	.align 16
	.type	query.1958, @object
	.size	query.1958, 28
query.1958:
	.string	"set client_encoding to '%s'"
	.comm	PGRES_COMMAND_OK,8,8
	.comm	CONNECTION_OK,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_fe-connect.c_PQsetClientEncoding.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"auto\000"
	.align	2
.LC1:
	.ascii	"client_encoding\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	PQsetClientEncoding
	.syntax unified
	.arm
	.fpu softvfp
	.type	PQsetClientEncoding, %function
PQsetClientEncoding:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L18
	sub	sp, sp, #136
	subs	r5, r0, #0
	ldr	r3, [r3]
	str	r3, [sp, #132]
	mov	r3,#0
	beq	.L4
	clz	r3, r1
	ldr	r2, .L18+4
	mov	r4, r1
	ldr	r2, [r2]
	ldr	r1, [r5]
	lsr	r3, r3, #5
	cmp	r1, r2
	orrne	r3, r3, #1
	cmp	r3, #0
	bne	.L4
	mov	r0, r4
	ldr	r1, .L18+8
	bl	strcmp
	cmp	r0, #0
	beq	.L15
.L5:
	mov	r0, r4
	bl	strlen
	add	r0, r0, #28
	cmp	r0, #128
	bhi	.L4
	mov	r2, r4
	ldr	r1, .L18+12
	add	r0, sp, #4
	bl	sprintf
	mov	r0, r5
	add	r1, sp, #4
	bl	PQexec
	subs	r6, r0, #0
	beq	.L4
	ldr	r3, .L18+16
	ldr	r2, [r6]
	ldr	r3, [r3]
	cmp	r2, r3
	mvnne	r4, #0
	beq	.L16
.L6:
	mov	r0, r6
	bl	PQclear
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #132]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	mov	r0, r4
	add	sp, sp, #136
	@ sp needed
	pop	{r4, r5, r6, pc}
.L15:
	mov	r1, #1
	bl	pg_get_encoding_from_locale
	bl	pg_encoding_to_char
	mov	r4, r0
	b	.L5
.L16:
	ldr	r0, [r5, #4]
	bl	PG_PROTOCOL_MAJOR
	cmp	r0, #2
	movgt	r4, #0
	bgt	.L6
	mov	r2, r4
	mov	r0, r5
	ldr	r1, .L18+20
	bl	pqSaveParameterStatus
	mov	r4, #0
	b	.L6
.L4:
	mvn	r4, #0
	b	.L1
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC2
	.word	CONNECTION_OK
	.word	.LC0
	.word	.LANCHOR0
	.word	PGRES_COMMAND_OK
	.word	.LC1
	.size	PQsetClientEncoding, .-PQsetClientEncoding
	.comm	PGRES_COMMAND_OK,4,4
	.comm	CONNECTION_OK,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	query.4242, %object
	.size	query.4242, 28
query.4242:
	.ascii	"set client_encoding to '%s'\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
