	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function materializeResult
_materializeResult:                     ## @materializeResult
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	(%rdi), %r13
	movq	(%r13), %rax
	movq	_SFRM_Materialize@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	xorl	%eax, %eax
	callq	_PG_TRY
	movq	%rbx, %rdi
	callq	_PQresultStatus
	movq	_PGRES_COMMAND_OK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	cmpq	%rcx, %rax
	jne	LBB0_2
## %bb.1:
	movl	$1, %r15d
	movl	$1, %edi
	callq	_CreateTemplateTupleDesc
	movq	%rax, %r14
	movq	%rax, -56(%rbp)
	movq	_TEXTOID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	_TupleDescInitEntry
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	cmpl	(%r14), %r15d
	jne	LBB0_8
	jmp	LBB0_9
LBB0_2:
	movq	%rbx, %rdi
	callq	_PQresultStatus
	movq	_PGRES_TUPLES_OK@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_get_call_result_type
	cmpl	$129, %eax
	je	LBB0_6
## %bb.3:
	cmpl	$128, %eax
	jne	LBB0_5
## %bb.4:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_FEATURE_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_6
LBB0_5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_elog
LBB0_6:
	movq	-56(%rbp), %rdi
	callq	_CreateTupleDescCopy
	movq	%rax, -56(%rbp)
	movq	%rbx, %rdi
	callq	_PQntuples
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_PQnfields
	movl	%eax, %r15d
	movq	-56(%rbp), %r14
	cmpl	(%r14), %r15d
	je	LBB0_9
