	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SPI_is_cursor_plan             ## -- Begin function SPI_is_cursor_plan
	.p2align	4, 0x90
_SPI_is_cursor_plan:                    ## @SPI_is_cursor_plan
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	__SPI_PLAN_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movl	8(%rbx), %edi
	callq	_list_length
	cmpl	$1, %eax
	jne	LBB0_7
## %bb.3:
	movl	8(%rbx), %edi
	callq	_linitial
	movq	%rax, %rcx
	movq	_SPI_result@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%eax, %eax
	cmpq	$0, (%rcx)
	setne	%al
	jmp	LBB0_6
LBB0_4:
	movq	_SPI_ERROR_ARGUMENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_SPI_result@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_7:
	movq	_SPI_result@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	__SPI_PLAN_MAGIC,8,3            ## @_SPI_PLAN_MAGIC
	.comm	_SPI_ERROR_ARGUMENT,8,3         ## @SPI_ERROR_ARGUMENT
	.comm	_SPI_result,8,3                 ## @SPI_result
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SPI_is_cursor_plan             ; -- Begin function SPI_is_cursor_plan
	.p2align	2
_SPI_is_cursor_plan:                    ; @SPI_is_cursor_plan
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, __SPI_PLAN_MAGIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, __SPI_PLAN_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x19, #8]
	bl	_list_length
	cmp	w0, #1
	b.ne	LBB0_6
; %bb.3:
	ldr	w0, [x19, #8]
	bl	_linitial
Lloh3:
	adrp	x8, _SPI_result@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPI_result@GOTPAGEOFF]
Lloh5:
	str	xzr, [x8]
	ldr	x8, [x0]
	cmp	x8, #0
	cset	w0, ne
	b	LBB0_5
LBB0_4:
	mov	w0, #0
Lloh6:
	adrp	x8, _SPI_ERROR_ARGUMENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SPI_ERROR_ARGUMENT@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _SPI_result@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SPI_result@GOTPAGEOFF]
Lloh11:
	str	x8, [x9]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	w0, #0
Lloh12:
	adrp	x8, _SPI_result@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SPI_result@GOTPAGEOFF]
Lloh14:
	str	xzr, [x8]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	__SPI_PLAN_MAGIC,8,3            ; @_SPI_PLAN_MAGIC
	.comm	_SPI_ERROR_ARGUMENT,8,3         ; @SPI_ERROR_ARGUMENT
	.comm	_SPI_result,8,3                 ; @SPI_result
.subsections_via_symbols
