	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _SPI_commit
__SPI_commit:                           ## @_SPI_commit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	movq	_CurrentMemoryContext@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	__SPI_current@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INVALID_TRANSACTION_TERMINATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	xorl	%eax, %eax
	callq	_IsSubTransaction
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INVALID_TRANSACTION_TERMINATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_4:
	xorl	%eax, %eax
	callq	_HoldPinnedPortals
	movq	(%r12), %rax
	movl	$1, (%rax)
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_ActiveSnapshotSet
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%eax, %eax
	callq	_PopActiveSnapshot
	jmp	LBB0_6
LBB0_7:
	xorl	%eax, %eax
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.8:
	callq	_SaveTransactionCharacteristics
	xorl	%eax, %eax
	callq	_CommitTransactionCommand
	xorl	%eax, %eax
	callq	_StartTransactionCommand
	xorl	%eax, %eax
	callq	_RestoreTransactionCharacteristics
	jmp	LBB0_10
LBB0_9:
	callq	_CommitTransactionCommand
LBB0_10:
	movl	%r14d, %edi
	callq	_MemoryContextSwitchTo
	movq	(%r12), %rax
	movl	$0, (%rax)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CurrentMemoryContext,4,2       ## @CurrentMemoryContext
	.comm	__SPI_current,8,3               ## @_SPI_current
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INVALID_TRANSACTION_TERMINATION,4,2 ## @ERRCODE_INVALID_TRANSACTION_TERMINATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid transaction termination"

L_.str.1:                               ## @.str.1
	.asciz	"cannot commit while a subtransaction is active"

	.no_dead_strip	__SPI_commit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _SPI_commit
__SPI_commit:                           ; @_SPI_commit
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
Lloh0:
	adrp	x8, _CurrentMemoryContext@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CurrentMemoryContext@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x22, __SPI_current@GOTPAGE
Lloh4:
	ldr	x22, [x22, __SPI_current@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
Lloh5:
	adrp	x23, _ERROR@GOTPAGE
Lloh6:
	ldr	x23, [x23, _ERROR@GOTPAGEOFF]
Lloh7:
	adrp	x24, _ERRCODE_INVALID_TRANSACTION_TERMINATION@GOTPAGE
Lloh8:
	ldr	x24, [x24, _ERRCODE_INVALID_TRANSACTION_TERMINATION@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w21, [x23]
	ldr	w0, [x24]
	bl	_errcode
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_2:
	bl	_IsSubTransaction
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w21, [x23]
	ldr	w0, [x24]
	bl	_errcode
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_4:
	bl	_HoldPinnedPortals
	ldr	x8, [x22]
	mov	w9, #1
	str	w9, [x8]
	bl	_ActiveSnapshotSet
	cbz	x0, LBB0_6
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	bl	_PopActiveSnapshot
	bl	_ActiveSnapshotSet
	cbnz	x0, LBB0_5
LBB0_6:
	cbz	w20, LBB0_8
; %bb.7:
	bl	_SaveTransactionCharacteristics
	bl	_CommitTransactionCommand
	bl	_StartTransactionCommand
	bl	_RestoreTransactionCharacteristics
	b	LBB0_9
LBB0_8:
	bl	_CommitTransactionCommand
LBB0_9:
	mov	x0, x19
	bl	_MemoryContextSwitchTo
	ldr	x8, [x22]
	str	wzr, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_CurrentMemoryContext,4,2       ; @CurrentMemoryContext
	.comm	__SPI_current,8,3               ; @_SPI_current
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INVALID_TRANSACTION_TERMINATION,4,2 ; @ERRCODE_INVALID_TRANSACTION_TERMINATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid transaction termination"

l_.str.1:                               ; @.str.1
	.asciz	"cannot commit while a subtransaction is active"

	.no_dead_strip	__SPI_commit
.subsections_via_symbols
