	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function heap_xlog_delete
_heap_xlog_delete:                      ## @heap_xlog_delete
	.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
	movq	%rdi, %r15
	movl	(%rdi), %r14d
	callq	_XLogRecGetData
	movq	%rax, %r13
	leaq	-60(%rbp), %rdx
	leaq	-48(%rbp), %r8
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_XLogRecGetBlockTag
	movl	-48(%rbp), %esi
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ItemPointerSetBlockNumber
	movq	(%r13), %rsi
	movq	%rbx, %rdi
	callq	_ItemPointerSetOffsetNumber
	movq	_XLH_DELETE_ALL_VISIBLE_CLEARED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r13)
	je	LBB0_2
## %bb.1:
	movl	-60(%rbp), %edi
	callq	_CreateFakeRelcacheEntry
	movl	%eax, %ebx
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	-48(%rbp), %esi
	leaq	-44(%rbp), %rdx
	movl	%ebx, %edi
	callq	_visibilitymap_pin
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %edx
	movq	_VISIBILITYMAP_VALID_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edi
	callq	_visibilitymap_clear
	movl	-44(%rbp), %edi
	callq	_ReleaseBuffer
	movl	%ebx, %edi
	callq	_FreeFakeRelcacheEntry
LBB0_2:
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_XLogReadBufferForRedo
	movq	_BLK_NEEDS_REDO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.3:
	movl	-44(%rbp), %edi
	callq	_BufferGetPage
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_PageGetMaxOffsetNumber
	movq	(%r13), %rsi
	cmpq	%rsi, %rax
	jge	LBB0_5
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_5:
	movl	%r12d, %edi
	callq	_PageGetItemId
	movq	%rax, %rbx
LBB0_6:
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movl	%r12d, %edi
	callq	_PageGetMaxOffsetNumber
	cmpq	(%r13), %rax
	jl	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_ItemIdIsNormal
	testl	%eax, %eax
	jne	LBB0_9
LBB0_8:
	movq	_PANIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_9:
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_PageGetItem
	movq	%rax, %rbx
	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
	leaq	8(%rbx), %r14
	andl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_HeapTupleHeaderClearHotUpdated
	movl	16(%r13), %edi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_fix_infomask_from_infobits
	movq	_XLH_DELETE_IS_SUPER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r13)
	je	LBB0_10
## %bb.11:
	movq	_InvalidTransactionId@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_HeapTupleHeaderSetXmin
	jmp	LBB0_12
LBB0_10:
	movl	12(%r13), %esi
	movq	%rbx, %rdi
	callq	_HeapTupleHeaderSetXmax
LBB0_12:
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movq	_FirstCommandId@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_HeapTupleHeaderSetCmax
	movq	%r15, %rdi
	callq	_XLogRecGetXid
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_PageSetPrunable
	movl	8(%r13), %eax
	movq	_XLH_DELETE_ALL_VISIBLE_CLEARED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
## %bb.13:
	movl	%r12d, %edi
	callq	_PageClearAllVisible
	movl	8(%r13), %eax
LBB0_14:
	movq	_XLH_DELETE_IS_PARTITION_MOVE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_16
## %bb.15:
	movq	%rbx, %rdi
	callq	_HeapTupleHeaderSetMovedPartitions
	jmp	LBB0_17
LBB0_16:
	movl	-56(%rbp), %eax
	movl	%eax, 4(%rbx)
LBB0_17:
	movl	%r12d, %edi
	movl	%r14d, %esi
	callq	_PageSetLSN
	movl	-44(%rbp), %edi
	callq	_MarkBufferDirty
LBB0_18:
	movl	-44(%rbp), %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movl	-44(%rbp), %edi
	callq	_UnlockReleaseBuffer
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XLH_DELETE_ALL_VISIBLE_CLEARED,4,2 ## @XLH_DELETE_ALL_VISIBLE_CLEARED
	.comm	_InvalidBuffer,4,2              ## @InvalidBuffer
	.comm	_VISIBILITYMAP_VALID_BITS,4,2   ## @VISIBILITYMAP_VALID_BITS
	.comm	_BLK_NEEDS_REDO,8,3             ## @BLK_NEEDS_REDO
	.comm	_PANIC,4,2                      ## @PANIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid lp"

	.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	_XLH_DELETE_IS_SUPER,4,2        ## @XLH_DELETE_IS_SUPER
	.comm	_InvalidTransactionId,4,2       ## @InvalidTransactionId
	.comm	_FirstCommandId,4,2             ## @FirstCommandId
	.comm	_XLH_DELETE_IS_PARTITION_MOVE,4,2 ## @XLH_DELETE_IS_PARTITION_MOVE
	.no_dead_strip	_heap_xlog_delete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function heap_xlog_delete
