	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _SPI_cursor_operation
__SPI_cursor_operation:                 ## @_SPI_cursor_operation
	.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	%rcx, %r12
	movq	%rdx, %r14
	movl	%esi, %r15d
	movl	%edi, %ebx
	callq	_PortalIsValid
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_2:
	movl	$1, %edi
	callq	__SPI_begin_call
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_elog
LBB0_4:
	movq	_SPI_processed@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_SPI_tuptable@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	__SPI_current@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movl	%ebx, %edi
	movl	%r15d, %esi
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_PortalRunFetch
	movq	(%r13), %rcx
	movq	%rax, 8(%rcx)
	movq	(%r12), %rax
	movq	_DestSPI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	xorl	%eax, %eax
	callq	__SPI_checktuples
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_elog
LBB0_7:
	movq	(%r13), %rax
	movq	8(%rax), %rcx
	movq	_SPI_processed@GOTPCREL(%rip), %rdx
	movq	%rcx, (%rdx)
	movq	(%rax), %rcx
	movq	_SPI_tuptable@GOTPCREL(%rip), %rdx
	movq	%rcx, (%rdx)
	movq	$0, (%rax)
	movl	$1, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__SPI_end_call                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid portal in SPI cursor operation"

L_.str.1:                               ## @.str.1
	.asciz	"SPI cursor operation called while not connected"

	.comm	_SPI_processed,8,3              ## @SPI_processed
	.comm	_SPI_tuptable,8,3               ## @SPI_tuptable
	.comm	__SPI_current,8,3               ## @_SPI_current
	.comm	_DestSPI,8,3                    ## @DestSPI
L_.str.2:                               ## @.str.2
	.asciz	"consistency check on SPI tuple count failed"

	.no_dead_strip	__SPI_cursor_operation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _SPI_cursor_operation
__SPI_cursor_operation:                 ; @_SPI_cursor_operation
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_PortalIsValid
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_2:
	mov	w0, #1
	bl	__SPI_begin_call
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
LBB0_4:
Lloh10:
	adrp	x23, _SPI_processed@GOTPAGE
Lloh11:
	ldr	x23, [x23, _SPI_processed@GOTPAGEOFF]
	str	xzr, [x23]
Lloh12:
	adrp	x24, _SPI_tuptable@GOTPAGE
Lloh13:
	ldr	x24, [x24, _SPI_tuptable@GOTPAGEOFF]
	str	xzr, [x24]
Lloh14:
	adrp	x25, __SPI_current@GOTPAGE
Lloh15:
	ldr	x25, [x25, __SPI_current@GOTPAGEOFF]
	ldr	x8, [x25]
	stp	xzr, xzr, [x8]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_PortalRunFetch
	ldr	x8, [x25]
	str	x0, [x8, #8]
	ldr	x8, [x19]
Lloh16:
	adrp	x9, _DestSPI@GOTPAGE
Lloh17:
	ldr	x9, [x9, _DestSPI@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	bl	__SPI_checktuples
	cbz	x0, LBB0_7
; %bb.6:
Lloh19:
	adrp	x8, _ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_elog
LBB0_7:
	ldr	x8, [x25]
	ldp	x10, x9, [x8]
	str	x9, [x23]
	str	x10, [x24]
	str	xzr, [x8]
	mov	w0, #1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	__SPI_end_call
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid portal in SPI cursor operation"

l_.str.1:                               ; @.str.1
	.asciz	"SPI cursor operation called while not connected"

	.comm	_SPI_processed,8,3              ; @SPI_processed
	.comm	_SPI_tuptable,8,3               ; @SPI_tuptable
	.comm	__SPI_current,8,3               ; @_SPI_current
	.comm	_DestSPI,8,3                    ; @DestSPI
l_.str.2:                               ; @.str.2
	.asciz	"consistency check on SPI tuple count failed"

	.no_dead_strip	__SPI_cursor_operation
.subsections_via_symbols
