	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function run_simple_query
_run_simple_query:                      ## @run_simple_query
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_conn@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_PQexec
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_PQresultStatus
	movq	_PGRES_TUPLES_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_PQresultErrorMessage
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_pg_fatal
LBB0_2:
	movq	%r15, %rdi
	callq	_PQnfields
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.3:
	movq	%r15, %rdi
	callq	_PQntuples
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_PQgetisnull
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pg_fatal
LBB0_6:
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_pg_strdup
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_PQclear
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_conn,4,2                       ## @conn
	.comm	_PGRES_TUPLES_OK,8,3            ## @PGRES_TUPLES_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error running query (%s) in source server: %s"

L_.str.1:                               ## @.str.1
	.asciz	"unexpected result set from query"

	.no_dead_strip	_run_simple_query
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function run_simple_query
_run_simple_query:                      ; @run_simple_query
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
Lloh0:
	adrp	x8, _conn@GOTPAGE
Lloh1:
	ldr	x8, [x8, _conn@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_PQexec
	mov	x19, x0
	bl	_PQresultStatus
Lloh3:
	adrp	x8, _PGRES_TUPLES_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PGRES_TUPLES_OK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_PQresultErrorMessage
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x20, x0, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pg_fatal
LBB0_2:
	mov	x0, x19
	bl	_PQnfields
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_PQntuples
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_PQgetisnull
	cbz	x0, LBB0_6
LBB0_5:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pg_fatal
LBB0_6:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_PQgetvalue
	bl	_pg_strdup
	mov	x20, x0
	mov	x0, x19
	bl	_PQclear
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_conn,4,2                       ; @conn
	.comm	_PGRES_TUPLES_OK,8,3            ; @PGRES_TUPLES_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error running query (%s) in source server: %s"

l_.str.1:                               ; @.str.1
	.asciz	"unexpected result set from query"

	.no_dead_strip	_run_simple_query
.subsections_via_symbols