_heap_xlog_delete:                      ; @heap_xlog_delete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x0
	ldr	w19, [x0]
	bl	_XLogRecGetData
	mov	x20, x0
	add	x2, sp, #4
	add	x4, sp, #8
	mov	x0, x21
	mov	w1, #0
	mov	x3, #0
	bl	_XLogRecGetBlockTag
	ldr	w1, [sp, #8]
	mov	x0, sp
	bl	_ItemPointerSetBlockNumber
	ldr	x1, [x20]
	mov	x0, sp
	bl	_ItemPointerSetOffsetNumber
	ldr	w8, [x20, #8]
Lloh0:
	adrp	x25, _XLH_DELETE_ALL_VISIBLE_CLEARED@GOTPAGE
Lloh1:
	ldr	x25, [x25, _XLH_DELETE_ALL_VISIBLE_CLEARED@GOTPAGEOFF]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [sp, #4]
	bl	_CreateFakeRelcacheEntry
	mov	x22, x0
Lloh2:
	adrp	x8, _InvalidBuffer@GOTPAGE
Lloh3:
	ldr	x8, [x8, _InvalidBuffer@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	ldr	w1, [sp, #8]
	add	x2, sp, #12
	bl	_visibilitymap_pin
	ldp	w1, w2, [sp, #8]
Lloh5:
	adrp	x8, _VISIBILITYMAP_VALID_BITS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VISIBILITYMAP_VALID_BITS@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, x22
	bl	_visibilitymap_clear
	ldr	w0, [sp, #12]
	bl	_ReleaseBuffer
	mov	x0, x22
	bl	_FreeFakeRelcacheEntry
LBB0_2:
	add	x2, sp, #12
	mov	x0, x21
	mov	w1, #0
	bl	_XLogReadBufferForRedo
Lloh8:
	adrp	x8, _BLK_NEEDS_REDO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BLK_NEEDS_REDO@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_18
; %bb.3:
	ldr	w0, [sp, #12]
	bl	_BufferGetPage
	mov	x22, x0
	bl	_PageGetMaxOffsetNumber
	ldr	x1, [x20]
	cmp	x0, x1
	b.ge	LBB0_5
; %bb.4:
	mov	x23, #0
	b	LBB0_6
LBB0_5:
	mov	x0, x22
	bl	_PageGetItemId
	mov	x23, x0
LBB0_6:
	mov	x0, x22
	bl	_PageGetMaxOffsetNumber
	ldr	x8, [x20]
	cmp	x0, x8
	b.lt	LBB0_8
; %bb.7:
	mov	x0, x23
	bl	_ItemIdIsNormal
	cbnz	w0, LBB0_9
LBB0_8:
Lloh11:
	adrp	x8, _PANIC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PANIC@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_9:
	mov	x0, x22
	mov	x1, x23
	bl	_PageGetItem
	mov	x23, x0
Lloh16:
	adrp	x8, _HEAP_XMAX_BITS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HEAP_XMAX_BITS@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _HEAP_MOVED@GOTPAGE
Lloh20:
	ldr	x9, [x9, _HEAP_MOVED@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x0]
	bic	w8, w9, w8
	str	w8, [x0]
Lloh22:
	adrp	x8, _HEAP_KEYS_UPDATED@GOTPAGE
Lloh23:
	ldr	x8, [x8, _HEAP_KEYS_UPDATED@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	mov	x24, x0
	ldr	w9, [x24, #8]!
	bic	w8, w9, w8
	str	w8, [x24]
	bl	_HeapTupleHeaderClearHotUpdated
	ldr	w0, [x20, #16]
	mov	x1, x23
	mov	x2, x24
	bl	_fix_infomask_from_infobits
	ldr	w8, [x20, #8]
Lloh25:
	adrp	x9, _XLH_DELETE_IS_SUPER@GOTPAGE
Lloh26:
	ldr	x9, [x9, _XLH_DELETE_IS_SUPER@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
Lloh28:
	adrp	x8, _InvalidTransactionId@GOTPAGE
Lloh29:
	ldr	x8, [x8, _InvalidTransactionId@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_HeapTupleHeaderSetXmin
	b	LBB0_12
LBB0_11:
	ldr	w1, [x20, #12]
	mov	x0, x23
	bl	_HeapTupleHeaderSetXmax
LBB0_12:
Lloh31:
	adrp	x8, _FirstCommandId@GOTPAGE
Lloh32:
	ldr	x8, [x8, _FirstCommandId@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x23
	mov	w2, #0
	bl	_HeapTupleHeaderSetCmax
	mov	x0, x21
	bl	_XLogRecGetXid
	mov	x1, x0
	mov	x0, x22
	bl	_PageSetPrunable
	ldr	w8, [x20, #8]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x22
	bl	_PageClearAllVisible
	ldr	w8, [x20, #8]
LBB0_14:
Lloh34:
	adrp	x9, _XLH_DELETE_IS_PARTITION_MOVE@GOTPAGE
Lloh35:
	ldr	x9, [x9, _XLH_DELETE_IS_PARTITION_MOVE@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.15:
	mov	x0, x23
	bl	_HeapTupleHeaderSetMovedPartitions
	b	LBB0_17
LBB0_16:
	ldr	w8, [sp]
	str	w8, [x23, #4]
LBB0_17:
	mov	x0, x22
	mov	x1, x19
	bl	_PageSetLSN
	ldr	w0, [sp, #12]
	bl	_MarkBufferDirty
LBB0_18:
	ldr	w0, [sp, #12]
	bl	_BufferIsValid
	cbz	x0, LBB0_20
; %bb.19:
	ldr	w0, [sp, #12]
	bl	_UnlockReleaseBuffer
LBB0_20:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_XLH_DELETE_ALL_VISIBLE_CLEARED,4,2 ; @XLH_DELETE_ALL_VISIBLE_CLEARED
	.comm	_InvalidBuffer,4,2              ; @InvalidBuffer
	.comm	_VISIBILITYMAP_VALID_BITS,4,2   ; @VISIBILITYMAP_VALID_BITS
	.comm	_BLK_NEEDS_REDO,8,3             ; @BLK_NEEDS_REDO
	.comm	_PANIC,4,2                      ; @PANIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid lp"

	.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	_XLH_DELETE_IS_SUPER,4,2        ; @XLH_DELETE_IS_SUPER
	.comm	_InvalidTransactionId,4,2       ; @InvalidTransactionId
	.comm	_FirstCommandId,4,2             ; @FirstCommandId
	.comm	_XLH_DELETE_IS_PARTITION_MOVE,4,2 ; @XLH_DELETE_IS_PARTITION_MOVE
	.no_dead_strip	_heap_xlog_delete
.subsections_via_symbols
