	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_abort_speculative         ## -- Begin function heap_abort_speculative
	.p2align	4, 0x90
_heap_abort_speculative:                ## @heap_abort_speculative
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movl	%edi, %r15d
	xorl	%eax, %eax
	callq	_GetCurrentTransactionId
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_ItemPointerIsValid
	movl	%eax, %edi
	callq	_Assert
	movq	%r12, %rdi
	callq	_ItemPointerGetBlockNumber
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ReadBuffer
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_BufferGetPage
	movl	%eax, %r13d
	movq	_BUFFER_LOCK_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_LockBuffer
	movl	%r13d, %edi
	callq	_PageIsAllVisible
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movq	%r12, %rdi
	callq	_ItemPointerGetOffsetNumber
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_PageGetItemId
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_ItemIdIsNormal
	movl	%eax, %edi
	callq	_Assert
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%r15d, %edi
	callq	_RelationGetRelid
	movl	%eax, -60(%rbp)
	movl	%r13d, %edi
	movl	%r14d, %esi
	callq	_PageGetItem
	movq	%rax, %rbx
	movq	%rax, -72(%rbp)
	movl	%r14d, %edi
	callq	_ItemIdGetLength
	movl	%eax, -64(%rbp)
	movl	(%r12), %r14d
	movl	%r14d, -80(%rbp)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, 16(%rbx)
	je	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_2:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_IsToastRelation
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_HeapTupleHeaderIsSpeculative
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_elog
LBB0_5:
	movq	%rbx, %rdi
	callq	_HeapTupleHeaderIsHeapOnly
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	xorl	%eax, %eax
	callq	_START_CRIT_SECTION
	movq	_RecentGlobalXmin@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_TransactionIdIsValid
	movl	%eax, %edi
	callq	_Assert
	movl	(%r12), %esi
	movl	%r13d, %edi
	callq	_PageSetPrunable
	movq	_HEAP_XMAX_BITS@GOTPCREL(%rip), %rax
	movq	_HEAP_MOVED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, (%rbx)
	movq	_HEAP_KEYS_UPDATED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 4(%rbx)
	movq	_InvalidTransactionId@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_HeapTupleHeaderSetXmin
	movl	%r14d, 8(%rbx)
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	callq	_MarkBufferDirty
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	callq	_RelationNeedsWAL
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_XLH_DELETE_IS_SUPER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movl	(%rbx), %edi
	movl	4(%rbx), %esi
	callq	_compute_infobits
	movl	%eax, -92(%rbp)
	leaq	-80(%rbp), %rdi
	callq	_ItemPointerGetOffsetNumber
	movl	%eax, -96(%rbp)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -104(%rbp)
	xorl	%eax, %eax
	callq	_XLogBeginInsert
	movq	_SizeOfHeapDelete@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-104(%rbp), %rdi
	callq	_XLogRegisterData
	movq	_REGBUF_STANDARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	movl	%r15d, %esi
	callq	_XLogRegisterBuffer
	movq	_RM_HEAP_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_XLOG_HEAP_DELETE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_XLogInsert
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_PageSetLSN
LBB0_7:
	xorl	%eax, %eax
	callq	_END_CRIT_SECTION
	movq	_BUFFER_LOCK_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_LockBuffer
	leaq	-80(%rbp), %rdi
	callq	_HeapTupleHasExternal
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	%r14d, %edi
	callq	_IsToastRelation
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_Assert
	leaq	-80(%rbp), %rsi
	movl	%r14d, %edi
	movl	$1, %edx
	callq	_heap_toast_delete
LBB0_9:
	movl	%r15d, %edi
	callq	_ReleaseBuffer
	movl	%r14d, %edi
	callq	_pgstat_count_heap_delete
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFFER_LOCK_EXCLUSIVE,4,2      ## @BUFFER_LOCK_EXCLUSIVE
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"attempted to kill a tuple inserted by another transaction"

L_.str.1:                               ## @.str.1
	.asciz	"attempted to kill a non-speculative tuple"

	.comm	_RecentGlobalXmin,4,2           ## @RecentGlobalXmin
	.comm	_HEAP_XMAX_BITS,4,2             ## @HEAP_XMAX_BITS
	.comm	_HEAP_MOVED,4,2                 ## @HEAP_MOVED
	.comm	_HEAP_KEYS_UPDATED,4,2          ## @HEAP_KEYS_UPDATED
	.comm	_InvalidTransactionId,4,2       ## @InvalidTransactionId
	.comm	_XLH_DELETE_IS_SUPER,4,2        ## @XLH_DELETE_IS_SUPER
	.comm	_SizeOfHeapDelete,4,2           ## @SizeOfHeapDelete
	.comm	_REGBUF_STANDARD,4,2            ## @REGBUF_STANDARD
	.comm	_RM_HEAP_ID,4,2                 ## @RM_HEAP_ID
	.comm	_XLOG_HEAP_DELETE,4,2           ## @XLOG_HEAP_DELETE
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ## @BUFFER_LOCK_UNLOCK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_abort_speculative         ; -- Begin function heap_abort_speculative
	.p2align	2
_heap_abort_speculative:                ; @heap_abort_speculative
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x1
	mov	x19, x0
	bl	_GetCurrentTransactionId
	mov	x22, x0
	mov	x0, x24
	bl	_ItemPointerIsValid
	bl	_Assert
	mov	x0, x24
	bl	_ItemPointerGetBlockNumber
	mov	x1, x0
	mov	x0, x19
	bl	_ReadBuffer
	mov	x20, x0
	bl	_BufferGetPage
	mov	x21, x0
