	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AtEOXact_SPI                   ## -- Begin function AtEOXact_SPI
	.p2align	4, 0x90
_AtEOXact_SPI:                          ## @AtEOXact_SPI
	.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
	movq	__SPI_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	testl	%edi, %edi
	je	LBB0_5
## %bb.3:
	movq	__SPI_connected@GOTPCREL(%rip), %rax
	cmpl	$-1, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	leaq	L_.str.1(%rip), %rdi
	callq	_errhint
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_SPICleanup                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	__SPI_current,8,3               ## @_SPI_current
	.comm	__SPI_connected,4,2             ## @_SPI_connected
	.comm	_WARNING,4,2                    ## @WARNING
	.comm	_ERRCODE_WARNING,4,2            ## @ERRCODE_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"transaction left non-empty SPI stack"

L_.str.1:                               ## @.str.1
	.asciz	"Check for missing \"SPI_finish\" calls."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AtEOXact_SPI                   ; -- Begin function AtEOXact_SPI
	.p2align	2
_AtEOXact_SPI:                          ; @AtEOXact_SPI
	.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	x8, __SPI_current@GOTPAGE
Lloh1:
	ldr	x8, [x8, __SPI_current@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	cbz	w0, LBB0_6
; %bb.4:
Lloh3:
	adrp	x8, __SPI_connected@GOTPAGE
Lloh4:
	ldr	x8, [x8, __SPI_connected@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmn	w8, #1
	b.eq	LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _WARNING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WARNING@GOTPAGEOFF]
Lloh8:
	ldr	w19, [x8]
Lloh9:
	adrp	x8, _ERRCODE_WARNING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERRCODE_WARNING@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_errcode
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errhint
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_SPICleanup
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	__SPI_current,8,3               ; @_SPI_current
	.comm	__SPI_connected,4,2             ; @_SPI_connected
	.comm	_WARNING,4,2                    ; @WARNING
	.comm	_ERRCODE_WARNING,4,2            ; @ERRCODE_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"transaction left non-empty SPI stack"

l_.str.1:                               ; @.str.1
	.asciz	"Check for missing \"SPI_finish\" calls."

.subsections_via_symbols
