	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SPI_finish                     ## -- Begin function SPI_finish
	.p2align	4, 0x90
_SPI_finish:                            ## @SPI_finish
	.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
	xorl	%edi, %edi
	callq	__SPI_begin_call
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	__SPI_current@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	32(%rax), %edi
	callq	_MemoryContextSwitchTo
	movq	(%rbx), %rax
	movq	24(%rax), %rdi
	callq	_MemoryContextDelete
	movq	(%rbx), %rax
	movq	$0, 24(%rax)
	movq	16(%rax), %rdi
	callq	_MemoryContextDelete
	movq	(%rbx), %rax
	movq	$0, 16(%rax)
	movl	8(%rax), %ecx
	movq	_SPI_processed@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movl	4(%rax), %ecx
	movq	_SPI_tuptable@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movl	(%rax), %eax
	movq	_SPI_result@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	__SPI_connected@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	decq	%rcx
	movq	__SPI_stack@GOTPCREL(%rip), %rdx
	leaq	(%rcx,%rcx,4), %rsi
	shlq	$3, %rsi
	addq	(%rdx), %rsi
	movq	%rcx, (%rax)
	movq	%rsi, (%rbx)
	movq	_SPI_OK_FINISH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__SPI_current,8,3               ## @_SPI_current
	.comm	_SPI_processed,4,2              ## @SPI_processed
	.comm	_SPI_tuptable,4,2               ## @SPI_tuptable
	.comm	_SPI_result,4,2                 ## @SPI_result
	.comm	__SPI_connected,8,3             ## @_SPI_connected
	.comm	__SPI_stack,8,3                 ## @_SPI_stack
	.comm	_SPI_OK_FINISH,4,2              ## @SPI_OK_FINISH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SPI_finish                     ; -- Begin function SPI_finish
	.p2align	2
_SPI_finish:                            ; @SPI_finish
	.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
	mov	w0, #0
	bl	__SPI_begin_call
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh0:
	adrp	x19, __SPI_current@GOTPAGE
Lloh1:
	ldr	x19, [x19, __SPI_current@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	w0, [x8, #32]
	bl	_MemoryContextSwitchTo
	ldr	x8, [x19]
	ldr	x0, [x8, #24]
	bl	_MemoryContextDelete
	ldr	x8, [x19]
	str	xzr, [x8, #24]
	ldr	x0, [x8, #16]
	bl	_MemoryContextDelete
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _SPI_processed@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SPI_processed@GOTPAGEOFF]
	ldp	w11, w10, [x8, #4]
Lloh4:
	str	w10, [x9]
	str	xzr, [x8, #16]
Lloh5:
	adrp	x9, _SPI_tuptable@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SPI_tuptable@GOTPAGEOFF]
Lloh7:
	str	w11, [x9]
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _SPI_result@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SPI_result@GOTPAGEOFF]
Lloh10:
	str	w8, [x9]
Lloh11:
	adrp	x8, __SPI_connected@GOTPAGE
Lloh12:
	ldr	x8, [x8, __SPI_connected@GOTPAGEOFF]
	ldr	x9, [x8]
	sub	x9, x9, #1
	str	x9, [x8]
Lloh13:
	adrp	x8, __SPI_stack@GOTPAGE
Lloh14:
	ldr	x8, [x8, __SPI_stack@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	mov	w10, #40
	madd	x8, x9, x10, x8
	str	x8, [x19]
Lloh16:
	adrp	x8, _SPI_OK_FINISH@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SPI_OK_FINISH@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	__SPI_current,8,3               ; @_SPI_current
	.comm	_SPI_processed,4,2              ; @SPI_processed
	.comm	_SPI_tuptable,4,2               ; @SPI_tuptable
	.comm	_SPI_result,4,2                 ; @SPI_result
	.comm	__SPI_connected,8,3             ; @_SPI_connected
	.comm	__SPI_stack,8,3                 ; @_SPI_stack
	.comm	_SPI_OK_FINISH,4,2              ; @SPI_OK_FINISH
.subsections_via_symbols
