	.file	"extr_libpq_fetch.c_run_simple_query.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"error running query (%s) in source server: %s"
	.align 8
.LC1:
	.string	"unexpected result set from query"
	.text
	.p2align 4
	.type	run_simple_query, @function
run_simple_query:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rsi, rdi
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR conn[rip]
	call	PQexec@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	PQresultStatus@PLT
	cmp	rax, QWORD PTR PGRES_TUPLES_OK[rip]
	je	.L2
	mov	rdi, rbp
	call	PQresultErrorMessage@PLT
	mov	rsi, r12
	lea	rdi, .LC0[rip]
	mov	edx, eax
	xor	eax, eax
	call	pg_fatal@PLT
.L2:
	mov	rdi, rbp
	call	PQnfields@PLT
	cmp	eax, 1
	je	.L3
.L5:
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	pg_fatal@PLT
.L4:
	xor	edx, edx
	xor	esi, esi
	mov	rdi, rbp
	call	PQgetvalue@PLT
	mov	edi, eax
	call	pg_strdup@PLT
	mov	rdi, rbp
	mov	r12, rax
	call	PQclear@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rdi, rbp
	call	PQntuples@PLT
	cmp	eax, 1
	jne	.L5
	xor	edx, edx
	xor	esi, esi
	mov	rdi, rbp
	call	PQgetisnull@PLT
	test	rax, rax
	jne	.L5
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	run_simple_query, .-run_simple_query
	.comm	conn,4,4
	.comm	PGRES_TUPLES_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_libpq_fetch.c_run_simple_query.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"error running query (%s) in source server: %s\000"
	.align	2
.LC1:
	.ascii	"unexpected result set from query\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	run_simple_query, %function
run_simple_query:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L8
	push	{r4, r5, r6, lr}
	mov	r1, r0
	mov	r5, r0
	ldr	r0, [r3]
	bl	PQexec
	mov	r4, r0
	bl	PQresultStatus
	ldr	r3, .L8+4
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L2
	mov	r0, r4
	bl	PQresultErrorMessage
	mov	r1, r5
	mov	r2, r0
	ldr	r0, .L8+8
	bl	pg_fatal
.L2:
	mov	r0, r4
	bl	PQnfields
	cmp	r0, #1
	beq	.L3
.L5:
	ldr	r0, .L8+12
	bl	pg_fatal
.L4:
	mov	r2, #0
	mov	r0, r4
	mov	r1, r2
	bl	PQgetvalue
	bl	pg_strdup
	mov	r3, r0
	mov	r0, r4
	mov	r4, r3
	bl	PQclear
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L3:
	mov	r0, r4
	bl	PQntuples
	cmp	r0, #1
	bne	.L5
	mov	r2, #0
	mov	r0, r4
	mov	r1, r2
	bl	PQgetisnull
	cmp	r0, #0
	bne	.L5
	b	.L4
.L9:
	.align	2
.L8:
	.word	conn
	.word	PGRES_TUPLES_OK
	.word	.LC0
	.word	.LC1
	.size	run_simple_query, .-run_simple_query
	.comm	conn,4,4
	.comm	PGRES_TUPLES_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
