	.file	"extr_spi.c_SPI_prepare_cursor.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	SPI_prepare_cursor
	.type	SPI_prepare_cursor, @function
SPI_prepare_cursor:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 48
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	test	rdi, rdi
	je	.L2
	mov	ebx, esi
	test	esi, esi
	js	.L2
	mov	r14, rdi
	mov	rbp, rdx
	mov	r13d, ecx
	jle	.L3
	test	rdx, rdx
	je	.L2
.L3:
	mov	edi, 1
	xor	r12d, r12d
	call	_SPI_begin_call@PLT
	mov	QWORD PTR SPI_result[rip], rax
	test	rax, rax
	js	.L1
	mov	r12, rsp
	mov	edx, 40
	xor	esi, esi
	mov	rdi, r12
	call	memset@PLT
	mov	rsi, r12
	mov	rdi, r14
	mov	DWORD PTR [rsp], r13d
	mov	eax, DWORD PTR _SPI_PLAN_MAGIC[rip]
	mov	DWORD PTR 4[rsp], ebx
	mov	QWORD PTR 24[rsp], rbp
	mov	DWORD PTR 32[rsp], eax
	mov	QWORD PTR 16[rsp], 0
	mov	QWORD PTR 8[rsp], 0
	call	_SPI_prepare_plan@PLT
	mov	rdi, r12
	call	_SPI_make_plan_non_temp@PLT
	mov	edi, 1
	mov	r12, rax
	call	_SPI_end_call@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rax, QWORD PTR SPI_ERROR_ARGUMENT[rip]
	xor	r12d, r12d
	mov	QWORD PTR SPI_result[rip], rax
	jmp	.L1
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	SPI_prepare_cursor, .-SPI_prepare_cursor
	.comm	_SPI_PLAN_MAGIC,4,4
	.comm	SPI_result,8,8
	.comm	SPI_ERROR_ARGUMENT,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_spi.c_SPI_prepare_cursor.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	SPI_prepare_cursor
	.syntax unified
	.arm
	.fpu softvfp
	.type	SPI_prepare_cursor, %function
SPI_prepare_cursor:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r0, #0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	moveq	r1, #1
	mov	r8, r3
	lsrne	r1, r1, #31
	ldr	r3, .L10
	sub	sp, sp, #32
	cmp	r1, #0
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bne	.L2
	cmp	r5, #0
	movle	r4, #0
	movgt	r4, #1
	cmp	r2, #0
	movne	r4, #0
	cmp	r4, #0
	mov	r7, r2
	bne	.L2
	mov	r6, r0
	mov	r0, #1
	bl	_SPI_begin_call
	ldr	r3, .L10+4
	cmp	r0, #0
	str	r0, [r3]
	blt	.L1
	ldr	r3, .L10+8
	add	r1, sp, #4
	ldr	r3, [r3]
	mov	r0, r6
	str	r4, [sp, #16]
	str	r4, [sp, #12]
	str	r3, [sp, #24]
	str	r8, [sp, #4]
	str	r5, [sp, #8]
	str	r7, [sp, #20]
	bl	_SPI_prepare_plan
	add	r0, sp, #4
	bl	_SPI_make_plan_non_temp
	mov	r4, r0
	mov	r0, #1
	bl	_SPI_end_call
.L1:
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	mov	r0, r4
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r2, .L10+12
	ldr	r3, .L10+4
	ldr	r2, [r2]
	mov	r4, #0
	str	r2, [r3]
	b	.L1
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	SPI_result
	.word	_SPI_PLAN_MAGIC
	.word	SPI_ERROR_ARGUMENT
	.size	SPI_prepare_cursor, .-SPI_prepare_cursor
	.comm	_SPI_PLAN_MAGIC,4,4
	.comm	SPI_result,4,4
	.comm	SPI_ERROR_ARGUMENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
