	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exec_run_select
_exec_run_select:                       ## @exec_run_select
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	cmpq	$0, 8(%rsi)
	jne	LBB0_4
## %bb.1:
	xorl	%edx, %edx
	testq	%r15, %r15
	jne	LBB0_3
## %bb.2:
	movq	_CURSOR_OPT_PARALLEL_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_3:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$1, %ecx
	callq	_exec_prepare_plan
LBB0_4:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_setup_param_list
	movq	8(%rbx), %rsi
	movl	16(%r14), %ecx
	testq	%r15, %r15
	je	LBB0_8
## %bb.5:
	xorl	%edi, %edi
	movl	%eax, %edx
	callq	_SPI_cursor_open_with_paramlist
	movq	%rax, (%r15)
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%rbx), %ebx
	movq	_SPI_result@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SPI_result_code_string
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_elog
LBB0_7:
	movq	%r14, %rdi
	callq	_exec_eval_cleanup
	movq	_SPI_OK_CURSOR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_11
LBB0_8:
	movq	%rsi, %rdi
	movl	%eax, %esi
	movl	%ecx, %edx
	movq	%r12, %rcx
	callq	_SPI_execute_plan_with_paramlist
	movl	%eax, %r15d
	movq	_SPI_OK_SELECT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_10
## %bb.9:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_ERRCODE_SYNTAX_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_errmsg
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_10:
	xorl	%edi, %edi
	cmpq	$0, 8(%r14)
	sete	%dil
	callq	_Assert
	movq	_SPI_tuptable@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	_SPI_processed@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_11:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CURSOR_OPT_PARALLEL_OK,4,2     ## @CURSOR_OPT_PARALLEL_OK
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not open implicit cursor for query \"%s\": %s"

	.comm	_SPI_result,4,2                 ## @SPI_result
	.comm	_SPI_OK_CURSOR,4,2              ## @SPI_OK_CURSOR
	.comm	_SPI_OK_SELECT,4,2              ## @SPI_OK_SELECT
	.comm	_ERRCODE_SYNTAX_ERROR,4,2       ## @ERRCODE_SYNTAX_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"query \"%s\" is not a SELECT"

	.comm	_SPI_tuptable,8,3               ## @SPI_tuptable
	.comm	_SPI_processed,4,2              ## @SPI_processed
	.no_dead_strip	_exec_run_select
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exec_run_select
_exec_run_select:                       ; @exec_run_select
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x1, #8]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _CURSOR_OPT_PARALLEL_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CURSOR_OPT_PARALLEL_OK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	x21, #0
	csel	w2, w8, wzr, eq
	mov	x0, x19
	mov	x1, x20
	mov	w3, #1
	bl	_exec_prepare_plan
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_setup_param_list
	mov	x2, x0
	ldr	x1, [x20, #8]
	ldr	w3, [x19, #16]
	cbz	x21, LBB0_6
; %bb.3:
	mov	x0, #0
	bl	_SPI_cursor_open_with_paramlist
	str	x0, [x21]
	cbnz	x0, LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	ldr	w20, [x20]
Lloh6:
	adrp	x8, _SPI_result@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SPI_result@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_SPI_result_code_string
	mov	x3, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_elog
LBB0_5:
	mov	x0, x19
	bl	_exec_eval_cleanup
Lloh11:
	adrp	x8, _SPI_OK_CURSOR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SPI_OK_CURSOR@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x8]
	b	LBB0_9
LBB0_6:
	mov	x0, x1
	mov	x1, x2
	mov	x2, x3
	mov	x3, x22
	bl	_SPI_execute_plan_with_paramlist
	mov	x21, x0
Lloh14:
	adrp	x8, _SPI_OK_SELECT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SPI_OK_SELECT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_8
; %bb.7:
Lloh17:
	adrp	x8, _ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w22, [x8]
Lloh20:
	adrp	x8, _ERRCODE_SYNTAX_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERRCODE_SYNTAX_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w1, [x20]
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
LBB0_8:
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
Lloh25:
	adrp	x8, _SPI_tuptable@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SPI_tuptable@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh28:
	adrp	x8, _SPI_processed@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SPI_processed@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_CURSOR_OPT_PARALLEL_OK,4,2     ; @CURSOR_OPT_PARALLEL_OK
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not open implicit cursor for query \"%s\": %s"

	.comm	_SPI_result,4,2                 ; @SPI_result
	.comm	_SPI_OK_CURSOR,4,2              ; @SPI_OK_CURSOR
	.comm	_SPI_OK_SELECT,4,2              ; @SPI_OK_SELECT
	.comm	_ERRCODE_SYNTAX_ERROR,4,2       ; @ERRCODE_SYNTAX_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"query \"%s\" is not a SELECT"

	.comm	_SPI_tuptable,8,3               ; @SPI_tuptable
	.comm	_SPI_processed,4,2              ; @SPI_processed
	.no_dead_strip	_exec_run_select
.subsections_via_symbols
