	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CleanupTransaction
_CleanupTransaction:                    ## @CleanupTransaction
	.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
	movq	_CurrentTransactionState@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	(%rbx), %rdi
	movq	_TRANS_ABORT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_2
## %bb.1:
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	callq	_TransStateAsString
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_elog
LBB0_2:
	xorl	%eax, %eax
	callq	_AtCleanup_Portals
	xorl	%edi, %edi
	movl	$1, %esi
	callq	_AtEOXact_Snapshot
	movq	_CurrentResourceOwner@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_TopTransactionResourceOwner@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_ResourceOwnerDelete
LBB0_4:
	movq	$0, 72(%rbx)
	movq	_CurTransactionResourceOwner@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	$0, (%r14)
	xorl	%eax, %eax
	callq	_AtCleanup_Memory
	movq	_InvalidFullTransactionId@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 64(%rbx)
	movq	_InvalidSubTransactionId@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 56(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rbx)
	movups	%xmm0, 24(%rbx)
	movups	%xmm0, 8(%rbx)
	movq	_XactTopFullTransactionId@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_nParallelCurrentXids@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_TRANS_DEFAULT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CurrentTransactionState,8,3    ## @CurrentTransactionState
	.comm	_TRANS_ABORT,8,3                ## @TRANS_ABORT
	.comm	_FATAL,4,2                      ## @FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CleanupTransaction: unexpected state %s"

	.comm	_CurrentResourceOwner,8,3       ## @CurrentResourceOwner
	.comm	_TopTransactionResourceOwner,8,3 ## @TopTransactionResourceOwner
	.comm	_CurTransactionResourceOwner,8,3 ## @CurTransactionResourceOwner
	.comm	_InvalidFullTransactionId,8,3   ## @InvalidFullTransactionId
	.comm	_InvalidSubTransactionId,4,2    ## @InvalidSubTransactionId
	.comm	_XactTopFullTransactionId,8,3   ## @XactTopFullTransactionId
	.comm	_nParallelCurrentXids,8,3       ## @nParallelCurrentXids
	.comm	_TRANS_DEFAULT,8,3              ## @TRANS_DEFAULT
	.no_dead_strip	_CleanupTransaction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CleanupTransaction
_CleanupTransaction:                    ; @CleanupTransaction
	.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, _CurrentTransactionState@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CurrentTransactionState@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	ldr	x0, [x20]
Lloh3:
	adrp	x8, _TRANS_ABORT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TRANS_ABORT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _FATAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FATAL@GOTPAGEOFF]
Lloh8:
	ldr	w19, [x8]
	bl	_TransStateAsString
	mov	x2, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_elog
LBB0_2:
	bl	_AtCleanup_Portals
	mov	w0, #0
	mov	w1, #1
	bl	_AtEOXact_Snapshot
Lloh11:
	adrp	x8, _CurrentResourceOwner@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CurrentResourceOwner@GOTPAGEOFF]
Lloh13:
	str	xzr, [x8]
Lloh14:
	adrp	x19, _TopTransactionResourceOwner@GOTPAGE
Lloh15:
	ldr	x19, [x19, _TopTransactionResourceOwner@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_ResourceOwnerDelete
LBB0_4:
	str	xzr, [x20, #72]
Lloh16:
	adrp	x8, _CurTransactionResourceOwner@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CurTransactionResourceOwner@GOTPAGEOFF]
Lloh18:
	str	xzr, [x8]
	str	xzr, [x19]
	bl	_AtCleanup_Memory
Lloh19:
	adrp	x8, _InvalidFullTransactionId@GOTPAGE
Lloh20:
	ldr	x8, [x8, _InvalidFullTransactionId@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	str	x8, [x20, #64]
Lloh22:
	adrp	x9, _InvalidSubTransactionId@GOTPAGE
Lloh23:
	ldr	x9, [x9, _InvalidSubTransactionId@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	str	w9, [x20, #56]
	movi.2d	v0, #0000000000000000
	stur	q0, [x20, #8]
	stur	q0, [x20, #24]
Lloh25:
	adrp	x9, _XactTopFullTransactionId@GOTPAGE
Lloh26:
	ldr	x9, [x9, _XactTopFullTransactionId@GOTPAGEOFF]
Lloh27:
	str	x8, [x9]
Lloh28:
	adrp	x8, _nParallelCurrentXids@GOTPAGE
Lloh29:
	ldr	x8, [x8, _nParallelCurrentXids@GOTPAGEOFF]
	stur	q0, [x20, #40]
Lloh30:
	str	xzr, [x8]
Lloh31:
	adrp	x8, _TRANS_DEFAULT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _TRANS_DEFAULT@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	str	x8, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotStr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_CurrentTransactionState,8,3    ; @CurrentTransactionState
	.comm	_TRANS_ABORT,8,3                ; @TRANS_ABORT
	.comm	_FATAL,4,2                      ; @FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CleanupTransaction: unexpected state %s"

	.comm	_CurrentResourceOwner,8,3       ; @CurrentResourceOwner
	.comm	_TopTransactionResourceOwner,8,3 ; @TopTransactionResourceOwner
	.comm	_CurTransactionResourceOwner,8,3 ; @CurTransactionResourceOwner
	.comm	_InvalidFullTransactionId,8,3   ; @InvalidFullTransactionId
	.comm	_InvalidSubTransactionId,4,2    ; @InvalidSubTransactionId
	.comm	_XactTopFullTransactionId,8,3   ; @XactTopFullTransactionId
	.comm	_nParallelCurrentXids,8,3       ; @nParallelCurrentXids
	.comm	_TRANS_DEFAULT,8,3              ; @TRANS_DEFAULT
	.no_dead_strip	_CleanupTransaction
.subsections_via_symbols
