	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _SPI_pquery
__SPI_pquery:                           ## @_SPI_pquery
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_23
## %bb.1:
	movl	%edx, %r14d
	movq	%rdi, %rbx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_11:
	movq	16(%rbx), %rax
	cmpq	$0, (%rax)
	jne	LBB0_12
## %bb.13:
	movq	_SPI_OK_UPDATE@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_5:
	movq	16(%rbx), %rax
	cmpq	$0, (%rax)
	jne	LBB0_6
## %bb.7:
	movq	_SPI_OK_INSERT@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_8:
	movq	16(%rbx), %rax
	cmpq	$0, (%rax)
	jne	LBB0_9
## %bb.10:
	movq	_SPI_OK_DELETE@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_23:
	movq	_SPI_ERROR_OPUNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_22
LBB0_2:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	_DestSPI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	_SPI_OK_SELECT@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	movq	_SPI_OK_UPDATE_RETURNING@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_6:
	movq	_SPI_OK_INSERT_RETURNING@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_9:
	movq	_SPI_OK_DELETE_RETURNING@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_3:
	movq	_SPI_OK_UTILITY@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %r15d
	xorl	%eax, %eax
	testl	%esi, %esi
	jne	LBB0_16
## %bb.15:
	movq	_EXEC_FLAG_SKIP_TRIGGERS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_16:
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ExecutorStart
	movq	_ForwardScanDirection@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	movl	$1, %ecx
	callq	_ExecutorRun
	movq	24(%rbx), %rax
	movl	(%rax), %eax
	movq	__SPI_current@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	movq	_SPI_OK_SELECT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_18
## %bb.17:
	movq	16(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_21
LBB0_18:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	_DestSPI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.19:
	xorl	%eax, %eax
	callq	__SPI_checktuples
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_21:
	movq	%rbx, %rdi
	callq	_ExecutorFinish
	movq	%rbx, %rdi
	callq	_ExecutorEnd
LBB0_22:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_DestSPI,8,3                    ## @DestSPI
	.comm	_SPI_OK_UTILITY,4,2             ## @SPI_OK_UTILITY
	.comm	_SPI_OK_SELECT,4,2              ## @SPI_OK_SELECT
	.comm	_SPI_OK_INSERT_RETURNING,4,2    ## @SPI_OK_INSERT_RETURNING
	.comm	_SPI_OK_INSERT,4,2              ## @SPI_OK_INSERT
	.comm	_SPI_OK_DELETE_RETURNING,4,2    ## @SPI_OK_DELETE_RETURNING
	.comm	_SPI_OK_DELETE,4,2              ## @SPI_OK_DELETE
	.comm	_SPI_OK_UPDATE_RETURNING,4,2    ## @SPI_OK_UPDATE_RETURNING
	.comm	_SPI_OK_UPDATE,4,2              ## @SPI_OK_UPDATE
	.comm	_SPI_ERROR_OPUNKNOWN,4,2        ## @SPI_ERROR_OPUNKNOWN
	.comm	_EXEC_FLAG_SKIP_TRIGGERS,4,2    ## @EXEC_FLAG_SKIP_TRIGGERS
	.comm	_ForwardScanDirection,4,2       ## @ForwardScanDirection
	.comm	__SPI_current,8,3               ## @_SPI_current
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"consistency check on SPI tuple count failed"

	.comm	_ShowExecutorStats,8,3          ## @ShowExecutorStats
	.no_dead_strip	__SPI_pquery
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _SPI_pquery
__SPI_pquery:                           ; @_SPI_pquery
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.1:
	mov	x21, x2
	mov	x19, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
Lloh2:
	adrp	x23, _SPI_OK_SELECT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _SPI_OK_SELECT@GOTPAGEOFF]
Lloh4:
	adrp	x22, _DestSPI@GOTPAGE
Lloh5:
	ldr	x22, [x22, _DestSPI@GOTPAGEOFF]
	br	x10
LBB0_2:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _SPI_OK_UPDATE_RETURNING@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SPI_OK_UPDATE_RETURNING@GOTPAGEOFF]
Lloh8:
	adrp	x10, _SPI_OK_UPDATE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _SPI_OK_UPDATE@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
