	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fetch_cursor_param_value
_fetch_cursor_param_value:              ## @fetch_cursor_param_value
	.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
	movl	%esi, %r12d
	testl	%esi, %esi
	jle	LBB0_11
## %bb.1:
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.2:
	cmpl	%r12d, (%rdi)
	jl	LBB0_11
## %bb.3:
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	-56(%rbp), %rcx
	movl	%r12d, %esi
	xorl	%edx, %edx
	callq	*%rax
	movq	%rax, %r14
	jmp	LBB0_6
LBB0_5:
	leal	-1(%r12), %r14d
	shlq	$4, %r14
	addq	8(%rdi), %r14
LBB0_6:
	movq	(%r14), %rdi
	callq	_OidIsValid
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	cmpl	$0, 12(%r14)
	je	LBB0_8
LBB0_11:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_UNDEFINED_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_12:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	(%r14), %rax
	movq	_REFCURSOROID@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	je	LBB0_10
## %bb.9:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_DATATYPE_MISMATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	(%r14), %rdi
	callq	_format_type_be
	movl	%eax, %r13d
	movq	(%rbx), %rdi
	callq	_format_type_be
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_10:
	movl	8(%r14), %edi
	callq	_TextDatumGetCString
	movq	%rax, %r14
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_REFCURSOROID,8,3               ## @REFCURSOROID
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_DATATYPE_MISMATCH,4,2  ## @ERRCODE_DATATYPE_MISMATCH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"type of parameter %d (%s) does not match that when preparing the plan (%s)"

	.comm	_ERRCODE_UNDEFINED_OBJECT,4,2   ## @ERRCODE_UNDEFINED_OBJECT
L_.str.1:                               ## @.str.1
	.asciz	"no value found for parameter %d"

	.no_dead_strip	_fetch_cursor_param_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fetch_cursor_param_value
_fetch_cursor_param_value:              ; @fetch_cursor_param_value
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x1
	subs	w8, w1, #1
	b.lt	LBB0_8
; %bb.1:
	ldr	x0, [x0]
	cbz	x0, LBB0_8
; %bb.2:
	ldr	w9, [x0]
	cmp	w9, w19
	b.lt	LBB0_8
; %bb.3:
	ldr	x9, [x0, #16]
	cbz	x9, LBB0_5
; %bb.4:
	add	x3, sp, #16
	mov	x1, x19
	mov	w2, #0
	blr	x9
	mov	x20, x0
	b	LBB0_6
LBB0_5:
	ldr	x9, [x0, #8]
	add	x20, x9, w8, uxtw #4
LBB0_6:
	ldr	x0, [x20]
	bl	_OidIsValid
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_10
LBB0_8:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _ERRCODE_UNDEFINED_OBJECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERRCODE_UNDEFINED_OBJECT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_errcode
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
	mov	x0, #0
LBB0_9:
	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
	add	sp, sp, #96
	ret
LBB0_10:
	ldr	x8, [x20]
Lloh8:
	adrp	x23, _REFCURSOROID@GOTPAGE
Lloh9:
	ldr	x23, [x23, _REFCURSOROID@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_12
; %bb.11:
Lloh10:
	adrp	x8, _ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w21, [x8]
Lloh13:
	adrp	x8, _ERRCODE_DATATYPE_MISMATCH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERRCODE_DATATYPE_MISMATCH@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_errcode
	ldr	x0, [x20]
	bl	_format_type_be
	mov	x22, x0
	ldr	x0, [x23]
	bl	_format_type_be
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x22, x0, [sp]
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_12:
	ldr	w0, [x20, #8]
	bl	_TextDatumGetCString
	b	LBB0_9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_REFCURSOROID,8,3               ; @REFCURSOROID
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_DATATYPE_MISMATCH,4,2  ; @ERRCODE_DATATYPE_MISMATCH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"type of parameter %d (%s) does not match that when preparing the plan (%s)"

	.comm	_ERRCODE_UNDEFINED_OBJECT,4,2   ; @ERRCODE_UNDEFINED_OBJECT
l_.str.1:                               ; @.str.1
	.asciz	"no value found for parameter %d"

	.no_dead_strip	_fetch_cursor_param_value
.subsections_via_symbols
