	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function storeQueryResult
_storeQueryResult:                      ## @storeQueryResult
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_PQsendQuery
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_PQerrorMessage
	movl	%eax, %edi
	callq	_pchomp
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_elog
LBB0_2:
	movq	%r14, %rdi
	callq	_PQsetSingleRowMode
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
LBB0_4:
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	movq	%r14, %rdi
	callq	_PQgetResult
	movq	%rax, 8(%rbx)
	cmpq	$0, 8(%rbx)
	je	LBB0_5
## %bb.6:
	movl	$-1, %r15d
	movl	$1, %r12d
	movq	_PGRES_SINGLE_TUPLE@GOTPCREL(%rip), %r13
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rbx), %rdi
	callq	_PQclear
	movq	8(%rbx), %rax
	movq	%rax, (%rbx)
	movl	$1, %r12d
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	$0, 8(%rbx)
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	movq	%r14, %rdi
	callq	_PQgetResult
	movq	%rax, 8(%rbx)
	cmpq	$0, 8(%rbx)
	je	LBB0_17
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rdi
	callq	_PQresultStatus
	cmpq	(%r13), %rax
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	testl	%r12d, %r12d
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	testl	%r15d, %r15d
	jns	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	callq	_applyRemoteGucs
	movl	%eax, %r15d
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rbx), %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_storeRow
	movq	8(%rbx), %rdi
	callq	_PQclear
	xorl	%r12d, %r12d
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	testl	%r12d, %r12d
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rbx), %rdi
	callq	_PQresultStatus
	movq	_PGRES_TUPLES_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rbx), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_storeRow
	jmp	LBB0_15
LBB0_5:
	movl	$-1, %r15d
LBB0_17:
	movl	%r15d, %edi
	callq	_restoreLocalGucs
	movq	(%rbx), %rax
	movq	$0, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not send query: %s"

L_.str.1:                               ## @.str.1
	.asciz	"failed to set single-row mode for dblink query"

	.comm	_PGRES_SINGLE_TUPLE,8,3         ## @PGRES_SINGLE_TUPLE
	.comm	_PGRES_TUPLES_OK,8,3            ## @PGRES_TUPLES_OK
	.no_dead_strip	_storeQueryResult
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function storeQueryResult
_storeQueryResult:                      ; @storeQueryResult
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	mov	x1, x2
	bl	_PQsendQuery
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_PQerrorMessage
	bl	_pchomp
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_elog
LBB0_2:
	mov	x0, x20
	bl	_PQsetSingleRowMode
	cbnz	w0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
LBB0_4:
	bl	_CHECK_FOR_INTERRUPTS
	mov	x0, x20
	bl	_PQgetResult
	str	x0, [x19, #8]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_16
; %bb.5:
	mov	w21, #-1
	mov	w22, #1
Lloh10:
	adrp	x23, _PGRES_SINGLE_TUPLE@GOTPAGE
Lloh11:
	ldr	x23, [x23, _PGRES_SINGLE_TUPLE@GOTPAGEOFF]
Lloh12:
	adrp	x24, _PGRES_TUPLES_OK@GOTPAGE
Lloh13:
	ldr	x24, [x24, _PGRES_TUPLES_OK@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x19]
	bl	_PQclear
	ldr	x8, [x19, #8]
	str	x8, [x19]
	mov	w22, #1
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	str	xzr, [x19, #8]
	bl	_CHECK_FOR_INTERRUPTS
	mov	x0, x20
	bl	_PQgetResult
	str	x0, [x19, #8]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_17
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #8]
	bl	_PQresultStatus
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	cbz	w22, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	tbz	w21, #31, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	bl	_applyRemoteGucs
	mov	x21, x0
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x1, [x19, #8]
	mov	x0, x19
	mov	x2, x22
	bl	_storeRow
	ldr	x0, [x19, #8]
	bl	_PQclear
	mov	w22, #0
	b	LBB0_7
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	cbz	w22, LBB0_6
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x19, #8]
	bl	_PQresultStatus
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x1, [x19, #8]
	mov	x0, x19
	mov	w2, #1
	bl	_storeRow
	b	LBB0_6
LBB0_16:
	mov	w21, #-1
LBB0_17:
	mov	x0, x21
	bl	_restoreLocalGucs
	ldr	x0, [x19]
	str	xzr, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not send query: %s"

l_.str.1:                               ; @.str.1
	.asciz	"failed to set single-row mode for dblink query"

	.comm	_PGRES_SINGLE_TUPLE,8,3         ; @PGRES_SINGLE_TUPLE
	.comm	_PGRES_TUPLES_OK,8,3            ; @PGRES_TUPLES_OK
	.no_dead_strip	_storeQueryResult
.subsections_via_symbols
