	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function storeRow
_storeRow:                              ## @storeRow
	.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
	movl	%edx, %ebx
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_PQnfields
	movl	%eax, %r15d
	testl	%ebx, %ebx
	je	LBB0_13
## %bb.1:
	movq	32(%r14), %rax
	movq	(%rax), %r12
	cmpq	$0, 16(%r14)
	je	LBB0_3
## %bb.2:
	movq	16(%r14), %rdi
	callq	_tuplestore_end
LBB0_3:
	movq	$0, 16(%r14)
	movq	32(%r14), %rdi
	leaq	-48(%rbp), %rdx
	xorl	%esi, %esi
	callq	_get_call_result_type
	cmpl	$129, %eax
	je	LBB0_7
## %bb.4:
	cmpl	$128, %eax
	jne	LBB0_6
## %bb.5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_FEATURE_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_7
LBB0_6:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_elog
LBB0_7:
	movq	-48(%rbp), %rdi
	callq	_CreateTupleDescCopy
	movq	%rax, -48(%rbp)
	cmpl	(%rax), %r15d
	je	LBB0_9
## %bb.8:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_DATATYPE_MISMATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.2(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	movq	-48(%rbp), %rax
LBB0_9:
	movq	%rax, %rdi
	callq	_TupleDescGetAttInMetadata
	movl	%eax, 24(%r14)
	movq	16(%r12), %rax
	movl	(%rax), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %ebx
	movq	_work_mem@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %edi
	xorl	%esi, %esi
	callq	_tuplestore_begin_heap
	movq	%rax, 16(%r14)
	movq	16(%r14), %rax
	movq	%rax, 8(%r12)
	movq	-48(%rbp), %rax
	movq	%rax, (%r12)
	movl	%ebx, %edi
	callq	_MemoryContextSwitchTo
	movq	%r13, %rdi
	callq	_PQntuples
	testl	%eax, %eax
	je	LBB0_20
## %bb.10:
	cmpq	$0, (%r14)
	je	LBB0_12
## %bb.11:
	movq	(%r14), %rdi
	callq	_pfree
LBB0_12:
	leal	(,%r15,8), %edi
	callq	_palloc
	movq	%rax, (%r14)
LBB0_13:
	movq	%r13, %rdi
	callq	_PQntuples
	xorl	%edi, %edi
	cmpl	$1, %eax
	sete	%dil
	callq	_Assert
	movl	8(%r14), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r12d
	testl	%r15d, %r15d
	jle	LBB0_19
## %bb.14:
	movl	%r15d, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_PQgetvalue
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %r15
	je	LBB0_19
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_PQgetisnull
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_19:
	movl	24(%r14), %edi
	movq	(%r14), %rsi
	callq	_BuildTupleFromCStrings
	movq	16(%r14), %rdi
	movl	%eax, %esi
	callq	_tuplestore_puttuple
	movl	%r12d, %edi
	callq	_MemoryContextSwitchTo
	movl	8(%r14), %edi
	callq	_MemoryContextReset
LBB0_20:
	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
	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ## @ERRCODE_FEATURE_NOT_SUPPORTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"function returning record called in context that cannot accept type record"

L_.str.1:                               ## @.str.1
	.asciz	"return type must be a row type"

	.comm	_ERRCODE_DATATYPE_MISMATCH,4,2  ## @ERRCODE_DATATYPE_MISMATCH
L_.str.2:                               ## @.str.2
	.asciz	"remote query result rowtype does not match the specified FROM clause rowtype"

	.comm	_work_mem,4,2                   ## @work_mem
	.no_dead_strip	_storeRow
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function storeRow
_storeRow:                              ; @storeRow
	.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	x22, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_PQnfields
	mov	x21, x0
	cbz	w22, LBB0_13
