	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SPI_prepare_cursor             ## -- Begin function SPI_prepare_cursor
	.p2align	4, 0x90
_SPI_prepare_cursor:                    ## @SPI_prepare_cursor
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movl	%esi, %r12d
	testl	%esi, %esi
	js	LBB0_4
## %bb.2:
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movq	%rdi, %rbx
	je	LBB0_7
## %bb.3:
	testq	%r14, %r14
	jne	LBB0_7
LBB0_4:
	movq	_SPI_ERROR_ARGUMENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_SPI_result@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	$1, %edi
	callq	__SPI_begin_call
	movq	_SPI_result@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	js	LBB0_5
## %bb.8:
	leaq	-80(%rbp), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	__SPI_PLAN_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	%r15d, -80(%rbp)
	movl	%r12d, -76(%rbp)
	movq	%r14, -56(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -72(%rbp)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	__SPI_prepare_plan
	movq	%r13, %rdi
	callq	__SPI_make_plan_non_temp
	movq	%rax, %rbx
	movl	$1, %edi
	callq	__SPI_end_call
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_SPI_ERROR_ARGUMENT,8,3         ## @SPI_ERROR_ARGUMENT
	.comm	_SPI_result,8,3                 ## @SPI_result
	.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_prepare_cursor             ; -- Begin function SPI_prepare_cursor
	.p2align	2
_SPI_prepare_cursor:                    ; @SPI_prepare_cursor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x1
	tbnz	w1, #31, LBB0_4
; %bb.2:
	mov	x21, x3
	mov	x20, x2
	mov	x19, x0
	cbz	w22, LBB0_6
; %bb.3:
	cbnz	x20, LBB0_6
LBB0_4:
	mov	x19, #0
Lloh0:
	adrp	x8, _SPI_ERROR_ARGUMENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPI_ERROR_ARGUMENT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _SPI_result@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SPI_result@GOTPAGEOFF]
Lloh5:
	str	x8, [x9]
LBB0_5:
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
LBB0_6:
	mov	w0, #1
	bl	__SPI_begin_call
Lloh6:
	adrp	x8, _SPI_result@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SPI_result@GOTPAGEOFF]
Lloh8:
	str	x0, [x8]
	tbnz	x0, #63, LBB0_8
; %bb.7:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh9:
	adrp	x8, __SPI_PLAN_MAGIC@GOTPAGE
Lloh10:
	ldr	x8, [x8, __SPI_PLAN_MAGIC@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	stp	w21, w22, [sp, #8]
	stp	xzr, x20, [sp, #24]
	str	xzr, [sp, #16]
	add	x1, sp, #8
	mov	x0, x19
	bl	__SPI_prepare_plan
	add	x0, sp, #8
	bl	__SPI_make_plan_non_temp
	mov	x19, x0
	mov	w0, #1
	bl	__SPI_end_call
	b	LBB0_5
LBB0_8:
	mov	x19, #0
	b	LBB0_5
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SPI_ERROR_ARGUMENT,8,3         ; @SPI_ERROR_ARGUMENT
	.comm	_SPI_result,8,3                 ; @SPI_result
	.comm	__SPI_PLAN_MAGIC,4,2            ; @_SPI_PLAN_MAGIC
.subsections_via_symbols
