	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SPI_saveplan                   ## -- Begin function SPI_saveplan
	.p2align	4, 0x90
_SPI_saveplan:                          ## @SPI_saveplan
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	__SPI_PLAN_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	__SPI_begin_call
	movq	_SPI_result@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	js	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	__SPI_save_plan
	movq	%rax, %r14
	xorl	%edi, %edi
	callq	__SPI_end_call
	jmp	LBB0_5
LBB0_2:
	movq	_SPI_ERROR_ARGUMENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%r14d, %r14d
LBB0_5:
	movq	_SPI_result@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_6:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.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_saveplan                   ; -- Begin function SPI_saveplan
	.p2align	2
_SPI_saveplan:                          ; @SPI_saveplan
	.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
Lloh0:
	adrp	x20, _SPI_result@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SPI_result@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
Lloh2:
	adrp	x9, __SPI_PLAN_MAGIC@GOTPAGE
Lloh3:
	ldr	x9, [x9, __SPI_PLAN_MAGIC@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #0
	bl	__SPI_begin_call
	str	x0, [x20]
	tbnz	x0, #63, LBB0_7
; %bb.3:
	mov	x0, x19
	bl	__SPI_save_plan
	mov	x19, x0
	mov	w0, #0
	bl	__SPI_end_call
	b	LBB0_5
LBB0_4:
	mov	x19, #0
Lloh5:
	adrp	x8, _SPI_ERROR_ARGUMENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SPI_ERROR_ARGUMENT@GOTPAGEOFF]
Lloh7:
	ldr	x0, [x8]
LBB0_5:
	str	x0, [x20]
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x19, #0
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.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