LBB0_8:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_DATATYPE_MISMATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.3(%rip), %rdi
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_9:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_23
## %bb.10:
	movq	-56(%rbp), %rdi
	callq	_TupleDescGetAttInMetadata
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	$-1, %ecx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -88(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_12
## %bb.11:
	movq	%r12, %rdi
	callq	_applyRemoteGucs
	movl	%eax, %ecx
LBB0_12:
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movq	24(%r13), %rax
	movl	(%rax), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r12d
	movq	_work_mem@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r14d, %r14d
	movl	$1, %edi
	xorl	%esi, %esi
	callq	_tuplestore_begin_heap
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, 16(%r13)
	movq	-56(%rbp), %rax
	movq	%rax, 8(%r13)
	movl	%r12d, %edi
	callq	_MemoryContextSwitchTo
	leal	(,%r15,8), %edi
	callq	_palloc
	movq	%rax, %r13
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movl	%r15d, %r15d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %rdi
	callq	_PQcmdStatus
	movq	%rax, (%r13)
LBB0_21:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	%r13, %rsi
	callq	_BuildTupleFromCStrings
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_tuplestore_puttuple
	incl	%r14d
	cmpl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	je	LBB0_22
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -88(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$0, -96(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_21
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	xorl	%r12d, %r12d
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=2
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	callq	_PQgetvalue
LBB0_19:                                ##   in Loop: Header=BB0_16 Depth=2
	movq	%rax, (%r13,%r12,8)
	incq	%r12
	cmpq	%r12, %r15
	je	LBB0_21
LBB0_16:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	callq	_PQgetisnull
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_22:
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_restoreLocalGucs
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_tuplestore_donestoring
LBB0_23:
	xorl	%eax, %eax
	callq	_PG_FINALLY
	movq	%rbx, %rdi
	callq	_PQclear
	xorl	%eax, %eax
	callq	_PG_END_TRY
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SFRM_Materialize,8,3           ## @SFRM_Materialize
	.comm	_PGRES_COMMAND_OK,8,3           ## @PGRES_COMMAND_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"status"

	.comm	_TEXTOID,4,2                    ## @TEXTOID
	.comm	_PGRES_TUPLES_OK,8,3            ## @PGRES_TUPLES_OK
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ## @ERRCODE_FEATURE_NOT_SUPPORTED
L_.str.1:                               ## @.str.1
	.asciz	"function returning record called in context that cannot accept type record"

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

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

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function materializeResult
_materializeResult:                     ; @materializeResult
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x25, x1
	mov	x21, x0
	ldr	x27, [x0]
	ldr	x8, [x27]
Lloh0:
	adrp	x9, _SFRM_Materialize@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SFRM_Materialize@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	bl	_PG_TRY
	mov	x0, x19
	bl	_PQresultStatus
	mov	x20, x0
Lloh3:
	adrp	x8, _PGRES_COMMAND_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PGRES_COMMAND_OK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	w21, #1
	mov	w0, #1
	bl	_CreateTemplateTupleDesc
	mov	x24, x0
	str	x0, [sp, #24]
Lloh6:
	adrp	x8, _TEXTOID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TEXTOID@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #1
	mov	w4, #-1
	mov	w5, #0
	bl	_TupleDescInitEntry
	mov	w22, #1
	b	LBB0_7
LBB0_2:
	mov	x0, x19
	bl	_PQresultStatus
Lloh11:
	adrp	x8, _PGRES_TUPLES_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PGRES_TUPLES_OK@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	bl	_Assert
	add	x2, sp, #24
	mov	x0, x21
	mov	x1, #0
	bl	_get_call_result_type
	cmp	w0, #129
	b.eq	LBB0_6
; %bb.3:
Lloh14:
	adrp	x8, _ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
	cmp	w0, #128
	b.ne	LBB0_5
; %bb.4:
	ldr	w21, [x8]
Lloh16:
	adrp	x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_errcode
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
	b	LBB0_6
LBB0_5:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_elog
LBB0_6:
	ldr	x0, [sp, #24]
	bl	_CreateTupleDescCopy
	str	x0, [sp, #24]
	mov	x0, x19
	bl	_PQntuples
	mov	x22, x0
	mov	x0, x19
	bl	_PQnfields
	mov	x21, x0
	ldr	x24, [sp, #24]
LBB0_7:
	ldr	w8, [x24]
	cmp	w21, w8
	b.eq	LBB0_9
; %bb.8:
Lloh23:
	adrp	x8, _ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w24, [x8]
Lloh26:
	adrp	x8, _ERRCODE_DATATYPE_MISMATCH@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ERRCODE_DATATYPE_MISMATCH@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_errcode
Lloh29:
	adrp	x0, l_.str.3@PAGE
Lloh30:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
LBB0_9:
	cmp	w22, #1
	b.lt	LBB0_24
; %bb.10:
	ldr	x0, [sp, #24]
	bl	_TupleDescGetAttInMetadata
	mov	x24, x0
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	cmp	x20, x8
	b.ne	LBB0_12
; %bb.11:
	mov	w8, #-1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	b	LBB0_13
LBB0_12:
	mov	x0, x25
	bl	_applyRemoteGucs
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
LBB0_13:
	ldr	x8, [x27, #24]
	ldr	w0, [x8]
	bl	_MemoryContextSwitchTo
	mov	x26, x0
Lloh31:
	adrp	x8, _work_mem@GOTPAGE
Lloh32:
	ldr	x8, [x8, _work_mem@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	w0, #1
	mov	w1, #0
	bl	_tuplestore_begin_heap
	mov	x25, x0
	ldr	x8, [sp, #24]
	stp	x8, x0, [x27, #8]
	mov	x0, x26
	bl	_MemoryContextSwitchTo
	lsl	w0, w21, #3
	bl	_palloc
	mov	x26, x0
	mov	w27, #0
	mov	x23, x21
	mov	w21, w21
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x19
	bl	_PQcmdStatus
	str	x0, [x26]
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x24
	mov	x1, x26
	bl	_BuildTupleFromCStrings
	mov	x1, x0
	mov	x0, x25
	bl	_tuplestore_puttuple
	add	w27, w27, #1
	cmp	w27, w22
	b.eq	LBB0_23
LBB0_16:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	cmp	x20, x8
	b.eq	LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	cmp	w23, #1
	b.lt	LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x28, #0
	b	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_21 Depth=2
	mov	x0, x19
	mov	x1, x27
	mov	x2, x28
	bl	_PQgetvalue
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=2
	str	x0, [x26, x28, lsl #3]
	add	x28, x28, #1
	cmp	x21, x28
	b.eq	LBB0_15
LBB0_21:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x27
	mov	x2, x28
	bl	_PQgetisnull
	cbz	x0, LBB0_19
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=2
	mov	x0, #0
	b	LBB0_20
LBB0_23:
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	bl	_restoreLocalGucs
	mov	x0, x25
	bl	_tuplestore_donestoring
LBB0_24:
	bl	_PG_FINALLY
	mov	x0, x19
	bl	_PQclear
	bl	_PG_END_TRY
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_SFRM_Materialize,8,3           ; @SFRM_Materialize
	.comm	_PGRES_COMMAND_OK,8,3           ; @PGRES_COMMAND_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"status"

	.comm	_TEXTOID,4,2                    ; @TEXTOID
	.comm	_PGRES_TUPLES_OK,8,3            ; @PGRES_TUPLES_OK
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ; @ERRCODE_FEATURE_NOT_SUPPORTED
l_.str.1:                               ; @.str.1
	.asciz	"function returning record called in context that cannot accept type record"

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

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

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