	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function heap_xlog_lock_updated
_heap_xlog_lock_updated:                ## @heap_xlog_lock_updated
	.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, %rbx
	movl	(%rdi), %r14d
	callq	_XLogRecGetData
	movq	%rax, %r15
	movq	_XLH_LOCK_ALL_FROZEN_CLEARED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_2
## %bb.1:
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	leaq	-44(%rbp), %rdx
	leaq	-52(%rbp), %r8
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_XLogRecGetBlockTag
	movl	-44(%rbp), %edi
	callq	_CreateFakeRelcacheEntry
	movl	%eax, %r12d
	movl	-52(%rbp), %esi
	leaq	-48(%rbp), %rdx
	movl	%eax, %edi
	callq	_visibilitymap_pin
	movl	-52(%rbp), %esi
	movl	-48(%rbp), %edx
	movq	_VISIBILITYMAP_ALL_FROZEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %edi
	callq	_visibilitymap_clear
	movl	-48(%rbp), %edi
	callq	_ReleaseBuffer
	movl	%r12d, %edi
	callq	_FreeFakeRelcacheEntry
LBB0_2:
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_XLogReadBufferForRedo
	movq	_BLK_NEEDS_REDO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.3:
	movl	-44(%rbp), %edi
	callq	_BufferGetPage
	movl	%eax, %r13d
	movq	8(%r15), %rbx
	movl	%eax, %edi
	callq	_PageGetMaxOffsetNumber
	cmpq	%rbx, %rax
	jge	LBB0_5
## %bb.4:
	xorl	%r12d, %r12d
	jmp	LBB0_6
LBB0_5:
	movl	%r13d, %edi
	movq	%rbx, %rsi
	callq	_PageGetItemId
	movq	%rax, %r12
LBB0_6:
	movl	%r13d, %edi
	callq	_PageGetMaxOffsetNumber
	cmpq	%rbx, %rax
	jl	LBB0_8
## %bb.7:
	movq	%r12, %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	%r13d, %edi
	movq	%r12, %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	4(%rbx), %rdx
	andl	%eax, 4(%rbx)
	movl	20(%r15), %edi
	movq	%rbx, %rsi
	callq	_fix_infomask_from_infobits
	movl	16(%r15), %esi
	movq	%rbx, %rdi
	callq	_HeapTupleHeaderSetXmax
	movl	%r13d, %edi
	movl	%r14d, %esi
	callq	_PageSetLSN
	movl	-44(%rbp), %edi
	callq	_MarkBufferDirty
LBB0_10:
	movl	-44(%rbp), %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	-44(%rbp), %edi
	callq	_UnlockReleaseBuffer
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XLH_LOCK_ALL_FROZEN_CLEARED,4,2 ## @XLH_LOCK_ALL_FROZEN_CLEARED
	.comm	_InvalidBuffer,4,2              ## @InvalidBuffer
	.comm	_VISIBILITYMAP_ALL_FROZEN,4,2   ## @VISIBILITYMAP_ALL_FROZEN
	.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
	.no_dead_strip	_heap_xlog_lock_updated
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function heap_xlog_lock_updated
_heap_xlog_lock_updated:                ; @heap_xlog_lock_updated
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x0
	ldr	w19, [x0]
	bl	_XLogRecGetData
	mov	x20, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _XLH_LOCK_ALL_FROZEN_CLEARED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XLH_LOCK_ALL_FROZEN_CLEARED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _InvalidBuffer@GOTPAGE
Lloh4:
	ldr	x8, [x8, _InvalidBuffer@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	add	x2, sp, #12
	add	x4, sp, #4
	mov	x0, x21
	mov	w1, #0
	mov	x3, #0
	bl	_XLogRecGetBlockTag
	ldr	w0, [sp, #12]
	bl	_CreateFakeRelcacheEntry
	mov	x22, x0
	ldr	w1, [sp, #4]
	add	x2, sp, #8
	bl	_visibilitymap_pin
	ldp	w1, w2, [sp, #4]
Lloh6:
	adrp	x8, _VISIBILITYMAP_ALL_FROZEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VISIBILITYMAP_ALL_FROZEN@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x22
	bl	_visibilitymap_clear
	ldr	w0, [sp, #8]
	bl	_ReleaseBuffer
	mov	x0, x22
	bl	_FreeFakeRelcacheEntry
LBB0_2:
	add	x2, sp, #12
	mov	x0, x21
	mov	w1, #0
	bl	_XLogReadBufferForRedo
Lloh9:
	adrp	x8, _BLK_NEEDS_REDO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BLK_NEEDS_REDO@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.3:
	ldr	w0, [sp, #12]
	bl	_BufferGetPage
	mov	x21, x0
	ldr	x23, [x20, #8]
	bl	_PageGetMaxOffsetNumber
	cmp	x0, x23
	b.ge	LBB0_5
; %bb.4:
	mov	x22, #0
	b	LBB0_6
LBB0_5:
	mov	x0, x21
	mov	x1, x23
	bl	_PageGetItemId
	mov	x22, x0
LBB0_6:
	mov	x0, x21
	bl	_PageGetMaxOffsetNumber
	cmp	x0, x23
	b.lt	LBB0_8
; %bb.7:
	mov	x0, x22
	bl	_ItemIdIsNormal
	cbnz	w0, LBB0_9
LBB0_8:
Lloh12:
	adrp	x8, _PANIC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PANIC@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_9:
	mov	x0, x21
	mov	x1, x22
	bl	_PageGetItem
	mov	x22, x0
Lloh17:
	adrp	x8, _HEAP_XMAX_BITS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HEAP_XMAX_BITS@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _HEAP_MOVED@GOTPAGE
Lloh21:
	ldr	x9, [x9, _HEAP_MOVED@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x0]
	bic	w8, w9, w8
	str	w8, [x0]
Lloh23:
	adrp	x8, _HEAP_KEYS_UPDATED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _HEAP_KEYS_UPDATED@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	mov	x2, x0
	ldr	w9, [x2, #4]!
	bic	w8, w9, w8
	str	w8, [x2]
	ldr	w0, [x20, #20]
	mov	x1, x22
	bl	_fix_infomask_from_infobits
	ldr	w1, [x20, #16]
	mov	x0, x22
	bl	_HeapTupleHeaderSetXmax
	mov	x0, x21
	mov	x1, x19
	bl	_PageSetLSN
	ldr	w0, [sp, #12]
	bl	_MarkBufferDirty
LBB0_10:
	ldr	w0, [sp, #12]
	bl	_BufferIsValid
	cbz	x0, LBB0_12
; %bb.11:
	ldr	w0, [sp, #12]
	bl	_UnlockReleaseBuffer
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_XLH_LOCK_ALL_FROZEN_CLEARED,4,2 ; @XLH_LOCK_ALL_FROZEN_CLEARED
	.comm	_InvalidBuffer,4,2              ; @InvalidBuffer
	.comm	_VISIBILITYMAP_ALL_FROZEN,4,2   ; @VISIBILITYMAP_ALL_FROZEN
	.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
	.no_dead_strip	_heap_xlog_lock_updated
.subsections_via_symbols
