	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exec_stmt_return_query
_exec_stmt_return_query:                ## @exec_stmt_return_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	cmpl	$0, 20(%rdi)
	je	LBB0_1
## %bb.2:
	cmpq	$0, 8(%r14)
	je	LBB0_3
LBB0_4:
	movq	16(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.5:
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_exec_run_select
	jmp	LBB0_7
LBB0_1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_SYNTAX_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	cmpq	$0, 8(%r14)
	jne	LBB0_4
LBB0_3:
	movq	%r14, %rdi
	callq	_exec_init_tuple_store
	jmp	LBB0_4
LBB0_6:
	xorl	%edi, %edi
	cmpq	$0, 8(%r15)
	setne	%dil
	callq	_Assert
	movq	8(%r15), %rsi
	movl	(%r15), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_exec_dynquery_with_params
	movq	%rax, -48(%rbp)
LBB0_7:
	movq	%r14, %rdi
	callq	_get_eval_mcontext
	movl	%eax, %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	-48(%rbp), %rax
	movl	(%rax), %ebx
	movl	16(%r14), %r12d
	leaq	L_.str.1(%rip), %rdi
	callq	_gettext_noop
	movl	%ebx, %edi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_convert_tuples_by_position
	movq	%rax, %r12
	movq	-48(%rbp), %rdi
	movl	$1, %esi
	movl	$50, %edx
	callq	_SPI_cursor_fetch
	movq	%r14, %rdi
	callq	_get_eval_mcontext
	movl	%eax, %edi
	callq	_MemoryContextSwitchTo
	movq	_SPI_processed@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_17
## %bb.8:
	movq	_SPI_tuptable@GOTPCREL(%rip), %r13
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	addq	%r15, %rbx
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	(%r13), %rdi
	callq	_SPI_freetuptable
	movq	-48(%rbp), %rdi
	movl	$1, %esi
	movl	$50, %edx
	callq	_SPI_cursor_fetch
	movq	%r14, %rdi
	callq	_get_eval_mcontext
	movl	%eax, %edi
	callq	_MemoryContextSwitchTo
	movq	_SPI_processed@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_17
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	testq	%rax, %rax
	jle	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=2
	movl	%esi, %edi
	movq	%r12, %rsi
	callq	_execute_attr_map_tuple
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	movl	%eax, %esi
	callq	_tuplestore_puttuple
	movl	%ebx, %edi
	callq	_heap_freetuple
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=2
	incq	%r15
	movq	_SPI_processed@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jge	LBB0_15
LBB0_11:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13), %rax
	movq	(%rax), %rax
	movl	(%rax,%r15,4), %esi
	testq	%r12, %r12
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	8(%r14), %rdi
	callq	_tuplestore_puttuple
	jmp	LBB0_14
LBB0_17:
	movq	_SPI_tuptable@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_SPI_freetuptable
	movq	-48(%rbp), %rdi
	callq	_SPI_cursor_close
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_MemoryContextSwitchTo
	movq	%r14, %rdi
	callq	_exec_eval_cleanup
	movq	%rbx, (%r14)
	xorl	%esi, %esi
	testq	%rbx, %rbx
	setne	%sil
	movq	%r14, %rdi
	callq	_exec_set_found
	movq	_PLPGSQL_RC_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %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_SYNTAX_ERROR,4,2       ## @ERRCODE_SYNTAX_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot use RETURN QUERY in a non-SETOF function"