; %bb.1:
	ldr	x8, [x19, #32]
	ldr	x23, [x8]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x0, [x19, #16]
	bl	_tuplestore_end
LBB0_3:
	str	xzr, [x19, #16]
	ldr	x0, [x19, #32]
	add	x2, sp, #8
	mov	x1, #0
	bl	_get_call_result_type
	cmp	w0, #129
	b.eq	LBB0_7
; %bb.4:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
	cmp	w0, #128
	b.ne	LBB0_6
; %bb.5:
	ldr	w22, [x8]
Lloh2:
	adrp	x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_errcode
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
	b	LBB0_7
LBB0_6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
LBB0_7:
	ldr	x0, [sp, #8]
	bl	_CreateTupleDescCopy
	str	x0, [sp, #8]
	ldr	w8, [x0]
	cmp	w21, w8
	b.eq	LBB0_9
; %bb.8:
Lloh9:
	adrp	x8, _ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w22, [x8]
Lloh12:
	adrp	x8, _ERRCODE_DATATYPE_MISMATCH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERRCODE_DATATYPE_MISMATCH@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_errcode
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
	ldr	x0, [sp, #8]
LBB0_9:
	bl	_TupleDescGetAttInMetadata
	str	w0, [x19, #24]
	ldr	x8, [x23, #16]
	ldr	w0, [x8]
	bl	_MemoryContextSwitchTo
	mov	x22, x0
Lloh17:
	adrp	x8, _work_mem@GOTPAGE
Lloh18:
	ldr	x8, [x8, _work_mem@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	w0, #1
	mov	w1, #0
	bl	_tuplestore_begin_heap
	str	x0, [x19, #16]
	ldr	x8, [x19, #16]
	ldr	x9, [sp, #8]
	stp	x9, x8, [x23]
	mov	x0, x22
	bl	_MemoryContextSwitchTo
	mov	x0, x20
	bl	_PQntuples
	cbz	w0, LBB0_20
; %bb.10:
	ldr	x8, [x19]
	cbz	x8, LBB0_12
; %bb.11:
	ldr	x0, [x19]
	bl	_pfree
LBB0_12:
	lsl	w0, w21, #3
	bl	_palloc
	str	x0, [x19]
LBB0_13:
	mov	x0, x20
	bl	_PQntuples
	cmp	w0, #1
	cset	w0, eq
	bl	_Assert
	ldr	w0, [x19, #8]
	bl	_MemoryContextSwitchTo
	mov	x22, x0
	cmp	w21, #1
	b.lt	LBB0_19
; %bb.14:
	mov	x23, #0
	mov	w21, w21
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x20
	mov	w1, #0
	mov	x2, x23
	bl	_PQgetvalue
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	x8, [x19]
	str	x0, [x8, x23, lsl #3]
	add	x23, x23, #1
	cmp	x21, x23
	b.eq	LBB0_19
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #0
	mov	x2, x23
	bl	_PQgetisnull
	cbz	x0, LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, #0
	b	LBB0_16
LBB0_19:
	ldr	w0, [x19, #24]
	ldr	x1, [x19]
	bl	_BuildTupleFromCStrings
	mov	x1, x0
	ldr	x0, [x19, #16]
	bl	_tuplestore_puttuple
	mov	x0, x22
	bl	_MemoryContextSwitchTo
	ldr	w0, [x19, #8]
	bl	_MemoryContextReset
LBB0_20:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ; @ERRCODE_FEATURE_NOT_SUPPORTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"function returning record called in context that cannot accept type record"

l_.str.1:                               ; @.str.1
	.asciz	"return type must be a row type"

	.comm	_ERRCODE_DATATYPE_MISMATCH,4,2  ; @ERRCODE_DATATYPE_MISMATCH
l_.str.2:                               ; @.str.2
	.asciz	"remote query result rowtype does not match the specified FROM clause rowtype"

	.comm	_work_mem,4,2                   ; @work_mem
	.no_dead_strip	_storeRow
.subsections_via_symbols
