	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function heap_xlog_inplace
_heap_xlog_inplace:                     ## @heap_xlog_inplace
	.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), %r15d
	callq	_XLogRecGetData
	movq	%rax, %r14
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_XLogReadBufferForRedo
	movq	_BLK_NEEDS_REDO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.1:
	xorl	%r12d, %r12d
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_XLogRecGetBlockData
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %edi
	callq	_BufferGetPage
	movl	%eax, %r13d
	movq	(%r14), %rbx
	movl	%eax, %edi
	callq	_PageGetMaxOffsetNumber
	cmpq	%rbx, %rax
	jl	LBB0_3
## %bb.2:
	movl	%r13d, %edi
	movq	%rbx, %rsi
	callq	_PageGetItemId
	movq	%rax, %r12
LBB0_3:
	movl	%r13d, %edi
	callq	_PageGetMaxOffsetNumber
	cmpq	%rbx, %rax
	jl	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	callq	_ItemIdIsNormal
	testl	%eax, %eax
	jne	LBB0_6
LBB0_5:
	movq	_PANIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_6:
	movl	%r13d, %edi
	movq	%r12, %rsi
	callq	_PageGetItem
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_ItemIdGetLength
	movl	(%rbx), %ecx
	subl	%ecx, %eax
	cmpl	-48(%rbp), %eax
	je	LBB0_8
## %bb.7:
	movq	_PANIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_elog
	movl	(%rbx), %ecx
	movl	-48(%rbp), %eax
LBB0_8:
	movslq	%ecx, %rcx
	addq	%rcx, %rbx
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_memcpy
	movl	%r13d, %edi
	movl	%r15d, %esi
	callq	_PageSetLSN
	movl	-44(%rbp), %edi
	callq	_MarkBufferDirty
LBB0_9:
	movl	-44(%rbp), %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	-44(%rbp), %edi
	callq	_UnlockReleaseBuffer
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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"

L_.str.1:                               ## @.str.1
	.asciz	"wrong tuple length"

	.no_dead_strip	_heap_xlog_inplace
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function heap_xlog_inplace
_heap_xlog_inplace:                     ; @heap_xlog_inplace
	.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	x20, x0
	ldr	w19, [x0]
	bl	_XLogRecGetData
	mov	x22, x0
	add	x2, sp, #12
	mov	x0, x20
	mov	w1, #0
	bl	_XLogReadBufferForRedo
Lloh0:
	adrp	x8, _BLK_NEEDS_REDO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BLK_NEEDS_REDO@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.1:
	add	x2, sp, #8
	mov	x0, x20
	mov	w1, #0
	bl	_XLogRecGetBlockData
	mov	x20, x0
	ldr	w0, [sp, #12]
	bl	_BufferGetPage
	mov	x21, x0
	ldr	x23, [x22]
	bl	_PageGetMaxOffsetNumber
	cmp	x0, x23
	b.ge	LBB0_3
; %bb.2:
	mov	x22, #0
	b	LBB0_4
LBB0_3:
	mov	x0, x21
	mov	x1, x23
	bl	_PageGetItemId
	mov	x22, x0
LBB0_4:
	mov	x0, x21
	bl	_PageGetMaxOffsetNumber
Lloh3:
	adrp	x24, _PANIC@GOTPAGE
Lloh4:
	ldr	x24, [x24, _PANIC@GOTPAGEOFF]
	cmp	x0, x23
	b.lt	LBB0_6
; %bb.5:
	mov	x0, x22
	bl	_ItemIdIsNormal
	cbnz	w0, LBB0_7
LBB0_6:
	ldr	w0, [x24]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_7:
	mov	x0, x21
	mov	x1, x22
	bl	_PageGetItem
	mov	x23, x0
	mov	x0, x22
	bl	_ItemIdGetLength
	ldr	w8, [x23]
	ldr	w9, [sp, #8]
	sub	w2, w0, w8
	cmp	w2, w9
	b.eq	LBB0_9
; %bb.8:
	ldr	w0, [x24]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
	ldr	w8, [x23]
	ldr	w2, [sp, #8]
LBB0_9:
	add	x0, x23, w8, sxtw
	mov	x1, x20
	bl	_memcpy
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.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"

l_.str.1:                               ; @.str.1
	.asciz	"wrong tuple length"

	.no_dead_strip	_heap_xlog_inplace
.subsections_via_symbols