Lloh10:
	adrp	x8, _SPI_ERROR_OPUNKNOWN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SPI_ERROR_OPUNKNOWN@GOTPAGEOFF]
Lloh12:
	ldr	w20, [x8]
	b	LBB0_14
LBB0_4:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x9, [x22]
Lloh13:
	adrp	x10, _SPI_OK_UTILITY@GOTPAGE
Lloh14:
	ldr	x10, [x10, _SPI_OK_UTILITY@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x23, x10, eq
	b	LBB0_8
LBB0_5:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _SPI_OK_INSERT_RETURNING@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SPI_OK_INSERT_RETURNING@GOTPAGEOFF]
Lloh17:
	adrp	x10, _SPI_OK_INSERT@GOTPAGE
Lloh18:
	ldr	x10, [x10, _SPI_OK_INSERT@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
Lloh19:
	adrp	x9, _SPI_OK_DELETE_RETURNING@GOTPAGE
Lloh20:
	ldr	x9, [x9, _SPI_OK_DELETE_RETURNING@GOTPAGEOFF]
Lloh21:
	adrp	x10, _SPI_OK_DELETE@GOTPAGE
Lloh22:
	ldr	x10, [x10, _SPI_OK_DELETE@GOTPAGEOFF]
LBB0_7:
	cmp	x8, #0
	csel	x8, x10, x9, eq
LBB0_8:
	ldr	w20, [x8]
Lloh23:
	adrp	x8, _EXEC_FLAG_SKIP_TRIGGERS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EXEC_FLAG_SKIP_TRIGGERS@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cmp	w1, #0
	csel	w1, w8, wzr, eq
	mov	x0, x19
	bl	_ExecutorStart
Lloh26:
	adrp	x8, _ForwardScanDirection@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ForwardScanDirection@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	mov	w3, #1
	bl	_ExecutorRun
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
Lloh29:
	adrp	x9, __SPI_current@GOTPAGE
Lloh30:
	ldr	x9, [x9, __SPI_current@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	str	w8, [x9]
	ldr	w8, [x23]
	cmp	w20, w8
	b.eq	LBB0_10
; %bb.9:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_13
LBB0_10:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.11:
	bl	__SPI_checktuples
	cbz	x0, LBB0_13
; %bb.12:
Lloh32:
	adrp	x8, _ERROR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
Lloh35:
	adrp	x1, l_.str@PAGE
Lloh36:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_13:
	mov	x0, x19
	bl	_ExecutorFinish
	mov	x0, x19
	bl	_ExecutorEnd
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_DestSPI,8,3                    ; @DestSPI
	.comm	_SPI_OK_UTILITY,4,2             ; @SPI_OK_UTILITY
	.comm	_SPI_OK_SELECT,4,2              ; @SPI_OK_SELECT
	.comm	_SPI_OK_INSERT_RETURNING,4,2    ; @SPI_OK_INSERT_RETURNING
	.comm	_SPI_OK_INSERT,4,2              ; @SPI_OK_INSERT
	.comm	_SPI_OK_DELETE_RETURNING,4,2    ; @SPI_OK_DELETE_RETURNING
	.comm	_SPI_OK_DELETE,4,2              ; @SPI_OK_DELETE
	.comm	_SPI_OK_UPDATE_RETURNING,4,2    ; @SPI_OK_UPDATE_RETURNING
	.comm	_SPI_OK_UPDATE,4,2              ; @SPI_OK_UPDATE
	.comm	_SPI_ERROR_OPUNKNOWN,4,2        ; @SPI_ERROR_OPUNKNOWN
	.comm	_EXEC_FLAG_SKIP_TRIGGERS,4,2    ; @EXEC_FLAG_SKIP_TRIGGERS
	.comm	_ForwardScanDirection,4,2       ; @ForwardScanDirection
	.comm	__SPI_current,8,3               ; @_SPI_current
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"consistency check on SPI tuple count failed"

	.comm	_ShowExecutorStats,8,3          ; @ShowExecutorStats
	.no_dead_strip	__SPI_pquery
.subsections_via_symbols
