	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function RecordTransactionAbort
_RecordTransactionAbort:                ## @RecordTransactionAbort
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	xorl	%eax, %eax
	callq	_GetCurrentTransactionIdIfAny
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_TransactionIdIsValid
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	movl	%r13d, %edi
	callq	_TransactionIdDidCommit
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_PANIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	callq	_elog
LBB0_6:
	leaq	-56(%rbp), %rsi
	xorl	%edi, %edi
	callq	_smgrGetPendingDeletes
	movl	%eax, %r12d
	leaq	-48(%rbp), %rdi
	callq	_xactGetCommittedChildren
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_START_CRIT_SECTION
	xorl	%eax, %eax
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.7:
	callq	_GetCurrentTimestamp
	movl	%eax, %edi
	jmp	LBB0_9
LBB0_1:
	testl	%r14d, %r14d
	jne	LBB0_3
## %bb.2:
	movq	_XactLastRecEnd@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_3:
	movq	_InvalidTransactionId@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_16
LBB0_8:
	callq	_SetCurrentTransactionStopTimestamp
	movq	_xactStopTimestamp@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_9:
	movq	-48(%rbp), %rdx
	movq	-56(%rbp), %r8
	movq	_MyXactFlags@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_InvalidTransactionId@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%r15d, %esi
	movl	%r12d, %ecx
	pushq	$0
	pushq	%rax
	callq	_XactLogAbortRecord
	addq	$16, %rsp
	testl	%r14d, %r14d
	jne	LBB0_11
## %bb.10:
	movq	_XactLastRecEnd@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_XLogSetAsyncXactLSN
LBB0_11:
	movq	-48(%rbp), %rdx
	movl	%r13d, %edi
	movl	%r15d, %esi
	callq	_TransactionIdAbortTree
	xorl	%eax, %eax
	callq	_END_CRIT_SECTION
	movq	-48(%rbp), %rdx
	movl	%r13d, %edi
	movl	%r15d, %esi
	callq	_TransactionIdLatest
	movl	%eax, %ebx
	testl	%r14d, %r14d
	je	LBB0_13
## %bb.12:
	movq	-48(%rbp), %rdx
	movl	%r13d, %edi
	movl	%r15d, %esi
	movl	%ebx, %ecx
	callq	_XidCacheRemoveRunningXids
	jmp	LBB0_14
LBB0_13:
	movq	_XactLastRecEnd@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_14:
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	callq	_pfree
LBB0_16:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XactLastRecEnd,8,3             ## @XactLastRecEnd
	.comm	_InvalidTransactionId,4,2       ## @InvalidTransactionId
	.comm	_PANIC,4,2                      ## @PANIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot abort transaction %u, it was already committed"

	.comm	_xactStopTimestamp,4,2          ## @xactStopTimestamp
	.comm	_MyXactFlags,4,2                ## @MyXactFlags
	.no_dead_strip	_RecordTransactionAbort
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function RecordTransactionAbort
_RecordTransactionAbort:                ; @RecordTransactionAbort
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	bl	_GetCurrentTransactionIdIfAny
	mov	x20, x0
	bl	_TransactionIdIsValid
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_TransactionIdDidCommit
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _PANIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PANIC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_elog
LBB0_3:
	add	x1, sp, #8
	mov	w0, #0
	bl	_smgrGetPendingDeletes
	mov	x22, x0
	mov	x0, sp
	bl	_xactGetCommittedChildren
	mov	x21, x0
	bl	_START_CRIT_SECTION
	cbz	w19, LBB0_8
; %bb.4:
	bl	_GetCurrentTimestamp
	b	LBB0_9
LBB0_5:
	cbnz	w19, LBB0_7
; %bb.6:
Lloh5:
	adrp	x8, _XactLastRecEnd@GOTPAGE
Lloh6:
	ldr	x8, [x8, _XactLastRecEnd@GOTPAGEOFF]
Lloh7:
	str	xzr, [x8]
LBB0_7:
Lloh8:
	adrp	x8, _InvalidTransactionId@GOTPAGE
Lloh9:
	ldr	x8, [x8, _InvalidTransactionId@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
	b	LBB0_14
LBB0_8:
	bl	_SetCurrentTransactionStopTimestamp
Lloh11:
	adrp	x8, _xactStopTimestamp@GOTPAGE
Lloh12:
	ldr	x8, [x8, _xactStopTimestamp@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
LBB0_9:
	ldp	x2, x4, [sp]
Lloh14:
	adrp	x8, _MyXactFlags@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MyXactFlags@GOTPAGEOFF]
Lloh16:
	ldr	w5, [x8]
Lloh17:
	adrp	x8, _InvalidTransactionId@GOTPAGE
Lloh18:
	ldr	x8, [x8, _InvalidTransactionId@GOTPAGEOFF]
Lloh19:
	ldr	w6, [x8]
	mov	x1, x21
	mov	x3, x22
	mov	x7, #0
	bl	_XactLogAbortRecord
	cbnz	w19, LBB0_11
; %bb.10:
Lloh20:
	adrp	x8, _XactLastRecEnd@GOTPAGE
Lloh21:
	ldr	x8, [x8, _XactLastRecEnd@GOTPAGEOFF]
Lloh22:
	ldr	x0, [x8]
	bl	_XLogSetAsyncXactLSN
LBB0_11:
	ldr	x2, [sp]
	mov	x0, x20
	mov	x1, x21
	bl	_TransactionIdAbortTree
	bl	_END_CRIT_SECTION
	ldr	x2, [sp]
	mov	x0, x20
	mov	x1, x21
	bl	_TransactionIdLatest
	mov	x22, x0
	cbz	w19, LBB0_15
; %bb.12:
	ldr	x2, [sp]
	mov	x0, x20
	mov	x1, x21
	mov	x3, x22
	bl	_XidCacheRemoveRunningXids
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_14
LBB0_13:
	bl	_pfree
LBB0_14:
	mov	x0, x22
	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
	add	sp, sp, #64
	ret
LBB0_15:
Lloh23:
	adrp	x8, _XactLastRecEnd@GOTPAGE
Lloh24:
	ldr	x8, [x8, _XactLastRecEnd@GOTPAGEOFF]
Lloh25:
	str	xzr, [x8]
	ldr	x0, [sp, #8]
	cbnz	x0, LBB0_13
	b	LBB0_14
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_XactLastRecEnd,8,3             ; @XactLastRecEnd
	.comm	_InvalidTransactionId,4,2       ; @InvalidTransactionId
	.comm	_PANIC,4,2                      ; @PANIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot abort transaction %u, it was already committed"

	.comm	_xactStopTimestamp,4,2          ; @xactStopTimestamp
	.comm	_MyXactFlags,4,2                ; @MyXactFlags
	.no_dead_strip	_RecordTransactionAbort
.subsections_via_symbols