L_.str.1:                               ## @.str.1
	.asciz	"structure of query does not match function result type"

	.comm	_SPI_processed,8,3              ## @SPI_processed
	.comm	_SPI_tuptable,8,3               ## @SPI_tuptable
	.comm	_PLPGSQL_RC_OK,4,2              ## @PLPGSQL_RC_OK
	.no_dead_strip	_exec_stmt_return_query
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exec_stmt_return_query
_exec_stmt_return_query:                ; @exec_stmt_return_query
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0, #20]
	cbz	w8, LBB0_4
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
LBB0_2:
	ldr	x1, [x20, #16]
	cbz	x1, LBB0_6
LBB0_3:
	add	x3, sp, #8
	mov	x0, x19
	mov	w2, #0
	bl	_exec_run_select
	b	LBB0_7
LBB0_4:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _ERRCODE_SYNTAX_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERRCODE_SYNTAX_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_errcode
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_2
LBB0_5:
	mov	x0, x19
	bl	_exec_init_tuple_store
	ldr	x1, [x20, #16]
	cbnz	x1, LBB0_3
LBB0_6:
	ldr	x8, [x20, #8]
	cmp	x8, #0
	cset	w0, ne
	bl	_Assert
	ldr	x1, [x20, #8]
	ldr	w2, [x20]
	mov	x0, x19
	mov	x3, #0
	mov	w4, #0
	bl	_exec_dynquery_with_params
	str	x0, [sp, #8]
LBB0_7:
	mov	x0, x19
	bl	_get_eval_mcontext
	bl	_MemoryContextSwitchTo
	mov	x20, x0
	ldr	x8, [sp, #8]
	ldr	w21, [x8]
	ldr	w22, [x19, #16]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_gettext_noop
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_convert_tuples_by_position
	mov	x21, x0
	ldr	x0, [sp, #8]
	mov	w1, #1
	mov	w2, #50
	bl	_SPI_cursor_fetch
	mov	x0, x19
	bl	_get_eval_mcontext
	bl	_MemoryContextSwitchTo
Lloh10:
	adrp	x25, _SPI_processed@GOTPAGE
Lloh11:
	ldr	x25, [x25, _SPI_processed@GOTPAGEOFF]
	ldr	x8, [x25]
Lloh12:
	adrp	x24, _SPI_tuptable@GOTPAGE
Lloh13:
	ldr	x24, [x24, _SPI_tuptable@GOTPAGEOFF]
	mov	x23, #0
	cbnz	x8, LBB0_11
LBB0_8:
	ldr	x0, [x24]
	bl	_SPI_freetuptable
	ldr	x0, [sp, #8]
	bl	_SPI_cursor_close
	mov	x0, x20
	bl	_MemoryContextSwitchTo
	mov	x0, x19
	bl	_exec_eval_cleanup
	str	x23, [x19]
	cmp	x23, #0
	cset	w1, ne
	mov	x0, x19
	bl	_exec_set_found
Lloh14:
	adrp	x8, _PLPGSQL_RC_OK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PLPGSQL_RC_OK@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	add	x23, x23, x26
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x0, [x24]
	bl	_SPI_freetuptable
	ldr	x0, [sp, #8]
	mov	w1, #1
	mov	w2, #50
	bl	_SPI_cursor_fetch
	mov	x0, x19
	bl	_get_eval_mcontext
	bl	_MemoryContextSwitchTo
	ldr	x8, [x25]
	cbz	x8, LBB0_8
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	cmp	x8, #1
	b.lt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x26, #0
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=2
	mov	x0, x1
	mov	x1, x21
	bl	_execute_attr_map_tuple
	mov	x22, x0
	ldr	x0, [x19, #8]
	mov	x1, x22
	bl	_tuplestore_puttuple
	mov	x0, x22
	bl	_heap_freetuple
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=2
	add	x26, x26, #1
	ldr	x8, [x25]
	cmp	x26, x8
	b.ge	LBB0_9
LBB0_15:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x24]
	ldr	x8, [x8]
	ldr	w1, [x8, x26, lsl #2]
	cbnz	x21, LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	ldr	x0, [x19, #8]
	bl	_tuplestore_puttuple
	b	LBB0_14
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_SYNTAX_ERROR,4,2       ; @ERRCODE_SYNTAX_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot use RETURN QUERY in a non-SETOF function"

l_.str.1:                               ; @.str.1
	.asciz	"structure of query does not match function result type"

	.comm	_SPI_processed,8,3              ; @SPI_processed
	.comm	_SPI_tuptable,8,3               ; @SPI_tuptable
	.comm	_PLPGSQL_RC_OK,4,2              ; @PLPGSQL_RC_OK
	.no_dead_strip	_exec_stmt_return_query
.subsections_via_symbols
