	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exec_eval_expr
_exec_eval_expr:                        ## @exec_eval_expr
	.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	%r8, %r12
	movq	%rcx, %r13
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	$0, -48(%rbp)
	cmpq	$0, 8(%rsi)
	jne	LBB0_2
## %bb.1:
	movq	_CURSOR_OPT_PARALLEL_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$1, %ecx
	callq	_exec_prepare_plan
LBB0_2:
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rcx
	movq	%r13, %r8
	movq	%r12, %r9
	callq	_exec_eval_simple_expr
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	-48(%rbp), %eax
	jmp	LBB0_13
LBB0_4:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$2, %edx
	xorl	%ecx, %ecx
	callq	_exec_run_select
	movq	_SPI_OK_SELECT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
## %bb.5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_ERRCODE_WRONG_OBJECT_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_ereport
LBB0_6:
	movq	8(%r15), %rax
	movq	(%rax), %rdi
	cmpl	$1, (%rdi)
	je	LBB0_8
## %bb.7:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_ERRCODE_SYNTAX_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movl	(%rbx), %ecx
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%edx, %r8d
	callq	_errmsg_plural
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_ereport
	movq	8(%r15), %rax
	movq	(%rax), %rdi
LBB0_8:
	xorl	%esi, %esi
	callq	_TupleDescAttr
	movl	4(%rax), %ecx
	movl	%ecx, (%r13)
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movl	(%r15), %eax
	cmpl	$1, %eax
	je	LBB0_12
## %bb.9:
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movl	$1, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_11:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_ERRCODE_CARDINALITY_VIOLATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	(%rbx), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_errmsg
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_12:
	movq	8(%r15), %rax
	movq	(%rax), %rsi
	movq	8(%rax), %rax
	movl	(%rax), %edi
	movl	$1, %edx
	movq	%r14, %rcx
	callq	_SPI_getbinval
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CURSOR_OPT_PARALLEL_OK,4,2     ## @CURSOR_OPT_PARALLEL_OK
	.comm	_SPI_OK_SELECT,4,2              ## @SPI_OK_SELECT
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_WRONG_OBJECT_TYPE,4,2  ## @ERRCODE_WRONG_OBJECT_TYPE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"query \"%s\" did not return data"

	.comm	_ERRCODE_SYNTAX_ERROR,4,2       ## @ERRCODE_SYNTAX_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"query \"%s\" returned %d column"

L_.str.2:                               ## @.str.2
	.asciz	"query \"%s\" returned %d columns"

	.comm	_ERRCODE_CARDINALITY_VIOLATION,4,2 ## @ERRCODE_CARDINALITY_VIOLATION
L_.str.3:                               ## @.str.3
	.asciz	"query \"%s\" returned more than one row"

	.no_dead_strip	_exec_eval_expr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exec_eval_expr
_exec_eval_expr:                        ; @exec_eval_expr
	.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	x22, x4
	mov	x23, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	str	wzr, [sp, #12]
	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	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	w3, #1
	bl	_exec_prepare_plan
LBB0_2:
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x21
	mov	x3, x19
	mov	x4, x23
	mov	x5, x22
	bl	_exec_eval_simple_expr
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [sp, #12]
	b	LBB0_13
LBB0_4:
	mov	x0, x20
	mov	x1, x21
	mov	w2, #2
	mov	x3, #0
	bl	_exec_run_select
Lloh3:
	adrp	x8, _SPI_OK_SELECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPI_OK_SELECT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x25, _ERROR@GOTPAGE
Lloh7:
	ldr	x25, [x25, _ERROR@GOTPAGEOFF]
	cmp	w0, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	w24, [x25]
Lloh8:
	adrp	x8, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w1, [x21]
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
LBB0_6:
	ldr	x8, [x20, #8]
	ldr	x0, [x8]
	ldr	w8, [x0]
	cmp	w8, #1
	b.eq	LBB0_8
; %bb.7:
	ldr	w24, [x25]
Lloh13:
	adrp	x8, _ERRCODE_SYNTAX_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERRCODE_SYNTAX_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_errcode
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	w2, [x8]
	ldr	w3, [x21]
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x4, x2
	bl	_errmsg_plural
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
	ldr	x8, [x20, #8]
	ldr	x0, [x8]
LBB0_8:
	mov	w1, #0
	bl	_TupleDescAttr
	ldr	w8, [x0, #4]
	str	w8, [x23]
	ldr	w8, [x0]
	str	w8, [x22]
	ldr	w8, [x20]
	cmp	w8, #1
	b.eq	LBB0_12
; %bb.9:
	cbnz	w8, LBB0_11
; %bb.10:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_13
LBB0_11:
	ldr	w22, [x25]
Lloh20:
	adrp	x8, _ERRCODE_CARDINALITY_VIOLATION@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERRCODE_CARDINALITY_VIOLATION@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w1, [x21]
Lloh23:
	adrp	x0, l_.str.3@PAGE
Lloh24:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
LBB0_12:
	ldr	x8, [x20, #8]
	ldp	x1, x9, [x8]
	ldr	w0, [x9]
	mov	w2, #1
	mov	x3, x19
	bl	_SPI_getbinval
LBB0_13:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_CURSOR_OPT_PARALLEL_OK,4,2     ; @CURSOR_OPT_PARALLEL_OK
	.comm	_SPI_OK_SELECT,4,2              ; @SPI_OK_SELECT
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_WRONG_OBJECT_TYPE,4,2  ; @ERRCODE_WRONG_OBJECT_TYPE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"query \"%s\" did not return data"

	.comm	_ERRCODE_SYNTAX_ERROR,4,2       ; @ERRCODE_SYNTAX_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"query \"%s\" returned %d column"

l_.str.2:                               ; @.str.2
	.asciz	"query \"%s\" returned %d columns"

	.comm	_ERRCODE_CARDINALITY_VIOLATION,4,2 ; @ERRCODE_CARDINALITY_VIOLATION
l_.str.3:                               ; @.str.3
	.asciz	"query \"%s\" returned more than one row"

	.no_dead_strip	_exec_eval_expr
.subsections_via_symbols