Lloh0:
	adrp	x8, _BUFFER_LOCK_EXCLUSIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BUFFER_LOCK_EXCLUSIVE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_LockBuffer
	mov	x0, x21
	bl	_PageIsAllVisible
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x24
	bl	_ItemPointerGetOffsetNumber
	mov	x1, x0
	mov	x0, x21
	bl	_PageGetItemId
	mov	x25, x0
	bl	_ItemIdIsNormal
	bl	_Assert
	mov	x0, x19
	bl	_RelationGetRelid
	str	w0, [sp, #44]
	mov	x0, x21
	mov	x1, x25
	bl	_PageGetItem
	mov	x23, x0
	str	x0, [sp, #32]
	mov	x0, x25
	bl	_ItemIdGetLength
	ldr	w24, [x24]
	str	w0, [sp, #40]
	str	w24, [sp, #24]
	ldr	x8, [x23, #16]
	cmp	x8, x22
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_2:
	mov	x0, x19
	bl	_IsToastRelation
	cbnz	x0, LBB0_5
; %bb.3:
	mov	x0, x23
	bl	_HeapTupleHeaderIsSpeculative
	cbnz	x0, LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
LBB0_5:
	mov	x0, x23
	bl	_HeapTupleHeaderIsHeapOnly
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	bl	_START_CRIT_SECTION
Lloh13:
	adrp	x25, _RecentGlobalXmin@GOTPAGE
Lloh14:
	ldr	x25, [x25, _RecentGlobalXmin@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_TransactionIdIsValid
	bl	_Assert
	ldr	w1, [x25]
	mov	x0, x21
	bl	_PageSetPrunable
Lloh15:
	adrp	x8, _HEAP_XMAX_BITS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HEAP_XMAX_BITS@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _HEAP_MOVED@GOTPAGE
Lloh19:
	ldr	x9, [x9, _HEAP_MOVED@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldp	w9, w10, [x23]
	bic	w8, w9, w8
	str	w8, [x23]
Lloh21:
	adrp	x8, _HEAP_KEYS_UPDATED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HEAP_KEYS_UPDATED@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	bic	w8, w10, w8
	str	w8, [x23, #4]
Lloh24:
	adrp	x8, _InvalidTransactionId@GOTPAGE
Lloh25:
	ldr	x8, [x8, _InvalidTransactionId@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_HeapTupleHeaderSetXmin
	str	w24, [x23, #8]
	mov	x0, x20
	bl	_MarkBufferDirty
	mov	x0, x19
	bl	_RelationNeedsWAL
	cbz	x0, LBB0_7
; %bb.6:
Lloh27:
	adrp	x8, _XLH_DELETE_IS_SUPER@GOTPAGE
Lloh28:
	ldr	x8, [x8, _XLH_DELETE_IS_SUPER@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	ldp	w0, w1, [x23]
	bl	_compute_infobits
	str	w0, [sp, #12]
	add	x0, sp, #24
	bl	_ItemPointerGetOffsetNumber
	str	w0, [sp, #8]
	str	x22, [sp]
	bl	_XLogBeginInsert
Lloh30:
	adrp	x8, _SizeOfHeapDelete@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SizeOfHeapDelete@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, sp
	bl	_XLogRegisterData
Lloh33:
	adrp	x8, _REGBUF_STANDARD@GOTPAGE
Lloh34:
	ldr	x8, [x8, _REGBUF_STANDARD@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	w0, #0
	mov	x1, x20
	bl	_XLogRegisterBuffer
Lloh36:
	adrp	x8, _RM_HEAP_ID@GOTPAGE
Lloh37:
	ldr	x8, [x8, _RM_HEAP_ID@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
Lloh39:
	adrp	x8, _XLOG_HEAP_DELETE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _XLOG_HEAP_DELETE@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	bl	_XLogInsert
	mov	x1, x0
	mov	x0, x21
	bl	_PageSetLSN
LBB0_7:
	bl	_END_CRIT_SECTION
Lloh42:
	adrp	x8, _BUFFER_LOCK_UNLOCK@GOTPAGE
Lloh43:
	ldr	x8, [x8, _BUFFER_LOCK_UNLOCK@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_LockBuffer
	add	x0, sp, #24
	bl	_HeapTupleHasExternal
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_IsToastRelation
	cmp	x0, #0
	cset	w0, eq
	bl	_Assert
	add	x1, sp, #24
	mov	x0, x19
	mov	w2, #1
	bl	_heap_toast_delete
LBB0_9:
	mov	x0, x20
	bl	_ReleaseBuffer
	mov	x0, x19
	bl	_pgstat_count_heap_delete
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFFER_LOCK_EXCLUSIVE,4,2      ; @BUFFER_LOCK_EXCLUSIVE
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"attempted to kill a tuple inserted by another transaction"

l_.str.1:                               ; @.str.1
	.asciz	"attempted to kill a non-speculative tuple"

	.comm	_RecentGlobalXmin,4,2           ; @RecentGlobalXmin
	.comm	_HEAP_XMAX_BITS,4,2             ; @HEAP_XMAX_BITS
	.comm	_HEAP_MOVED,4,2                 ; @HEAP_MOVED
	.comm	_HEAP_KEYS_UPDATED,4,2          ; @HEAP_KEYS_UPDATED
	.comm	_InvalidTransactionId,4,2       ; @InvalidTransactionId
	.comm	_XLH_DELETE_IS_SUPER,4,2        ; @XLH_DELETE_IS_SUPER
	.comm	_SizeOfHeapDelete,4,2           ; @SizeOfHeapDelete
	.comm	_REGBUF_STANDARD,4,2            ; @REGBUF_STANDARD
	.comm	_RM_HEAP_ID,4,2                 ; @RM_HEAP_ID
	.comm	_XLOG_HEAP_DELETE,4,2           ; @XLOG_HEAP_DELETE
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ; @BUFFER_LOCK_UNLOCK
.subsections_via_symbols
