	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exec_stmt_fetch
_exec_stmt_fetch:                       ## @exec_stmt_fetch
	.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, %r13
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rax
	movq	8(%rdi), %rcx
	movq	(%rcx,%rax,8), %r15
	cmpq	$0, 8(%r15)
	je	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_NULL_VALUE_NOT_ALLOWED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	4(%r15), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movq	%r14, %rdi
	callq	_get_eval_mcontext
	movl	%eax, %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %ebx
	movl	(%r15), %edi
	callq	_TextDatumGetCString
	movq	%rax, %r15
	movl	%ebx, %edi
	callq	_MemoryContextSwitchTo
	movq	%r15, %rdi
	callq	_SPI_cursor_find
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_UNDEFINED_CURSOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_4:
	movq	40(%r13), %rsi
	testq	%rsi, %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_8
## %bb.5:
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	_exec_eval_integer
	movq	%rax, %rbx
	cmpl	$0, -44(%rbp)
	je	LBB0_7
## %bb.6:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_NULL_VALUE_NOT_ALLOWED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_7:
	movq	%r14, %rdi
	callq	_exec_eval_cleanup
LBB0_8:
	cmpl	$0, 32(%r13)
	movl	16(%r13), %esi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	je	LBB0_9
## %bb.13:
	callq	_SPI_scroll_cursor_move
	movq	_SPI_processed@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_14
LBB0_9:
	callq	_SPI_scroll_cursor_fetch
	movq	_SPI_tuptable@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_SPI_processed@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	8(%r14), %rax
	movq	24(%r13), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rsi
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.11:
	movq	8(%r15), %rax
	movq	(%rax), %rdx
	jmp	LBB0_12
LBB0_10:
	xorl	%edx, %edx
LBB0_12:
	movl	(%r15), %ecx
	movq	%r14, %rdi
	callq	_exec_move_row
	movq	%r14, %rdi
	callq	_exec_eval_cleanup
	movq	%r15, %rdi
	callq	_SPI_freetuptable
LBB0_14:
	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_NULL_VALUE_NOT_ALLOWED,4,2 ## @ERRCODE_NULL_VALUE_NOT_ALLOWED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cursor variable \"%s\" is null"

	.comm	_ERRCODE_UNDEFINED_CURSOR,4,2   ## @ERRCODE_UNDEFINED_CURSOR
L_.str.1:                               ## @.str.1
	.asciz	"cursor \"%s\" does not exist"

L_.str.2:                               ## @.str.2
	.asciz	"relative or absolute cursor position is null"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exec_stmt_fetch
_exec_stmt_fetch:                       ; @exec_stmt_fetch
	.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	x8, [x0, #8]
	ldp	x21, x9, [x1]
	ldr	x23, [x8, x9, lsl #3]
	ldr	x8, [x23, #8]
Lloh0:
	adrp	x25, _ERROR@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ERROR@GOTPAGEOFF]
Lloh2:
	adrp	x26, _ERRCODE_NULL_VALUE_NOT_ALLOWED@GOTPAGE
Lloh3:
	ldr	x26, [x26, _ERRCODE_NULL_VALUE_NOT_ALLOWED@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w22, [x25]
	ldr	w0, [x26]
	bl	_errcode
	ldr	w8, [x23, #4]
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
LBB0_2:
	mov	x0, x19
	bl	_get_eval_mcontext
	bl	_MemoryContextSwitchTo
	mov	x22, x0
	ldr	w0, [x23]
	bl	_TextDatumGetCString
	mov	x23, x0
	mov	x0, x22
	bl	_MemoryContextSwitchTo
	mov	x0, x23
	bl	_SPI_cursor_find
	mov	x22, x0
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	w24, [x25]
Lloh6:
	adrp	x8, _ERRCODE_UNDEFINED_CURSOR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERRCODE_UNDEFINED_CURSOR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_errcode
	str	x23, [sp]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
LBB0_4:
	ldr	x1, [x20, #40]
	cbz	x1, LBB0_8
; %bb.5:
	add	x2, sp, #12
	mov	x0, x19
	bl	_exec_eval_integer
	mov	x21, x0
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_7
; %bb.6:
	ldr	w23, [x25]
	ldr	w0, [x26]
	bl	_errcode
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
LBB0_7:
	mov	x0, x19
	bl	_exec_eval_cleanup
LBB0_8:
	ldr	w8, [x20, #32]
	ldr	w1, [x20, #16]
	mov	x0, x22
	mov	x2, x21
	cbz	w8, LBB0_10
; %bb.9:
	bl	_SPI_scroll_cursor_move
Lloh13:
	adrp	x8, _SPI_processed@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SPI_processed@GOTPAGEOFF]
Lloh15:
	ldr	x22, [x8]
	b	LBB0_14
LBB0_10:
	bl	_SPI_scroll_cursor_fetch
Lloh16:
	adrp	x8, _SPI_tuptable@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SPI_tuptable@GOTPAGEOFF]
Lloh18:
	ldr	x21, [x8]
Lloh19:
	adrp	x8, _SPI_processed@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SPI_processed@GOTPAGEOFF]
Lloh21:
	ldr	x22, [x8]
	ldr	x8, [x19, #8]
	ldr	x9, [x20, #24]
	ldr	x9, [x9]
	ldr	x1, [x8, x9, lsl #3]
	cbz	x22, LBB0_12
; %bb.11:
	ldr	x8, [x21, #8]
	ldr	x2, [x8]
	b	LBB0_13
LBB0_12:
	mov	x2, #0
LBB0_13:
	ldr	w3, [x21]
	mov	x0, x19
	bl	_exec_move_row
	mov	x0, x19
	bl	_exec_eval_cleanup
	mov	x0, x21
	bl	_SPI_freetuptable
LBB0_14:
	str	x22, [x19]
	cmp	x22, #0
	cset	w1, ne
	mov	x0, x19
	bl	_exec_set_found
Lloh22:
	adrp	x8, _PLPGSQL_RC_OK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PLPGSQL_RC_OK@GOTPAGEOFF]
Lloh24:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_NULL_VALUE_NOT_ALLOWED,4,2 ; @ERRCODE_NULL_VALUE_NOT_ALLOWED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cursor variable \"%s\" is null"

	.comm	_ERRCODE_UNDEFINED_CURSOR,4,2   ; @ERRCODE_UNDEFINED_CURSOR
l_.str.1:                               ; @.str.1
	.asciz	"cursor \"%s\" does not exist"

l_.str.2:                               ; @.str.2
	.asciz	"relative or absolute cursor position is null"

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