	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SPI_cursor_open_with_args      ## -- Begin function SPI_cursor_open_with_args
	.p2align	4, 0x90
_SPI_cursor_open_with_args:             ## @SPI_cursor_open_with_args
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	%r8, %r12
	movq	%rcx, %rbx
	movl	%edx, %r14d
	movq	%rsi, %r13
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	testl	%r14d, %r14d
	jns	LBB0_3
LBB0_2:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_3:
	testl	%r14d, %r14d
	jle	LBB0_7
## %bb.4:
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.5:
	testq	%r12, %r12
	jne	LBB0_7
LBB0_6:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_elog
LBB0_7:
	movl	$1, %edi
	callq	__SPI_begin_call
	movq	_SPI_result@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jns	LBB0_9
## %bb.8:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_elog
LBB0_9:
	leaq	-96(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	__SPI_PLAN_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movl	24(%rbp), %eax
	movl	%eax, -96(%rbp)
	movl	%r14d, -92(%rbp)
	movq	%rbx, -72(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -88(%rbp)
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	__SPI_convert_params
	movl	%eax, %ebx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	__SPI_prepare_plan
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%ebx, %edx
	movl	16(%rbp), %ecx
	callq	_SPI_cursor_open_internal
	movl	%eax, %ebx
	movl	$1, %edi
	callq	__SPI_end_call
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SPI_cursor_open_with_args called with invalid arguments"

L_.str.1:                               ## @.str.1
	.asciz	"SPI_cursor_open_with_args called with missing parameters"

	.comm	_SPI_result,8,3                 ## @SPI_result
L_.str.2:                               ## @.str.2
	.asciz	"SPI_cursor_open_with_args called while not connected"

	.comm	__SPI_PLAN_MAGIC,4,2            ## @_SPI_PLAN_MAGIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SPI_cursor_open_with_args      ; -- Begin function SPI_cursor_open_with_args
	.p2align	2
_SPI_cursor_open_with_args:             ; @SPI_cursor_open_with_args
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x26, x7
	mov	x19, x6
	mov	x22, x5
	mov	x23, x4
	mov	x24, x3
	mov	x25, x2
	mov	x21, x1
	mov	x20, x0
	cbz	x1, LBB0_2
; %bb.1:
	tbz	w25, #31, LBB0_3
LBB0_2:
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_3:
	cmp	w25, #1
	b.lt	LBB0_7
; %bb.4:
	cbz	x24, LBB0_6
; %bb.5:
	cbnz	x23, LBB0_7
LBB0_6:
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_7:
	mov	w0, #1
	bl	__SPI_begin_call
Lloh10:
	adrp	x8, _SPI_result@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SPI_result@GOTPAGEOFF]
Lloh12:
	str	x0, [x8]
	tbz	x0, #63, LBB0_9
; %bb.8:
Lloh13:
	adrp	x8, _ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_elog
LBB0_9:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh18:
	adrp	x8, __SPI_PLAN_MAGIC@GOTPAGE
Lloh19:
	ldr	x8, [x8, __SPI_PLAN_MAGIC@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	stp	w26, w25, [sp, #8]
	stp	xzr, x24, [sp, #24]
	str	xzr, [sp, #16]
	mov	x0, x25
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	bl	__SPI_convert_params
	mov	x22, x0
	add	x1, sp, #8
	mov	x0, x21
	bl	__SPI_prepare_plan
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x22
	mov	x3, x19
	bl	_SPI_cursor_open_internal
	mov	x19, x0
	mov	w0, #1
	bl	__SPI_end_call
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SPI_cursor_open_with_args called with invalid arguments"

l_.str.1:                               ; @.str.1
	.asciz	"SPI_cursor_open_with_args called with missing parameters"

	.comm	_SPI_result,8,3                 ; @SPI_result
l_.str.2:                               ; @.str.2
	.asciz	"SPI_cursor_open_with_args called while not connected"

	.comm	__SPI_PLAN_MAGIC,4,2            ; @_SPI_PLAN_MAGIC
.subsections_via_symbols
